/* =====================================================================
   Дизайнерский дом «Я» — стили сайта, версия 2
   Фирменная пара графит + кремовый, крупная типографика, bento-сетки.
   Тёмная тема по умолчанию, светлая — по переключателю.
   ===================================================================== */

:root,
[data-theme="dark"] {
  --bg: #0d0e10;
  --surface: #16171a;
  --surface-2: #202226;
  --ink: #f6f6f3;
  --ink-2: #a2a3a8;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .24);
  --inv-bg: #f6f6f3;
  --inv-ink: #0d0e10;
  --band: #050506;
  --hdr: rgba(22, 23, 26, .78);
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, .8);
  --ok: #b0cb1f;
  --err: #ff6b5e;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #ebebe8;
  --ink: #0d0e10;
  --ink-2: #5d5e63;
  --line: rgba(13, 14, 16, .09);
  --line-2: rgba(13, 14, 16, .24);
  --inv-bg: #0d0e10;
  --inv-ink: #f6f6f3;
  --band: #0d0e10;
  --hdr: rgba(255, 255, 255, .82);
  --shadow: 0 18px 50px -26px rgba(13, 14, 16, .28);
  --ok: #4f7a12;
  --err: #c4161c;
  color-scheme: light;
}

/* Палитра логотипа DIZDOM — только для акцентов */
:root {
  --c-lav: #A79ECD;
  --c-blue: #00A0E3;
  --c-yel: #FECC00;
  --c-org: #EF7F1A;
  --c-red: #E31E24;
  --c-grn: #B0CB1F;
  --c-pink: #E5097F;
}

:root {
  --f-display: "Unbounded", "Montserrat", "Segoe UI", sans-serif;
  --f-body: "Onest", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
/* Зерно поверх всего — тактильность «бумаги», без градиентов */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-main { flex: 1 0 auto; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-lav); color: #0d0e10; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.h-display { font: 600 clamp(1.6rem, 1rem + 1.9vw, 2.7rem)/1.08 var(--f-display); letter-spacing: -.02em; margin: 0; hyphens: auto; overflow-wrap: break-word; }
.h-display--sm { font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); }
.h-display--xl { font-size: clamp(1.8rem, .9rem + 2.4vw, 3.2rem); }
.h-display a { text-decoration: none; }
.h-display a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 200; border-radius: 8px; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Кнопки ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.5em; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 .98rem/1.2 var(--f-body); letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer;
  transform: translate(var(--bx), var(--by));
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--ghost { border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--lg { padding: 1.05em 1.8em; font-size: 1.02rem; }
.btn--sm { padding: .6em 1.15em; font-size: .88rem; }
.btn--inv { background: var(--inv-ink); color: var(--inv-bg); border-color: var(--inv-ink); }
.btn--inv:hover { opacity: .88; }
.btn--inv-ghost { color: var(--inv-ink); border-color: var(--inv-ink); }
.btn--inv-ghost:hover { background: rgba(127, 127, 127, .12); }
.btn__count { font: 600 .78rem/1 var(--f-body); padding: .35em .6em; border-radius: 999px; background: var(--ink); color: var(--bg); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background-color .2s, border-color .2s; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 500 .98rem/1.2 var(--f-display); text-decoration: none; }
.link-arrow svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }
.badge { display: inline-flex; min-width: 2.2em; justify-content: center; padding: .3em .7em; border-radius: 999px; background: var(--surface-2); font: 600 .85rem/1 var(--f-body); }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 12px; z-index: 60; padding: 0 var(--gutter); margin-top: 12px; transition: transform .35s var(--ease); }
.hdr.is-hidden { transform: translateY(calc(-100% - 20px)); }
.hdr__bar {
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 40px); margin: 0 auto; height: var(--hdr-h);
  display: flex; align-items: center; gap: 16px; padding: 0 12px 0 22px;
  background: var(--hdr); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line); border-radius: 999px; transition: box-shadow .3s, background-color .3s;
}
.hdr.is-scrolled .hdr__bar { box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__logo { width: auto; height: 42px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; white-space: nowrap; padding: 9px 11px; border-radius: 999px; font: 500 .9rem/1.2 var(--f-body); text-decoration: none; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current] { color: var(--bg); background: var(--ink); }
.hdr__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr__tel span { font: 500 .88rem/1 var(--f-body); white-space: nowrap; }
.theme-btn .i-moon { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-moon { display: block; }
.burger { display: none; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--bg); padding: calc(var(--hdr-h) + 48px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list a { display: block; padding: 10px 0; font: 600 clamp(1.5rem, 1rem + 4vw, 2.4rem)/1.15 var(--f-display); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu.is-open .menu__list li { animation: menuIn .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 40ms); }
@keyframes menuIn { from { opacity: 0; transform: translateY(16px); } }
.menu__contacts { display: grid; gap: 6px; margin-top: 28px; font-size: 1.1rem; }
.menu__contacts a { text-decoration: none; }

/* ---------- Хлебные крошки ---------- */
.crumbs ol { list-style: none; margin: 0; padding: 28px 0 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .86rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 .55em; opacity: .45; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Блоки ---------- */
.block { margin-top: clamp(72px, 9vw, 140px); }
.block--tight { margin-top: clamp(28px, 4vw, 48px); }
.block__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: clamp(24px, 3vw, 40px); }
.block__note { margin: 0; max-width: 46ch; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: clamp(40px, 6vw, 84px); }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c-grn); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(176, 203, 31, .55); } 70% { box-shadow: 0 0 0 10px rgba(176, 203, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(176, 203, 31, 0); } }
.hero__title { font-size: clamp(2rem, .8rem + 3.4vw, 4rem); hyphens: manual; overflow-wrap: break-word; line-height: 1.02; letter-spacing: -.035em; font-weight: 600; max-width: 14ch; margin-bottom: 28px; }
.hero__title .w { display: inline-block; animation: wordIn .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(6px); } }
.hero__lead { margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.hero__facts b { display: block; font: 600 1.6rem/1.1 var(--f-display); color: var(--ink); letter-spacing: -.02em; }

/* Колода работ */
.deck { position: relative; aspect-ratio: 5 / 4; margin: 30px 30px 0 0; }
.deck__card {
  position: absolute; inset: 0; display: block; border-radius: var(--r-xl); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transform-origin: 50% 100%;
  transition: transform .8s var(--ease), opacity .6s var(--ease), filter .6s;
}
.deck__card picture, .deck__card img { width: 100%; height: 100%; object-fit: cover; }
.deck__card[data-pos="0"] { z-index: 4; transform: none; }
.deck__card[data-pos="1"] { z-index: 3; transform: translate(14px, -16px) rotate(3.5deg) scale(.95); filter: brightness(.7); }
.deck__card[data-pos="2"] { z-index: 2; transform: translate(28px, -32px) rotate(7deg) scale(.9); filter: brightness(.5); }
.deck__card[data-pos="3"] { z-index: 1; transform: translate(40px, -46px) rotate(10deg) scale(.86); opacity: 0; }
.deck__card.is-leaving { transform: translate(-30%, 12%) rotate(-12deg) scale(.9); opacity: 0; z-index: 5; }
.deck__cap { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--r-md); background: var(--hdr); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .88rem; color: var(--ink-2); }
.deck__cap b { font: 600 .98rem/1.3 var(--f-display); color: var(--ink); }
.deck__card:not([data-pos="0"]) .deck__cap { opacity: 0; }
.deck__ctrl { position: absolute; z-index: 6; right: -14px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.deck__ctrl .icon-btn { background: var(--surface); }

/* Бегущая строка услуг */
.ticker { margin-top: clamp(64px, 8vw, 120px); padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 48s linear infinite; }
.ticker span { font: 600 clamp(2rem, 1rem + 4vw, 4.6rem)/1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.ticker span:nth-of-type(3n) { color: var(--ink); -webkit-text-stroke: 0; }
.ticker .px { flex: none; width: clamp(14px, 1.4vw, 22px); aspect-ratio: 1; background: var(--c-blue); }
.ticker .px:nth-of-type(7n+1) { background: var(--c-lav); } .ticker .px:nth-of-type(7n+2) { background: var(--c-blue); } .ticker .px:nth-of-type(7n+3) { background: var(--c-yel); } .ticker .px:nth-of-type(7n+4) { background: var(--c-org); } .ticker .px:nth-of-type(7n+5) { background: var(--c-red); } .ticker .px:nth-of-type(7n+6) { background: var(--c-grn); } .ticker .px:nth-of-type(7n) { background: var(--c-pink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Bento: услуги */
.bento-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.svc { position: relative; grid-column: span 3; display: flex; flex-direction: column; min-height: 300px; padding: 0; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: border-color .3s; }
.svc:first-child { grid-row: span 2; min-height: 620px; }
.svc:hover { border-color: var(--line-2); }
.svc__link { position: relative; flex: 1; display: flex; flex-direction: column; padding: 30px 30px 18px; text-decoration: none; color: var(--ink); }
.svc__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease), transform 1.2s var(--ease); transform: scale(1.06); }
.svc__bg img, .svc__bg picture { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.svc__bg::after { content: ""; position: absolute; inset: 0; background: var(--surface); opacity: .78; }
.svc:hover .svc__bg { opacity: 1; transform: scale(1); }
.svc:first-child .svc__bg { opacity: .55; }
.svc:first-child:hover .svc__bg { opacity: 1; }
.svc__icon { width: 64px; height: 64px; padding: 13px; border-radius: 20px; background: var(--accent, var(--ink)); color: #fff; transition: transform .5s var(--ease); }
.svc:first-child .svc__icon { width: 84px; height: 84px; padding: 17px; border-radius: 26px; }
.svc:hover .svc__icon { transform: rotate(-8deg) scale(1.05); }
.svc__icon svg { width: 100%; height: 100%; }
.svc__name { margin-top: auto; padding-top: 40px; font: 600 clamp(1.5rem, 1rem + 1.6vw, 2.4rem)/1.05 var(--f-display); letter-spacing: -.025em; }
.svc:first-child .svc__name { font-size: clamp(1.9rem, 1rem + 2.8vw, 3.6rem); }
.svc__count { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.svc__arrow { position: absolute; top: 26px; right: 26px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.svc__arrow svg { width: 22px; height: 22px; }
.svc:hover .svc__arrow { background: var(--accent, var(--ink)); border-color: var(--accent, var(--ink)); color: #fff; transform: rotate(45deg); }
.svc__cats { list-style: none; margin: 0; padding: 0 30px 28px; display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.svc__cats a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .86rem; text-decoration: none; background: var(--surface); transition: background-color .2s, color .2s; }
.svc__cats a:hover { background: var(--ink); color: var(--surface); }

/* Bento: работы */
.bento-works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 20vw, 290px); gap: 16px; }
.bw:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bw:nth-child(6) { grid-column: span 2; }
.bw__link { position: relative; display: block; height: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); text-decoration: none; color: var(--ink); }
.bw__img { position: absolute; inset: 0; display: block; }
.bw__img picture, .bw__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bw__link:hover .bw__img img { transform: scale(1.05); }
.bw__info { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--r-md); background: var(--hdr); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateY(6px); opacity: .96; transition: transform .4s var(--ease), opacity .3s; }
.bw__link:hover .bw__info { transform: none; opacity: 1; }
.bw__cat { font-size: .76rem; color: var(--ink-2); }
.bw__title { font: 600 .98rem/1.25 var(--f-display); margin: 0; letter-spacing: -.01em; }
.bw:nth-child(1) .bw__title { font-size: clamp(1.1rem, .9rem + .8vw, 1.5rem); }
.bw__meta { font-size: .84rem; color: var(--ink-2); }

/* Клиенты: бегущие ленты */
.clients { margin-top: clamp(72px, 9vw, 140px); padding: clamp(56px, 7vw, 96px) 0; background: var(--band); color: #f6f6f3; }
.clients .block__note { color: #a2a3a8; }
.marquee { overflow: hidden; padding: 6px 0; }
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee a { display: flex; align-items: center; justify-content: center; width: 190px; height: 104px; padding: 16px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); transition: background-color .3s, border-color .3s; }
.marquee a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.marquee img { max-height: 64px; width: auto; filter: grayscale(1) brightness(1.2); opacity: .75; transition: opacity .3s, filter .3s; }
.marquee a:hover img { opacity: 1; filter: none; }

/* Процесс — карточки складываются стопкой при прокрутке */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.process__intro { position: sticky; top: calc(var(--hdr-h) + 48px); display: grid; gap: 20px; justify-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { position: sticky; top: calc(var(--hdr-h) + 40px + var(--k, 0) * 18px); display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step:nth-child(1) { --k: 0; } .step:nth-child(2) { --k: 1; } .step:nth-child(3) { --k: 2; } .step:nth-child(4) { --k: 3; }
.step__n { grid-row: span 2; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--ink); color: var(--surface); font: 600 1.3rem/1 var(--f-display); }
.step:nth-child(1) .step__n { background: var(--c-blue); color: #fff; }
.step:nth-child(2) .step__n { background: var(--c-yel); color: #0d0e10; }
.step:nth-child(3) .step__n { background: var(--c-pink); color: #fff; }
.step:nth-child(4) .step__n { background: var(--c-grn); color: #0d0e10; }
.step h3 { margin: 4px 0 0; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }
.step p { margin: 0; color: var(--ink-2); }

/* Текст + боковая карточка */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); margin-top: 1.9em; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.prose li { position: relative; margin: .5em 0; padding-left: 1.6em; }
.prose ul > li::before { content: ""; position: absolute; left: .25em; top: .68em; width: .48em; height: .48em; background: var(--c-blue); }
.prose ul > li:nth-child(7n+1)::before { background: var(--c-lav); } .prose ul > li:nth-child(7n+2)::before { background: var(--c-blue); } .prose ul > li:nth-child(7n+3)::before { background: var(--c-yel); } .prose ul > li:nth-child(7n+4)::before { background: var(--c-org); } .prose ul > li:nth-child(7n+5)::before { background: var(--c-red); } .prose ul > li:nth-child(7n+6)::before { background: var(--c-grn); } .prose ul > li:nth-child(7n)::before { background: var(--c-pink); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; padding-left: 2.2em; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: .15em; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font: 600 .8rem/1 var(--f-display); }
.prose strong { font-weight: 700; }
.prose a { text-decoration-color: var(--ink-2); }
.aside-card { position: sticky; top: calc(var(--hdr-h) + 40px); display: grid; gap: 10px; justify-items: start; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.aside-card__title { font: 600 1.25rem/1.2 var(--f-display); margin: 0 0 4px; }
.aside-card p { margin: 0 0 6px; color: var(--ink-2); font-size: .95rem; }
.aside-card a { text-decoration: none; }
.aside-card__tel { font: 600 1.1rem/1.3 var(--f-display); }
.aside-card .btn { margin-top: 10px; }

/* FAQ */
.faq { margin-top: 56px; max-width: 70ch; }
.faq > h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 18px 60px 18px 22px; font: 500 1.02rem/1.35 var(--f-display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font: 400 1.3rem/1 var(--f-body); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }

/* Форма */
.contact-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.contact-band__text p { color: var(--ink-2); margin-top: 20px; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list a, .contact-list span { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.contact-list svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.form { display: grid; gap: 14px; align-content: start; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.form input, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; padding: .85em 1em; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--line); }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-2); opacity: .6; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form__note { margin: 0; font-size: .84rem; color: var(--ink-2); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; min-height: 1.4em; font-size: .95rem; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--err); }
.form.is-sending button { opacity: .6; pointer-events: none; }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 8px; }
.page-hero__icon { display: block; width: 76px; height: 76px; padding: 15px; margin-bottom: 26px; border-radius: 24px; background: var(--accent, var(--ink)); color: #fff; }
.page-hero__icon svg { width: 100%; height: 100%; }
.page-hero__title { font-size: clamp(2rem, .9rem + 3.6vw, 4.2rem); overflow-wrap: break-word; line-height: 1.02; letter-spacing: -.035em; max-width: 18ch; margin-bottom: 22px; }
.page-hero__meta { color: var(--ink-2); margin: 8px 0 0; }
.page-hero__meta b { color: var(--ink); font-family: var(--f-display); }

.subnav { position: sticky; top: calc(var(--hdr-h) + 22px); z-index: 30; margin-top: 28px; pointer-events: none; }
.subnav__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pills { list-style: none; margin: 0; padding: 6px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; pointer-events: auto; border-radius: 999px; background: var(--hdr); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.pills::-webkit-scrollbar { display: none; }
.subpills { margin-top: 14px; min-width: 0; }
.pills--sub { flex-wrap: wrap; width: auto; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 6px; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--ink-2); font: 500 .9rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.pill:hover { color: var(--ink); background: var(--surface-2); }
.pill[aria-current="page"], .pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pill[aria-current="true"] { color: var(--ink); border-color: var(--line-2); }
.pill span { opacity: .6; font-size: .82em; }
.pill--sm { padding: 6px 12px; font-size: .84rem; border-color: var(--line-2); background: var(--bg); }
.notfound .pills, .work__title .pill { width: auto; background: none; backdrop-filter: none; border: 0; padding: 0; flex-wrap: wrap; }

.dirs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.dir__link { position: relative; display: flex; flex-direction: column; height: 100%; padding: 10px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
.dir__link:hover { border-color: var(--line-2); transform: translateY(-4px); }
.dir__img { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.dir__img picture, .dir__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.dir__link:hover .dir__img img { transform: scale(1.05); }
.dir__ph { display: flex; height: 100%; align-items: center; justify-content: center; }
.dir__ph svg { width: 70px; opacity: .45; }
.dir__body { display: grid; gap: 4px; padding: 16px 64px 12px 12px; }
.dir__name { font: 600 1.12rem/1.2 var(--f-display); letter-spacing: -.01em; }
.dir__count { color: var(--ink-2); font-size: .88rem; }
.dir__arrow { position: absolute; right: 18px; bottom: 20px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.dir__arrow svg { width: 18px; height: 18px; }
.dir__link:hover .dir__arrow { background: var(--ink); color: var(--surface); transform: rotate(45deg); }

/* Карточки работ */
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 20px; }
.card[hidden] { display: none; }
.card__link { display: block; text-decoration: none; color: var(--ink); }
.card__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.card__img picture, .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card__link:hover .card__img img { transform: scale(1.05); }
.card__year { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: var(--hdr); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 .78rem/1.2 var(--f-body); }
.card__title { font: 600 1.02rem/1.3 var(--f-display); letter-spacing: -.01em; margin: 16px 0 4px; }
.card__client { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
.card__link:hover .card__title { text-decoration: underline; text-underline-offset: .2em; }
img.is-wide { object-position: 0 50%; }

.empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px; border-radius: var(--r-xl); border: 1px dashed var(--line-2); }
.empty p { margin: 0; max-width: 60ch; color: var(--ink-2); }

/* Работа */
.work__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: end; padding-top: clamp(24px, 4vw, 44px); }
.work__title h1 { font-size: clamp(1.8rem, .9rem + 2.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.03em; max-width: 28ch; margin: 18px 0 0; }
.work__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.work__meta > div { padding: 12px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); min-width: 110px; }
.work__meta dt { font-size: .78rem; color: var(--ink-2); }
.work__meta dd { margin: 2px 0 0; font: 600 .98rem/1.3 var(--f-display); }
.work__meta .work__logo { display: flex; align-items: center; padding: 8px 16px; background: #16171a; }
.work__logo dd { margin: 0; }
.work__logo img { max-height: 58px; width: auto; }
.work__lead { margin-top: clamp(24px, 3vw, 40px); }
.work__lead .gallery__link { display: block; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.work__lead-img { display: block; }
.work__lead img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--surface); }
.work__lead figcaption, .gallery figcaption { margin-top: 10px; font-size: .86rem; color: var(--ink-2); }
.work__about { margin-top: 32px; }
.gallery { list-style: none; margin: 40px 0 0; padding: 0; columns: 3 300px; column-gap: 18px; }
.gallery li { break-inside: avoid; margin-bottom: 22px; }
.gallery figure { margin: 0; }
.gallery .gallery__link { display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; transition: transform .8s var(--ease); }
.gallery .gallery__link:hover img { transform: scale(1.03); }

.pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 56px; }
.pager a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.pager a:hover { border-color: var(--line-2); }
.pager svg { width: 22px; height: 22px; flex: none; color: var(--ink-2); }
.pager small { display: block; color: var(--ink-2); font-size: .78rem; }
.pager span { line-height: 1.3; font-family: var(--f-display); font-size: .95rem; }
.pager__prev { grid-column: 1; }
.pager__all { grid-column: 2; background: none !important; border: 0 !important; color: var(--ink-2); font-size: .9rem; }
.pager__next { grid-column: 3; justify-content: flex-end; text-align: right; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 6, .96); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; color: #f6f6f3; animation: fadeIn .25s ease; }
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox__fig { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__fig img { max-width: 100%; max-height: 84vh; width: auto; border-radius: var(--r-md); }
.lightbox__fig figcaption { color: #a2a3a8; font-size: .9rem; text-align: center; }
.lightbox .icon-btn { color: #f6f6f3; border-color: rgba(255, 255, 255, .3); width: 52px; height: 52px; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__nav--prev { grid-column: 1; justify-self: center; }
.lightbox__nav--next { grid-column: 3; justify-self: center; }

/* Призыв — инвертированный блок */
.cta { margin-top: clamp(72px, 9vw, 140px); }
.cta__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 40px; padding: clamp(32px, 5vw, 72px); border-radius: var(--r-xl); background: var(--inv-bg); color: var(--inv-ink); }
.cta__in p { margin: 16px 0 0; max-width: 50ch; opacity: .75; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* О нас */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.stat b { font: 600 clamp(2.8rem, 1.6rem + 3.4vw, 4.8rem)/1 var(--f-display); letter-spacing: -.04em; }
.stat span { color: var(--ink-2); }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ccard { display: grid; gap: 6px; align-content: start; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
a.ccard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.ccard__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--c-i, var(--ink)); color: #fff; margin-bottom: 14px; }
.ccard__icon svg { width: 20px; height: 20px; }
.ccard__label { font-size: .84rem; color: var(--ink-2); }
.ccard__value { font: 600 1.05rem/1.35 var(--f-display); letter-spacing: -.01em; }
.form-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.form-card h2 { margin-bottom: 22px; }
.map { height: 440px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.9); }
[data-theme="dark"] .map iframe { filter: grayscale(1) invert(.9) contrast(.9); }

.notfound { padding-top: 40px; }
.notfound__code { margin: 0; font: 700 clamp(6rem, 3rem + 14vw, 16rem)/.9 var(--f-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

/* Полосы из логотипа — декоративный разделитель */
.stripes { display: grid; gap: 4px; width: min(340px, 60%); margin-bottom: 40px; }
.stripes i { display: block; height: 6px; border-radius: 0 6px 6px 0; }
.stripes i:nth-child(1) { background: var(--c-lav); width: 52%; margin-left: 22%; }
.stripes i:nth-child(2) { background: var(--c-blue); width: 78%; margin-left: 14%; }
.stripes i:nth-child(3) { background: var(--c-yel); width: 100%; }
.stripes i:nth-child(4) { background: var(--c-org); width: 86%; margin-left: 8%; }
.stripes i:nth-child(5) { background: var(--c-red); width: 76%; margin-left: 20%; }
.stripes i:nth-child(6) { background: var(--c-grn); width: 66%; margin-left: 16%; }
.stripes i:nth-child(7) { background: var(--c-pink); width: 44%; margin-left: 20%; }
.stripes--sm { width: 150px; gap: 3px; margin-bottom: 28px; }
.stripes--sm i { height: 4px; }

/* ---------- Подвал ---------- */
.ftr { margin-top: clamp(72px, 9vw, 140px); padding-top: clamp(48px, 6vw, 80px); background: var(--band); color: #f6f6f3; overflow: hidden; }
.ftr a { text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ftr__claim { margin: 0; max-width: 24ch; font: 600 clamp(1.4rem, .9rem + 1.8vw, 2.4rem)/1.15 var(--f-display); letter-spacing: -.025em; }
.ftr .btn--solid { background: #f6f6f3; color: #0d0e10; border-color: #f6f6f3; }
.ftr__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0; font-size: .95rem; }
.ftr__h { margin: 0 0 14px; color: #8a8b90; font-size: .84rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr__contacts { font-style: normal; display: grid; gap: 8px; align-content: start; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); transition: background-color .2s, color .2s; }
.share a:hover { background: #f6f6f3; color: #0d0e10; }
.share svg { width: 19px; height: 19px; }
.ftr__mark { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 48px); padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(32px, 5vw, 64px); }
.ftr__mark img { width: clamp(90px, 16vw, 260px); height: auto; }
.ftr__mark span { font: 700 clamp(3.4rem, 1rem + 12vw, 15rem)/.8 var(--f-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(167, 158, 205, .55); user-select: none; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8a8b90; font-size: .82rem; position: relative; }
.ftr__legal p { margin: 0; }

/* ---------- Курсор «Смотреть» ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; width: 96px; height: 96px; margin: -48px 0 0 -48px; display: grid; place-items: center; border-radius: 50%; background: var(--c-lav); color: #0d0e10; font: 600 .8rem/1 var(--f-body); transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0); transition: transform .35s var(--ease), opacity .3s; opacity: 0; }
.cursor.is-on { opacity: 1; transform: translate3d(var(--cx), var(--cy), 0) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Появление при прокрутке (только где браузер умеет scroll-driven animations) ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(.98); } }
}

/* ---------- Плавные переходы между страницами (Chrome, Edge, Safari 18+) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
  .ticker__track, .marquee__track { transform: none; }
}

/* =====================================================================
   Адаптив
   ===================================================================== */
@media (max-width: 1599px) {
  .hdr__tel span { display: none; }
  .hdr__tel { padding: 0; width: 44px; }
}

@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hdr__actions { margin-left: auto; }
  .hdr__tel span { display: none; }
  .hdr__tel { padding: 0; width: 44px; }
  .bento-works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bw:nth-child(6) { grid-column: span 1; }
  .bw:nth-child(8) { grid-column: span 2; }
  .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__title { max-width: 18ch; }
  .deck { max-width: 560px; width: calc(100% - 40px); aspect-ratio: 4 / 3.4; }
  .svc, .svc:first-child { grid-column: span 6; grid-row: auto; min-height: 0; }
  .svc__name, .svc:first-child .svc__name { font-size: clamp(1.6rem, 1rem + 2.6vw, 2.4rem); padding-top: 60px; }
  .process, .split, .contact-band, .contact-grid { grid-template-columns: 1fr; }
  .process__intro, .aside-card { position: static; }
  .work__head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --hdr-h: 64px; }
  body { font-size: 16px; }
  .hdr { top: 8px; margin-top: 8px; padding: 0 10px; }
  .hdr__bar { padding: 0 8px 0 12px; gap: 10px; }
  .brand__logo { height: 34px; }
  .hdr__cta { display: none; }
  .hero__facts { gap: 14px 24px; }
  .hero__facts b { font-size: 1.3rem; }
  .deck { width: calc(100% - 28px); margin-top: 36px; }
  .deck__ctrl { right: -8px; }
  .deck__cap { left: 10px; right: 10px; bottom: 10px; padding: 10px 14px; }
  .bento-works { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 10px; }
  .bw:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bw__info { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; }
  .bw:not(:first-child) .bw__cat, .bw:not(:first-child) .bw__meta { display: none; }
  .bw__title { font-size: .82rem; }
  .svc__link { padding: 22px 22px 14px; }
  .svc__cats { padding: 0 22px 22px; }
  .svc__arrow { top: 20px; right: 20px; width: 44px; height: 44px; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .card__title { font-size: .9rem; margin-top: 12px; }
  .card__client { font-size: .82rem; }
  .card__img { border-radius: var(--r-md); }
  .marquee a { width: 140px; height: 80px; padding: 12px; }
  .marquee img { max-height: 48px; }
  .step { grid-template-columns: 1fr; }
  .step__n { grid-row: auto; width: 46px; height: 46px; font-size: 1.1rem; margin-bottom: 8px; }
  .form__row--2, .contact-cards { grid-template-columns: 1fr; }
  .pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pager a { padding: 12px; gap: 8px; min-width: 0; }
  .pager span { overflow-wrap: anywhere; font-size: .85rem; }
  .pager__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .pager__next { grid-column: 2; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__fig { grid-column: 1; padding: 0 10px; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__nav--prev { left: 22px; }
  .lightbox__nav--next { right: 22px; }
  .ftr__grid { grid-template-columns: 1fr; }
  .map { height: 320px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .subnav { top: calc(var(--hdr-h) + 16px); }
}

@media (max-width: 380px) {
  .works { grid-template-columns: 1fr; }
}
