/* ===== Tokens (layout values are also set from JS per breakpoint) ===== */
:root {
  --edge: 12px;
  --navbox: 40px;
  --navH: 64px;
  --col: max(50vw, 14rem);
  --navfs: 1.3rem;
  --small-top: calc(var(--edge) * 2 + 2.5rem);
  --grey: #eaeaea;
  --dgrey: #cccccc;
  --mid: #9b9b9b;
  --black: #000;
  --white: #fff;
  --vh: 1vh;
  --fs-default: 1rem;
  --fs-large: 1.25rem;
  --fs-nav: 1.25rem;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --fs-default: 1rem; --fs-large: 1.375rem; --fs-nav: 1.5rem; } }
@media (min-width: 1024px) { :root { --fs-default: 1.125rem; --fs-large: 1.5rem; --fs-nav: 1.875rem; } }
@media (min-width: 1536px) { :root { --fs-default: 1.25rem; --fs-large: 1.75rem; --fs-nav: 2.25rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: 'Onest', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
ul { list-style: none; }
.u { text-decoration: underline; text-underline-offset: 0.12em; transition: opacity .2s; }
@media (hover: hover) { .u:hover, .hov:hover { opacity: .5; } }
.hov { transition: opacity .3s; }

/* ===== Text styles ===== */
.t-default { font-size: var(--fs-default); line-height: 1.2em; }
.t-detail { font-size: var(--fs-default); line-height: 1.2em; font-weight: 700; letter-spacing: -0.04em; }
.t-large { font-size: var(--fs-large); line-height: 1.2em; font-weight: 500; letter-spacing: -0.035em; }
.t-nav { font-size: var(--fs-nav); line-height: 1em; font-weight: 700; letter-spacing: -0.04em; }
.t-label { font-size: 12px; line-height: 1.2; font-weight: 500; }
@media (min-width: 1280px) { .t-label { font-size: 13px; } }

/* ===== Header / nav ===== */
.hdr { position: fixed; z-index: 50; top: 0; left: 0; width: 100vw; padding: var(--edge); pointer-events: none; }
.nav { display: flex; align-items: stretch; height: var(--navbox); gap: var(--edge); pointer-events: none; }
.nav__col { position: relative; width: 102px; flex: none; }
@media (min-width: 768px) { .nav__col { width: var(--col); } }
.tog { position: absolute; inset: 0 auto auto 0; width: 100%; height: var(--navbox); pointer-events: none; }
/* the wordmark sits on a grey plate the size of the nav buttons; scrolled, the plate shrinks into a black burger tile */
.tog__plate {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: .5rem; background: var(--grey); color: var(--black);
  pointer-events: auto; overflow: hidden;
  transition: width .6s cubic-bezier(.65,0,.2,1), height .6s cubic-bezier(.65,0,.2,1), border-radius .5s, background-color .35s;
}
@media (min-width: 768px) { .tog__plate { border-radius: 1.5rem; } }
@media (hover: hover) { .tog:not(.is-col) .tog__plate:hover { background: var(--dgrey); } }
.tog { --mini: 8.25rem; }
@media (max-width: 767px) { .tog { --mini: 102px; } }
.tog__face { position: absolute; left: 50%; top: 50%; height: clamp(1rem, calc(var(--navbox) * .3), 2.6rem); transform: translate(-50%, -50%); transition: left .6s cubic-bezier(.65,0,.2,1), height .6s cubic-bezier(.65,0,.2,1), transform .6s cubic-bezier(.65,0,.2,1), color .35s; }
.tog__face svg { height: 100%; width: auto; display: block; }
.tog.is-col .tog__plate { width: var(--mini); height: 2.5rem; border-radius: .75rem; background: var(--black); }
.tog.is-col .tog__face { left: 2.35rem; height: .95rem; transform: translate(0, -50%); color: var(--white); }
@media (max-width: 767px) { .tog.is-col .tog__face { height: .72rem; } }
.tog__lines { position: absolute; left: 0; top: 0; width: 2.5rem; height: 100%; opacity: 0; transition: opacity .3s; }
.tog.is-col .tog__lines { opacity: 1; transition-delay: .3s; }
.tog__lines i { position: absolute; left: 50%; top: 50%; width: 1.05rem; height: 2px; margin: -1px 0 0 -.525rem; border-radius: 2px; background: var(--white); transition: transform .45s cubic-bezier(.3,1.4,.5,1), width .3s; }
.tog__lines i:first-child { transform: translateY(-.22rem); }
.tog__lines i:last-child { transform: translateY(.22rem); width: .7rem; }
@media (hover: hover) { .tog.is-col .tog__plate:hover .tog__lines i:last-child { width: 1.05rem; } }
.tog.is-open .tog__lines i:first-child { transform: rotate(45deg); }
.tog.is-open .tog__lines i:last-child { transform: rotate(-45deg); width: 1.05rem; }
.back {
  position: absolute; top: 0; left: calc(8.25rem + 0.5rem);
  width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--grey);
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s cubic-bezier(.2,.9,.3,1.2), background-color .2s;
  visibility: hidden;
}
.back svg { width: 1.1rem; height: 1.1rem; }
.back.is-on { opacity: 1; transform: none; visibility: visible; }
@media (hover: hover) { .back:hover { background: var(--dgrey); } }

.nav__links { flex: 1; display: flex; gap: var(--edge); pointer-events: none; }
.nl {
  pointer-events: auto; flex: 1; display: flex; align-items: center; justify-content: center;
  border-radius: .5rem; background: var(--grey); color: var(--black);
  transition: background-color .3s, color .3s; will-change: transform;
  transform: translateY(-120%);
}
@media (min-width: 768px) { .nl { border-radius: 1.5rem; } }
.nl > span { font-weight: 600; font-size: calc(var(--navfs) * .8); line-height: 1em; letter-spacing: -0.035em; user-select: none; white-space: nowrap; }
@media (min-width: 768px) { .nl > span { transform: translateY(-0.05em); } }
.nl.is-active { background: var(--black); color: var(--white); }
@media (hover: hover) { .nl:not(.is-active):hover { background: var(--dgrey); } }

/* ===== Page transitions ===== */
#app { min-height: 100vh; transition: opacity .3s ease; }
#app.is-leaving { opacity: 0; transition-duration: .35s; }
#app.is-entering { opacity: 0; transition: none; }

/* ===== Generic layout ===== */
.wrap { display: flex; align-items: flex-start; gap: var(--edge); padding: 0 var(--edge) 3rem; width: 100%; }
.side { flex: none; width: var(--col); position: sticky; top: var(--small-top); z-index: 10; display: flex; flex-direction: column; gap: var(--edge); }
.side > * { will-change: transform; }
.content { flex: 1; min-width: 0; }
@media (max-width: 767px) {
  .wrap { flex-direction: column; align-items: stretch; }
  .side { position: relative; top: 0; width: 100%; }
}

/* Pills / tags */
.tag {
  display: inline-flex; align-items: center; white-space: nowrap; user-select: none;
  background: var(--grey); color: var(--black); border-radius: .5em; padding: .3em .45em .32em;
  font-weight: 700; letter-spacing: -0.04em; font-size: var(--fs-default); line-height: 1.2em;
}
.btn {
  display: inline-flex; align-items: center; height: 2.5rem; padding: 0 .75rem; white-space: nowrap; user-select: none;
  border-radius: .5rem; background: var(--grey); color: var(--black); font-weight: 700; font-size: var(--fs-default); letter-spacing: -0.04em;
  transition: background-color .2s, color .2s;
}
@media (min-width: 1024px) { .btn { border-radius: .75rem; } }
@media (hover: hover) { .btn:hover { background: var(--dgrey); } }
.btn.is-on { background: var(--black); color: var(--white); }
.btn--white { background: var(--white); }
.btn--block { width: 100%; justify-content: center; }
.side__cta { position: fixed; left: var(--edge); bottom: var(--edge); width: var(--col); height: 3.75rem; border-radius: 1rem; font-size: var(--fs-large); z-index: 40; animation: ctaIn .7s cubic-bezier(.16,1,.3,1) .1s backwards; }
.side__cta { transition: transform .5s cubic-bezier(.16,1,.3,1), background-color .2s; }
.foot-in .side__cta { transform: translateY(160%); }
@keyframes ctaIn { from { transform: translateY(150%); } to { transform: none; } }
@media (min-width: 1280px) { .side__cta { height: 4.25rem; border-radius: 1.25rem; } }
@media (max-width: 767px) { .side__cta { left: var(--edge); right: var(--edge); width: auto; height: 3.25rem; } }
.btn--sm { height: 2rem; padding: 0 .6rem; font-size: 14px; border-radius: .5rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.slide-in { animation: slideIn .7s cubic-bezier(.16,1,.3,1) both; }
@keyframes slideIn { from { transform: translateX(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Grey box with fades (season list etc.) */
.box { position: relative; background: var(--grey); border-radius: .5rem; overflow: hidden; }
@media (min-width: 1024px) { .box { border-radius: .75rem; } }
@media (min-width: 1280px) { .box { border-radius: 1rem; } }
.fade::before, .fade::after { content: ''; position: absolute; left: 0; width: 100%; height: 1rem; z-index: 1; pointer-events: none; }
.fade::before { top: 0; background: linear-gradient(#eaeaea, #eaeaea00); }
.fade::after { bottom: 0; background: linear-gradient(#eaeaea00, #eaeaea); }

/* Dot list (seasons, featured, info sections) */
.dl { padding: .5rem .75rem; }
@media (min-width: 1024px) { .dl { padding: .5rem 1rem; } }
@media (min-width: 1280px) { .dl { padding: 1rem 1rem; } }
.dl li { position: relative; display: flex; justify-content: space-between; line-height: 1.2em; cursor: pointer; opacity: .3; transition: opacity .3s; }
.dl li.is-on { opacity: 1; }
@media (hover: hover) { .dl li:hover { opacity: 1; } }
.dl li .nm { display: block; transition: transform .6s cubic-bezier(.2,.9,.3,1); }
.dl li.is-on .nm { transform: translateX(0.9em); }
.dl li::before { content: ''; position: absolute; top: 50%; left: 0; width: .7em; height: .7em; border-radius: 50%; background: currentColor; transform: translateY(-50%) scale(0); opacity: 0; transition: transform .5s cubic-bezier(.3,1.4,.5,1), opacity .3s; }
.dl li.is-on::before { transform: translateY(-50%) scale(1); opacity: 1; }
.dl .yr { font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s; }
.dl li.is-on .yr, .box:hover .dl .yr { opacity: 1; }

/* ===== Placeholder media ===== */
.ph {
  position: relative; width: 100%; overflow: hidden; background: var(--tone, #d9d9d9);
  color: var(--ink, rgba(0,0,0,.45));
}
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph__lbl {
  position: absolute; left: .6rem; bottom: .55rem; right: .6rem; font-size: 12px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2;
  display: flex; align-items: center; gap: .4rem; pointer-events: none;
}
.ph__lbl svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.ph--grad { background: conic-gradient(from 0deg, #ff1e56, #ffac41, #f8f32b, #19e619, #1ec8ff, #4b3bff, #ff1e9e, #ff1e56); }
.ph--dark { --ink: rgba(255,255,255,.5); }
.ph__mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; letter-spacing: -0.05em; line-height: .9; text-align: center; padding: 1rem; }

/* ===== Work grid ===== */
.work { padding-top: var(--navH); }
.wgrid { display: grid; grid-template-columns: repeat(var(--wcols, 2), minmax(0, 1fr)); gap: 4rem var(--edge); padding-bottom: 4rem; }
@media (max-width: 639px) { .wgrid { gap: 1.5rem var(--edge); } }
.witem { display: flex; flex-direction: column; gap: .5rem; transition: transform .3s; animation: popIn .3s ease both; }
.witem.is-wide { grid-column-end: span 2; }
@media (hover: hover) { .witem:hover { transform: scale(1.02); } }
.cmedia { position: relative; display: flex; gap: var(--edge); aspect-ratio: 4/3; overflow: hidden; background: var(--grey); }
.witem.is-wide .cmedia { aspect-ratio: 2.05/1; }
.cmedia__main { position: relative; flex: 1; min-width: 0; height: 100%; }
.cmedia img, .cmedia video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmedia--split { background: none; }
.cmedia__side { position: relative; flex: none; height: 100%; aspect-ratio: 9/16; background: #111; }
.cmedia__side .sound { position: absolute; right: .6rem; bottom: .6rem; }
.cmedia__badge { position: absolute; left: .6rem; top: .6rem; z-index: 2; }
.witem__line { color: var(--mid); max-width: 36rem; }
.witem__row { display: flex; justify-content: space-between; gap: 1rem; }
.witem__row span:last-child { text-align: right; }
.wtoggle { position: fixed; left: 0; bottom: 0; z-index: 20; padding: var(--edge); display: flex; gap: .5rem; animation: popIn .3s ease both; }
.wfilters { position: relative; }
.work .side { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.work.is-feat .side { transform: translateY(calc(var(--small-top) - var(--navH))); z-index: 5; }
.work.is-feat .side .featlist { position: relative; z-index: 5; }
.wfilters.is-hidden { display: none; }

/* Featured wheel */
.wheel { position: fixed; inset: 0; overflow: hidden; z-index: 1; background: var(--white); }
.work.is-feat { position: relative; z-index: 2; pointer-events: none; }
.work.is-feat .side { pointer-events: auto; }
.wheel__item { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; will-change: transform; pointer-events: none; }
.wheel__item > a { pointer-events: auto; display: block; width: 78vw; aspect-ratio: 16/9; max-height: 78vh; overflow: hidden; }
.wheel__item img, .wheel__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.featlist { max-height: calc(var(--vh) * 100 - var(--navH) - 5rem); overflow: auto; }
.cursor-title {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; color: #fff; mix-blend-mode: difference;
  font-weight: 700; font-size: var(--fs-nav); line-height: 1; letter-spacing: -0.04em; opacity: 0; transition: opacity .3s .1s; white-space: nowrap;
}
.cursor-title.is-on { opacity: 1; }

/* ===== Project page ===== */
.proj { padding-top: var(--small-top); }
.proj__side { height: calc(var(--vh) * 100 - var(--small-top) - var(--edge)); justify-content: space-between; pointer-events: none; }
.proj__side > * { pointer-events: auto; }
.proj__meta { display: flex; flex-direction: column; gap: .4rem; transition: filter .6s, opacity .6s; }
.proj__meta.is-blur { filter: blur(8px); opacity: .35; }
.proj__title { font-size: var(--fs-nav); line-height: 1em; font-weight: 700; letter-spacing: -0.045em; }
.proj__sub { font-size: 13px; font-weight: 500; margin-bottom: .4rem; }
.proj__bottom { display: flex; flex-direction: column; gap: var(--edge); }
.credits, .talk { padding: .75rem; transform: translateY(calc(100% + 30vh)); transition: transform .8s cubic-bezier(.16,1,.3,1); }
.is-end .credits, .is-end .talk { transform: none; }
.is-end .talk { transition-delay: .06s; }
.credits h4, .talk h4 { font-size: var(--fs-large); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: .6rem; }
.credits dl { margin: 0; font-size: 13px; line-height: 1.25; }
.credits dt { color: var(--mid); font-size: 11px; margin-top: .55rem; }
.credits dd { margin: 0; font-weight: 500; }
.blocks { display: flex; flex-direction: column; gap: var(--edge); }
.blk-text { padding: 2.5rem 0 2.5rem 9%; max-width: 62rem; }
.blk-text .t-label { margin-bottom: .5rem; }
.blk-text__p { margin-top: 1em; max-width: 44rem; }
.blk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); align-items: start; }
.pfig { margin: 0; position: relative; background: var(--grey); overflow: hidden; }
.pfig img, .pfig video { width: 100%; height: auto; display: block; }
.pfilm { cursor: pointer; }
.pfilm__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; transition: transform .3s; }
@media (hover: hover) { .pfilm:hover .pfilm__play { transform: translate(-50%, -50%) scale(1.06); } }
.ploop { background: #111; display: flex; justify-content: center; padding: 4rem 0; }
.ploop__in { position: relative; width: min(100%, 46vh); }
.ploop__in video { border-radius: .5rem; }
.ploop .sound { position: absolute; right: .6rem; bottom: .6rem; }
.more { margin-top: 4rem; }
.more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--edge); margin-top: .5rem; }
.more__grid a { display: flex; flex-direction: column; gap: .5rem; }
.more__pic { aspect-ratio: 4/3; overflow: hidden; background: var(--grey); }
.more__pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .proj__side { height: auto; } .credits, .talk { transform: none; } .blk-text { padding-left: 0; } }


/* ===== Shared motion bits ===== */
@keyframes popIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.spin { animation: spin 30s linear infinite; border-radius: 50%; overflow: hidden; aspect-ratio: 1/1; background: var(--grey); }
.spin--rev { animation-direction: reverse; }
.spin img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }
.zoom { transition: transform .3s; }
@media (hover: hover) { .zoom:hover { transform: scale(1.02); } }
img[loading] { opacity: 0; transition: opacity .5s ease; }
img[loading].is-loaded { opacity: 1; }
.c-mid { color: var(--mid); }
.b { font-weight: 700; letter-spacing: -0.04em; }
.tag--white { background: var(--white); }
.t-xl { font-size: calc(var(--fs-nav) * 1.05); line-height: 1.12em; font-weight: 500; letter-spacing: -0.04em; max-width: 52rem; }
.t-quote { font-size: calc(var(--fs-nav) * 1.25); line-height: 1.05em; font-weight: 700; letter-spacing: -0.045em; }

/* typed headline letters (Info hero of the reference) */
.tw { display: inline-block; white-space: nowrap; }
.tc { opacity: 0; transition: opacity .45s ease; }
.tc.on { opacity: 1; }

/* 3D floating pictures */
.float { position: absolute; inset: 0; display: flex; padding: 1.5rem; perspective: 100px; perspective-origin: 50% 0; pointer-events: none; }
.float > div { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; }
.float__img { position: absolute; width: 8rem; will-change: transform; transform: scale(0); }
@media (min-width: 1024px) { .float__img { width: 15vw; } }
.float__img img { border-radius: .5rem; width: 100%; }

/* ===== Home ===== */
.home { position: relative; width: 100%; background: var(--white); padding-top: var(--navH); }
/* sidebar: the sections as tags, the one on screen turns black */
.secnav { gap: .4rem; }
.secnav .btn { height: 2.25rem; transition: background-color .35s, color .35s, transform .5s cubic-bezier(.3,1.4,.5,1); }
.secnav .btn.is-on { transform: scale(1.04); }
@media (max-width: 767px) { .secnav { display: none; } }
.offer { padding: 0 0 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.h-hero { font-weight: 700; font-size: 12vw; line-height: 1em; letter-spacing: -0.045em; max-width: 14em; }
@media (min-width: 640px) { .h-hero { font-size: 8vw; } }
@media (min-width: 768px) { .h-hero { font-size: var(--navfs-raw, 3.2rem); } }
/* «без найма / срывов / суеты…» — same type, grey, the second word rolls; the words share one grid
   cell so the box keeps the width of the longest one and the title never reflows */
.h-hero__acc { display: inline-block; color: var(--black); white-space: nowrap; opacity: 0; transform: translateY(.35em); transition: opacity .55s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.h-hero__acc.is-on { opacity: 1; transform: none; }
.h-hero__roll { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.h-hero__roll > span { grid-area: 1 / 1; transform: translateY(.9em); opacity: 0; transition: transform .55s cubic-bezier(.2,.9,.3,1), opacity .35s ease; }
.h-hero__roll > span.is-on { transform: none; opacity: 1; }
.h-hero__roll > span.is-out { transform: translateY(-.9em); opacity: 0; }
.offer__intro { max-width: 40rem; }

/* letter «Тем, кто продаёт машины» */
/* one sentence across the full width: the title runs straight into the text */
.letter__p { font-size: calc(var(--fs-nav) * 1.35); line-height: 1.12em; letter-spacing: -0.045em; font-weight: 600; margin-bottom: .7em; }
.letter__p:last-child { margin-bottom: 0; }

/* words fill from grey to black while scrolling */
.fw { color: #c9c9c9; transition: color .35s ease; }
.fw.on { color: inherit; }
.t-big { font-size: calc(var(--fs-nav) * 1.35); line-height: 1.1em; font-weight: 600; letter-spacing: -0.045em; max-width: 30em; }

/* «Что мы делаем» — five directions: было → что делаем → кейс */
.dir { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 2rem 0; border-top: 1px solid #e3e3e3; color: var(--mid); transition: color .3s; }
.dir:first-child { padding-top: 0; border-top: 0; }
.dir__items { max-width: 28em; font-size: var(--fs-default); font-weight: 500; line-height: 1.45; color: inherit; opacity: .85; }
.dir.is-on { color: var(--black); }
.dir__n { background: var(--grey); color: var(--mid); transition: background-color .3s, color .3s; }
.dir.is-on .dir__n { background: var(--black); color: var(--white); }
.dir__title { font-weight: 700; font-size: calc(var(--fs-nav) * 1.35); line-height: 1em; letter-spacing: -0.045em; }
.dir .btn { cursor: default; color: inherit; }
.dir__pic { display: none; }

/* «Вся головная боль — на нас» */
/* «Избавьтесь от головной боли» — pinned; «головной боли» breaks into shards on scroll */
.shatter { position: relative; height: calc(var(--vh) * 220); margin-bottom: 4rem; scroll-margin-top: var(--small-top); }
.shatter__stage { position: sticky; top: var(--small-top); height: calc(var(--vh) * 100 - var(--small-top)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; text-align: center; overflow: hidden; }
.shatter__title { font-weight: 700; font-size: calc(var(--navfs-raw, 3.2rem) * 1.15); line-height: 1em; letter-spacing: -0.05em; max-width: 12em; }
.shatter__stage { display: grid; place-items: center; }
.shatter__old, .shatter__new { grid-area: 1 / 1; }
.shatter__old { pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: clamp(1rem, 3vh, 2.5rem); }
.brain { position: relative; width: clamp(9rem, 26vh, 17rem); aspect-ratio: 641 / 720; display: grid; grid-template-columns: repeat(4, 1fr); will-change: transform; background: url(assets/team/stickers/brain.webp?v=3) center / 100% 100% no-repeat; }
.brain__t { visibility: hidden; }
.brain.is-blown { background: none; }
.brain.is-blown .brain__t { visibility: visible; }
.brain__t { background: url(assets/team/stickers/brain.webp?v=3) no-repeat; background-size: 400% 400%; will-change: transform, opacity; }
.brain__boom { position: absolute; left: 50%; top: 50%; width: 170%; max-width: none; opacity: 0; transform: translate(-50%, -50%) scale(.3); pointer-events: none; z-index: 2; }
.shatter__new { position: relative; z-index: 2; }
.sw { display: inline-block; white-space: nowrap; }
.shard { display: inline-block; will-change: transform, opacity; }
.shatter__new { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; opacity: 0; transform: translateY(2rem) scale(.97); transition: opacity .7s ease, transform .9s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.shatter.is-broken .shatter__new { opacity: 1; transform: none; pointer-events: auto; }

/* «Без нас — и с нами» */
.vs { display: flex; flex-direction: column; gap: .5rem; }
.vs__head, .vs__row { display: grid; grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr); gap: .5rem; align-items: stretch; }
.vs__head { margin-bottom: .25rem; }
.vs__head .tag { width: fit-content; }
.tag--black { background: var(--black); color: var(--white); }
.vs__was, .vs__now { border-radius: .75rem; padding: 1.1rem 1.25rem; font-size: var(--fs-large); line-height: 1.15; font-weight: 600; letter-spacing: -0.035em; }
.vs__was { background: var(--grey); color: var(--mid); }
.vs__now { background: var(--black); color: var(--white); }
.vs__arrow { display: flex; align-items: center; justify-content: center; font-size: var(--fs-large); font-weight: 700; }
.sec { padding: 0 0 8rem; scroll-margin-top: var(--small-top); }
.sec > .t-label { margin-bottom: .75rem; }
.h-sec { font-size: calc(var(--fs-nav) * 1.35); line-height: 1em; font-weight: 700; letter-spacing: -0.045em; margin-bottom: 2.5rem; }
.h-sec--sm { font-size: var(--fs-nav); margin: 7rem 0 2rem; }
.sec__note { max-width: 44rem; margin: -1.25rem 0 3rem; text-wrap: balance; }
.h-sec, .deck__title, .deck__sub { text-wrap: balance; }

.marquee { overflow: hidden; padding: 1.25rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 20s linear infinite; }
.brand { flex: none; display: flex; align-items: center; padding: 0 clamp(1.1rem, 2.2vw, 2.25rem); }
.brand img { height: calc(var(--h) * 1px * var(--logo-k, 1.25)); width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

.screen { padding: 0 0 8rem; display: flex; flex-direction: column; gap: .5rem; }
.screen__box { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--grey); }
.screen__layer { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.screen__layer.is-on { opacity: 1; }
.screen__layer img, .screen__layer video { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.screen > * { min-width: 0; }
.screen__strip { width: 100%; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-top: .25rem; }
.screen__strip::-webkit-scrollbar { display: none; }
.screen__thumb { flex: none; width: 6.5rem; aspect-ratio: 4/3; overflow: hidden; opacity: .3; transition: opacity .3s; background: var(--grey); }
.screen__thumb.is-on { opacity: 1; }
@media (hover: hover) { .screen__thumb:hover { opacity: 1; } }
.screen__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* pop-in on first sight */
[data-reveal] { opacity: 0; transform: translateY(1.5rem) scale(.97); transition: opacity .6s ease var(--d, 0s), transform .8s cubic-bezier(.16,1,.3,1) var(--d, 0s), background-color .3s, color .3s; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* «Знакомо?» — a deck pinned to the screen; scrolling deals the cards one by one */
ol { list-style: none; margin: 0; padding: 0; }
.deck { position: relative; height: calc(var(--vh) * 62 * var(--n) + var(--vh) * 40); margin-bottom: 4rem; scroll-margin-top: var(--small-top); }
.deck__stage { position: sticky; top: var(--small-top); height: calc(var(--vh) * 100 - var(--small-top)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; overflow: hidden; padding: 0 0 1rem; }
.deck__head { text-align: center; }
.deck__title { font-weight: 700; font-size: var(--navfs-raw, 3.2rem); line-height: .95em; letter-spacing: -0.05em; }
.deck__cards { position: relative; width: min(100%, 52rem); aspect-ratio: 16 / 10; max-height: 56vh; margin-top: 6rem; }
.deck__card { position: absolute; inset: 0; border-radius: 1rem; overflow: hidden; background: #111; transform-origin: 50% 0; will-change: transform; box-shadow: 0 -1px 0 rgba(255,255,255,.15) inset; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.deck__card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.deck__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; color: var(--white); }
.deck__txt p { font-weight: 700; font-size: calc(var(--fs-nav) * 1.2); line-height: 1.05em; letter-spacing: -0.045em; max-width: 22em; }
.deck__count { color: var(--mid); }

.verdict { position: relative; isolation: isolate; height: calc(var(--vh) * 80); margin: 0 0 var(--verdict-gap, 8rem); overflow: hidden; }
.ring { position: absolute; inset: 0; }
.ring__item { position: absolute; left: 0; top: 0; width: clamp(6.5rem, 11vw, 12.5rem); aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey); will-change: transform; transition: filter .3s; }
.ring__item img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
@media (hover: hover) { .ring__item:hover { filter: brightness(1.08); } }
.verdict__text { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 2; text-align: center; font-weight: 700; font-size: calc(var(--navfs-raw, 3.2rem) * .62); line-height: 1em; letter-spacing: -0.05em; padding: 0 var(--edge); pointer-events: none; }
.verdict__line { color: var(--mid); min-height: 1em; }
.verdict__word { display: inline-block; min-width: 1ch; border-right: .06em solid currentColor; padding-right: .05em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }

/* big grey list, one item black */
.hl { font-size: calc(var(--fs-nav) * 1.05); font-weight: 500; line-height: 1.2em; letter-spacing: -0.04em; }
.hl > li { color: var(--mid); transition: color .25s; cursor: default; }
.hl > li.is-on { color: var(--black); }

/* «Что мы делаем» — lists on the left, a big sticky picture on the right */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--edge); align-items: start; }
.svc__lists { display: flex; flex-direction: column; padding-bottom: 10vh; }
.svc__pic { position: sticky; top: calc(var(--small-top) + 1rem); margin: 0; }
.svc__frame { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--grey); }
.svc__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .5s ease, transform 1.2s cubic-bezier(.16,1,.3,1); }
.svc__frame img.is-front.is-loaded { opacity: 1; transform: none; }

/* «Вам — один чат» — read one promise at a time */
/* promise cards — the same deck, typographic cards with a line icon */
.deck--text .deck__cards { aspect-ratio: 16 / 9; }
.deck__title--sm { font-size: calc(var(--navfs-raw, 3.2rem) * .7); }
.pcard { background: var(--grey); color: var(--black); display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.pcard::after { display: none; }
.pcard--dark { background: var(--black); color: var(--white); }
.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.pcard--dark .tag { background: var(--white); }
.pcard__icon { width: clamp(2.75rem, 5vw, 4rem); height: auto; }
/* badge — big number in a thick outline circle, overlapped by a filled circle with the icon (Pragmatica) */
.pcard { --card-bg: var(--grey); }
.pcard--dark { --card-bg: var(--black); }
.badge { --b: clamp(5rem, 8.5vw, 8rem); --w: calc(var(--b) * .07); display: inline-flex; align-items: center; flex: none; }
.badge__n, .badge__i { width: var(--b); height: var(--b); border-radius: 50%; display: grid; place-items: center; flex: none; }
.badge__n { border: var(--w) solid currentColor; font-weight: 500; font-size: calc(var(--b) * .56); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.badge__i { position: relative; margin-left: calc(var(--b) * -.12); background: currentColor; box-shadow: 0 0 0 calc(var(--w) * .9) var(--card-bg); }
.badge__svg { width: 58%; height: auto; display: block; color: var(--card-bg); }
.pcard__t { font-weight: 700; font-size: calc(var(--fs-nav) * 1.2); line-height: 1.05em; letter-spacing: -0.045em; margin-bottom: .6rem; max-width: 18em; }
.pcard__t--big { font-size: calc(var(--fs-nav) * 1.45); margin-bottom: 0; max-width: 16em; }
.pcard__x { font-size: var(--fs-large); line-height: 1.25; color: #6d6d6d; max-width: 30em; }
.pcard--dark .pcard__x { color: #b5b5b5; }

/* «В чём мы особенно хороши» — cards */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--edge); }
/* equal cards: tag on top, then a 2-line title and a 3-line text reserved, so all three line up */
.card3 { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding: 1.25rem; border-radius: 1rem; background: var(--grey); cursor: default; }
.card3__icon { width: clamp(2.5rem, 4vw, 3.25rem); height: auto; }
.card3__t { font-weight: 700; font-size: var(--fs-nav); line-height: 1.05; letter-spacing: -0.045em; margin-bottom: .6rem; min-height: 2.1em; }
.card3__x { color: #6d6d6d; transition: color .3s; line-height: 1.25; min-height: 3.75em; }
@media (hover: hover) {
  .card3:hover { background: var(--black); color: var(--white); }
  .card3:hover .badge__i { background: var(--white); color: var(--black); }
  .card3:hover .card3__x { color: #bdbdbd; }
}

/* team — five grey plates in the nav-button idiom; the hovered one turns black and a case picture pops out */
.tlist { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; }
.trow {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: clamp(5rem, 8vw, 8rem); padding: 0 clamp(1.1rem, 2.4vw, 2.25rem);
  border-radius: 1rem; background: var(--grey); cursor: default; transition: transform .45s cubic-bezier(.3,1.5,.5,1);
}
@media (min-width: 768px) { .trow { border-radius: 1.5rem; } }
.trow__t { white-space: nowrap; font-weight: 700; font-size: calc(var(--fs-nav) * 1.7); line-height: 1; letter-spacing: -0.055em; }
.trow__x { max-width: 26em; font-size: var(--fs-default); font-weight: 500; color: #7a7a7a; text-align: right; transition: color .3s; }
/* a cartoon sticker of the role jumps out of the plate on hover */
.trow__pic { position: absolute; right: 8%; bottom: 10%; width: clamp(9rem, 15vw, 15rem); z-index: 3; pointer-events: none;
  opacity: 0; transform: translateY(30%) rotate(0deg) scale(.4); transform-origin: 50% 100%;
  transition: opacity .2s, transform .55s cubic-bezier(.3,1.6,.5,1); filter: drop-shadow(0 .8rem 1.4rem rgba(0,0,0,.25)); }
.trow__pic img { width: 100%; height: auto; display: block; }
@media (hover: hover) {
  .trow:hover { transform: translateY(-.3rem) rotate(var(--tr, -1deg)) scale(1.015); z-index: 2; }
  .trow:nth-child(even):hover { --tr: 1deg; }
  .trow:hover .trow__pic { opacity: 1; transform: translateY(0) rotate(var(--r)) scale(1); }
}
@media (max-width: 767px) {
  .trow { min-height: 4.5rem; padding: .9rem 1rem; }
  .trow__t { font-size: 1.6rem; white-space: normal; }
  .trow__x { font-size: 13px; text-align: left; }
  .trow__pic { opacity: 1; right: .5rem; bottom: .25rem; width: 5.5rem; transform: rotate(var(--r)); }
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--edge); }
.step { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 14rem; padding: 1.25rem; border-radius: 1rem; background: var(--grey); }
.step__top { display: flex; justify-content: space-between; align-items: flex-start; }
.step__icon { width: clamp(2.25rem, 3.4vw, 3rem); height: auto; }
.fmt__card .step__icon { width: clamp(3.5rem, 5.2vw, 5rem); }
.step__t { font-weight: 700; font-size: var(--fs-large); line-height: 1.1; letter-spacing: -0.04em; margin-bottom: .4rem; }

.fmt { display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); }
.fmt__card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: 1rem; background: var(--grey); }
.fmt__card--dark { background: var(--black); color: var(--white); }
.fmt__card .tag { background: var(--white); }
.fmt__name { font-weight: 700; font-size: calc(var(--fs-nav) * 1.2); line-height: 1; letter-spacing: -0.045em; margin-top: 1.5rem; }
.fmt__lead { font-size: var(--fs-large); line-height: 1.25; color: #6d6d6d; }
.fmt__card--dark .fmt__lead { color: #b5b5b5; }
.fmt__list { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; font-size: var(--fs-default); font-weight: 600; }
.fmt__list li { display: flex; align-items: center; gap: .6rem; }
.fmt__check { width: 1.15em; height: auto; flex: none; }
.fmt__note { margin-top: 1.25rem; }

.faq { display: flex; flex-direction: column; gap: .5rem; }
.qa { background: var(--grey); border-radius: .75rem; padding: 0 1rem; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--white); transition: transform .4s cubic-bezier(.2,.9,.3,1.2); }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: .7rem; height: 2px; background: #000; transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary i { transform: rotate(45deg); }
.qa p { padding: 0 0 1.1rem; max-width: 48rem; }

/* contact block — its own headline, roomy bold fields */
.cta__head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.cta__title { font-weight: 700; font-size: calc(var(--fs-nav) * 1.35); line-height: 1em; letter-spacing: -0.045em; }
.cta__lead { max-width: 34rem; }
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--edge); }
.ccard { border-radius: 1.25rem; background: var(--grey); padding: 1.5rem; display: flex; gap: 1rem; }
.ccard--col { flex-direction: column; }
.ccard--dark { background: var(--black); color: var(--white); }
.ccard h4 { font-size: var(--fs-large); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; }
.ccard--dark h4 { color: #b5b5b5; font-weight: 600; }
.cbig { font-weight: 700; font-size: calc(var(--fs-nav) * 1.05); line-height: 1.1; letter-spacing: -0.045em; word-break: break-word; transition: opacity .2s; }
@media (hover: hover) { .cbig:hover { opacity: .6; } }
.ccard__audit { margin-top: auto; padding-top: 1.5rem; color: #b5b5b5; }
.ncard { flex-direction: column; gap: 1.25rem; }
.ncard__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fld { display: flex; flex-direction: column; gap: .5rem; }
.fld > span { font-size: 13px; font-weight: 600; color: #6d6d6d; }
.ncard input[type=text], .ncard textarea { width: 100%; border: 0; border-radius: .9rem; min-height: 3.5rem; padding: 1rem 1.1rem; font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; background: #fff; resize: vertical; transition: box-shadow .2s; }
.ncard textarea { min-height: 7rem; }
.ncard input:focus, .ncard textarea:focus { outline: none; box-shadow: 0 0 0 2px #000; }
.ncard .is-bad { box-shadow: 0 0 0 2px #e5484d; }
.ncard .tags .btn { height: 2.75rem; border-radius: .9rem; padding: 0 1rem; }
.ncard__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }
.ncard__check { display: flex; gap: .6rem; font-size: 14px; line-height: 1.25; align-items: center; }
.ncard__check input { accent-color: #000; margin: 0; width: 1.15rem; height: 1.15rem; }
.ncard__check input.is-bad { outline: 2px solid #e5484d; outline-offset: 2px; box-shadow: none; }
.btn--big { height: 3.5rem; padding: 0 2rem; border-radius: .9rem; font-size: var(--fs-large); }

/* ===== Footer ===== */
.foot { padding: 0 var(--edge) var(--edge); }
.foot__in { background: var(--black); color: var(--white); border-radius: 1.5rem; padding: 2rem 2rem 1.25rem; display: flex; flex-direction: column; gap: 2.5rem; overflow: hidden; }
.foot__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot__say { font-weight: 700; font-size: var(--fs-nav); line-height: 1.05; letter-spacing: -0.045em; max-width: 12em; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; font-size: var(--fs-default); font-weight: 600; }
.foot__col .t-label { color: #8a8a8a; margin-bottom: .35rem; }
.foot__col a { transition: opacity .2s; }
@media (hover: hover) { .foot__col a:hover { opacity: .6; } }
.foot__btn { margin-top: .75rem; }
.foot__mark { color: var(--white); line-height: 0; }
.foot__mark svg { width: 100%; height: auto; display: block; }
.foot__base { display: flex; justify-content: space-between; gap: 1rem; font-size: 13px; color: #8a8a8a; border-top: 1px solid #262626; padding-top: 1rem; }
.foot__up { color: #8a8a8a; transition: color .2s; }
@media (hover: hover) { .foot__up:hover { color: var(--white); } }

/* ===== Contact page ===== */
.ihero { position: relative; isolation: isolate; height: calc(var(--vh) * 80 + var(--navH) * 2); padding-top: calc(var(--navH) / 2); padding-bottom: var(--navH); margin-bottom: calc(var(--navH) * -1); overflow: hidden; }
.ihero__in { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ihero__title { position: relative; z-index: 1; text-align: center; font-weight: 700; font-size: 12vw; line-height: 1em; letter-spacing: -0.045em; padding: 0 var(--edge); }
@media (min-width: 640px) { .ihero__title { font-size: 8vw; } }
@media (min-width: 768px) { .ihero__title { font-size: var(--navfs-raw, 3.2rem); z-index: -1; } }
.side__card { padding: .75rem; display: flex; flex-direction: column; gap: .75rem; }
.contactp .sec { padding-bottom: 4rem; }

@media (max-width: 1279px) {
}
@media (max-width: 1023px) {
  .contact { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__say { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards3 { grid-template-columns: 1fr; }
  .card3 { min-height: 0; gap: 1.5rem; }
}
@media (max-width: 767px) {
  .home .side, .contactp .side { display: none; }
  .sec { padding-bottom: 5rem; }
  .fmt, .contact { grid-template-columns: 1fr; }
  .ncard__row2 { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__say { grid-column: 1 / -1; }
  .foot__in { padding: 1.5rem 1.25rem 1rem; }
  .deck__cards { aspect-ratio: 4 / 5; margin-top: 4.5rem; }
  .deck__txt { padding: 1rem; }
  .svc { grid-template-columns: 1fr; }
  .svc__pic { display: none; }
  .svc__lists { padding-bottom: 0; }
  .dir { color: var(--black); }
  .shatter__title { font-size: 11vw; }
  .dir__pic { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; margin-top: .5rem; background: var(--grey); }
  .dir__pic img { width: 100%; height: 100%; object-fit: cover; }
  .deck--text .deck__cards { aspect-ratio: 4 / 5; }
  .pcard { padding: 1.1rem; }
  .vs__head, .vs__row { grid-template-columns: 1fr; gap: .35rem; }
  .vs__head span:nth-child(2), .vs__arrow { display: none; }
  .vs__head { display: none; }
  .vs__row { margin-bottom: .75rem; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; gap: 1.5rem; }
  .marquee { --logo-k: .95; }
  .brand { padding: 0 .9rem; }
  .verdict { margin-left: calc(var(--edge) * -1); margin-right: calc(var(--edge) * -1); }
  .ring__item { width: 5.4rem; }
  .verdict__text { font-size: 6vw; white-space: nowrap; }
  .pcard__t--big { font-size: 7vw; }
  .cmedia { aspect-ratio: 4/3 !important; }
  .blk-2 { grid-template-columns: 1fr; }
  .more__grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ===== Drawer: the brief form slides in from the right, floating off the edges ===== */
html.is-locked { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0,0,0,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s; }
.drawer__panel {
  position: absolute; top: var(--edge); right: var(--edge); bottom: var(--edge);
  width: min(38rem, calc(100vw - 2 * var(--edge))); overflow-y: auto; overscroll-behavior: contain;
  background: var(--grey); border-radius: 1.75rem; padding: clamp(1.25rem, 2.4vw, 2.25rem);
  display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 2rem 5rem rgba(0,0,0,.25);
  transform: translateX(calc(100% + 2 * var(--edge))); transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.drawer__title { font-weight: 700; font-size: calc(var(--fs-nav) * 1.35); line-height: 1; letter-spacing: -0.045em; }
.drawer__x { position: relative; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--black); transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
@media (hover: hover) { .drawer__x:hover { transform: rotate(90deg); } }
.drawer__x i { position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 2px; margin: -1px 0 0 -.55rem; border-radius: 2px; background: var(--white); transform: rotate(45deg); }
.drawer__x i + i { transform: rotate(-45deg); }
.drawer__lead { max-width: 30em; margin-bottom: .5rem; }
.drawer .ncard { background: none; padding: 0; border-radius: 0; }
.drawer .ncard__foot { flex-direction: column; align-items: stretch; }
.drawer .ncard__foot .btn--big { width: 100%; justify-content: center; }
.drawer__direct { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid #dcdcdc; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-weight: 600; font-size: var(--fs-default); }
.drawer__direct span { width: 100%; color: #7a7a7a; font-weight: 500; font-size: 13px; }
.drawer__direct a { transition: opacity .2s; }
@media (hover: hover) { .drawer__direct a:hover { opacity: .55; } }
@media (max-width: 767px) { .drawer .ncard__row2 { grid-template-columns: 1fr; } .drawer__panel { border-radius: 1.25rem; } }

/* ===== Final: one huge button instead of the form, Telegram and the audit beside ===== */
.fin { display: flex; flex-direction: column; gap: var(--edge); }
.bigcta {
  position: relative; display: flex; align-items: flex-end; min-height: calc(var(--vh) * 72); padding: clamp(1.25rem, 3vw, 3rem);
  border-radius: 1.75rem; background: var(--black); color: var(--white); overflow: hidden; isolation: isolate;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.bigcta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #262626; transform: translateY(101%); transition: transform .7s cubic-bezier(.16,1,.3,1); }
.bigcta__t { font-weight: 700; font-size: clamp(3rem, 9.5vw, 11rem); line-height: .9; letter-spacing: -0.06em; max-width: 8em; }
.bigcta__a { position: absolute; top: clamp(1.25rem, 3vw, 3rem); right: clamp(1.25rem, 3vw, 3rem); width: clamp(3.5rem, 7vw, 7rem); height: clamp(3.5rem, 7vw, 7rem); border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; transition: transform .6s cubic-bezier(.3,1.4,.5,1); }
.bigcta__a svg { width: 42%; height: 42%; }
.bigcta__s { position: absolute; top: clamp(1.25rem, 3vw, 3rem); left: clamp(1.25rem, 3vw, 3rem); font-size: var(--fs-default); font-weight: 500; color: #9a9a9a; }
@media (hover: hover) {
  .bigcta:hover::before { transform: none; }
  .bigcta:hover .bigcta__a { transform: rotate(45deg) scale(1.08); }
}
.bigcta:active { transform: scale(.99); }
.fin__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); }
.fin__card { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; text-align: left; padding: clamp(1.25rem, 2.2vw, 2rem); border-radius: 1.5rem; background: var(--black); color: var(--white); font: inherit; cursor: pointer; transition: background-color .25s, color .25s; }
.fin__card .t-label { color: #8a8a8a; }
.fin__card .c-mid { color: #9a9a9a; }
.fin__card--grey { background: var(--grey); color: var(--black); }
.fin__card--grey .c-mid { color: #6d6d6d; }
.fin__big { font-weight: 700; font-size: calc(var(--fs-nav) * 1.1); line-height: 1.05; letter-spacing: -0.045em; }
@media (hover: hover) { .fin__card:hover { background: #262626; } .fin__card--grey:hover { background: var(--dgrey); } }

@media (max-width: 767px) {
  .fin__row { grid-template-columns: 1fr; }
  .bigcta { min-height: calc(var(--vh) * 55); }
}

/* ===== Drawer v2: who answers + a lighter brief form ===== */
.who { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 1.25rem; background: var(--white); }
.who__ava { position: relative; flex: none; width: 4rem; height: 4rem; border-radius: 50%; overflow: hidden; background: var(--black); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 1.5rem; }
.who__ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.who__t { font-size: var(--fs-default); line-height: 1.3; letter-spacing: -0.02em; }
.who__t b { font-weight: 700; }
.bform { display: flex; flex-direction: column; gap: .6rem; background: none; padding: 0; border-radius: 0; }
.bform__card { display: flex; flex-direction: column; background: var(--white); border-radius: 1.25rem; padding: .25rem 1.25rem 1.25rem; }
.ncard input.bform__in, .ncard textarea.bform__in, .bform__in {
  width: 100%; min-height: 0; height: 3.6rem; padding: 0; border: 0; border-bottom: 1px solid #e8e8e8; border-radius: 0; background: none;
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; box-shadow: none; transition: border-color .2s;
}
.ncard textarea.bform__ta { height: auto; min-height: 3.6rem; padding: 1.1rem 0 .6rem; resize: none; }
.bform__in::placeholder { color: #9d9d9d; font-weight: 500; }
.ncard input.bform__in:focus, .ncard textarea.bform__in:focus { box-shadow: none; border-bottom-color: var(--black); }
.ncard input.bform__in.is-bad { box-shadow: none; border-bottom-color: #e5484d; }
.bform__grp { padding: 1rem 0; border-bottom: 1px solid #e8e8e8; display: flex; flex-direction: column; gap: .65rem; }
.bform__lb { font-size: 13px; font-weight: 600; color: #8a8a8a; }
.bform .tags .btn { height: 2.5rem; border-radius: .8rem; padding: 0 .9rem; font-size: 15px; }
.bform__ok { margin-top: 1.1rem; }
.bform__go { height: 4rem; border-radius: 1.25rem; justify-content: center; font-size: var(--fs-large); }
.bform__done { padding: 1.5rem 1.25rem; gap: .5rem; }
.bform__done h4 { font-size: var(--fs-large); font-weight: 700; }

@media (max-width: 767px) {
  .deck__title, .deck__title--sm, .h-sec--sm { font-size: calc(var(--fs-nav) * 1.35); line-height: 1; letter-spacing: -0.045em; }
}
/* Telegram button in the drawer */
.tg { display: inline-flex; align-items: center; gap: .6rem; height: 3.25rem; padding: 0 1.1rem 0 .5rem; border-radius: 999px; background: var(--white); font-weight: 700; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.tg-ico { width: 2.25rem; height: 2.25rem; padding: .5rem .55rem .5rem .45rem; border-radius: 50%; background: #229ed9; color: #fff; }
@media (hover: hover) { .tg:hover { transform: scale(1.03); opacity: 1 !important; } }
/* big audit block after the CTA */
.audit { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: end;
  min-height: calc(var(--vh) * 42); padding: clamp(1.5rem, 3vw, 3rem); border-radius: 1.75rem; background: var(--grey); }
.audit__t { font-weight: 700; font-size: calc(var(--fs-nav) * 1.6); line-height: 1; letter-spacing: -0.05em; align-self: start; }
.audit__r { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.audit__x { color: #555; }
.audit__go { height: 3.75rem; padding: 0 1.75rem; border-radius: 1rem; font-size: var(--fs-large); }
@media (max-width: 767px) { .audit { grid-template-columns: 1fr; } .audit__t { font-size: calc(var(--fs-nav) * 1.35); } .audit__go { width: 100%; justify-content: center; } }

@media (max-width: 767px) {
  .nl > span { font-weight: 700; font-size: var(--navfs); letter-spacing: -0.045em; }
  .verdict__text { font-size: calc(var(--fs-nav) * 1.35); }
}

/* ===== Text roll on buttons ===== */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; line-height: 1.2; height: 1.2em; }
.roll__in { display: flex; flex-direction: column; flex: none; align-self: flex-start; transition: transform .5s cubic-bezier(.65,0,.35,1); }
.roll__in > span { display: block; height: 1.2em; white-space: nowrap; }
@media (hover: hover) {
  .btn:hover .roll__in, .nl:hover .roll__in { transform: translateY(-50%); }
}
/* «В чём мы особенно хороши» — illustrations instead of icons */
.card3__art { width: clamp(6.5rem, 9vw, 9rem); height: auto; display: block; transform: rotate(-4deg); transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
.card3:nth-child(2) .card3__art { transform: rotate(3deg); }
@media (hover: hover) { .card3:hover .card3__art { transform: rotate(0deg) scale(1.08); } }

/* deck cards: own compositor layers so the scroll-driven moves stay smooth */
.deck__card { will-change: transform, opacity; backface-visibility: hidden; }

/* ===== «О нас»: the people, a row of overlapping faces; hover/tap shows who's who ===== */
.crew { display: flex; flex-wrap: wrap; margin: .5rem 0 2rem; padding-left: .9rem; }
.crew__p { position: relative; width: clamp(3.6rem, 6.4vw, 6.75rem); margin: 0 0 0 -.9rem; cursor: pointer; outline: none; transition: transform .45s cubic-bezier(.3,1.5,.5,1); }
.crew__ph { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid var(--white); background: var(--grey); }
.crew__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.crew__p figcaption {
  position: absolute; top: calc(100% + .5rem); left: 0; z-index: 5; width: max-content; max-width: 17rem;
  padding: .65rem .85rem; border-radius: .9rem; background: var(--black); color: var(--white);
  font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
  opacity: 0; transform: translateY(-.4rem) scale(.96); transform-origin: 1.5rem 0; pointer-events: none; transition: opacity .2s, transform .35s cubic-bezier(.3,1.4,.5,1);
}
.crew__p figcaption b { font-weight: 700; }
.crew__p--r figcaption { left: auto; right: 0; transform-origin: calc(100% - 1.5rem) 0; }
.crew__p.is-on, .crew__p:focus-visible { z-index: 6; transform: translateY(-.5rem) rotate(-4deg); }
.crew__p.is-on figcaption, .crew__p:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: hover) {
  .crew__p:hover { z-index: 6; transform: translateY(-.5rem) rotate(-4deg); }
  .crew__p:hover .crew__ph img { transform: scale(1.08); }
  .crew__p:hover figcaption { opacity: 1; transform: none; }
}
@media (max-width: 767px) { .crew__p { margin-left: -.7rem; } .crew { padding-left: .7rem; } .crew__p figcaption { max-width: 14rem; font-size: 13px; } }

/* ===== «О нас» + команда в одном блоке: слева люди и текст, справа роли ===== */
.about2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }
.about2__t { font-size: calc(var(--fs-nav) * 1.25); line-height: 1.12; }
.about2__h { font-weight: 700; font-size: var(--fs-large); letter-spacing: -0.035em; margin: .2rem 0 1rem; }
.about2 .tlist { margin-top: 0; }
.about2 .trow { min-height: clamp(3.75rem, 5.2vw, 5.25rem); }
.about2 .trow__t { font-size: calc(var(--fs-nav) * 1.15); }
.about2 .trow__pic { width: clamp(7.5rem, 11vw, 11.5rem); right: 4%; }
.crew__p--more .crew__ph { display: grid; place-items: center; background: var(--black); color: var(--white); font-weight: 700; font-size: 1.8em; }
.crew__p:nth-last-child(-n+3) figcaption { left: auto; right: 0; transform-origin: calc(100% - 1.5rem) 0; }
@media (max-width: 1023px) { .about2 { grid-template-columns: 1fr; } }
.about2 .crew__p { width: clamp(3.3rem, 4.7vw, 4.9rem); }
.about2 .crew { flex-wrap: nowrap; }
@media (max-width: 767px) {
  .about2 .trow__pic { width: 4.25rem; right: .4rem; bottom: .2rem; }
  .about2 .crew__p { width: 2.9rem; margin-left: -.55rem; }
  .about2__t { font-size: calc(var(--fs-nav) * 1.15); }
}
@media (max-width: 767px) {
  /* phones: the caption spans the whole row of faces instead of hanging off one of them */
  .about2 .crew { position: relative; }
  .about2 .crew__p { position: static; }
  .about2 .crew__p figcaption, .about2 .crew__p:nth-last-child(-n+3) figcaption { left: 0; right: 0; max-width: none; width: auto; transform-origin: 50% 0; }
  .about2 .crew__p.is-on .crew__ph { transform: translateY(-.35rem); }
  .about2 .crew__ph { position: relative; transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
}

/* services: looping film layer over the stills */
.svc__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; z-index: 2; }
.svc__vid.is-on { opacity: 1; }
.dir__pic video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* logo weight matches the bold nav buttons (phones + the compact header) */
.tog.is-col .tog__face svg path { stroke: currentColor; stroke-width: 18; stroke-linejoin: round; }

@media (max-width: 767px) {
  /* header buttons: same weight and size as the filter buttons */
  .nl > span { font-weight: 700; font-size: var(--fs-default); letter-spacing: -0.04em; }
  .tog__face svg path { stroke: currentColor; stroke-width: 22; stroke-linejoin: round; }
  /* «О нас»: the faces become a proper picture — a 4×2 grid of big portraits */
  .about2 .crew { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; padding-left: 0; margin-bottom: 1.5rem; }
  .about2 .crew__p { width: auto; margin: 0; }
  .about2 .crew__ph { border-width: 0; }
  .about2 .crew__p--more .crew__ph { font-size: 2.2rem; }
}
/* lighter work for phones */
@media (hover: none) {
  .drawer__bg { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,.4); }
  .crew__p figcaption, .crew__ph img { transition: none; }
}

/* «О нас»: no label, the plates line up with the text */
.about2 .tlist { margin-top: .4rem; }

/* phones: header buttons a touch smaller so «Связаться» fits */
@media (max-width: 767px) {
  .nl > span { font-size: clamp(12px, 3.55vw, 15px); letter-spacing: -0.03em; }
}

/* phones: a pinned «Обсудить задачу» at the bottom of the screen */
.mcta { display: none; }
@media (max-width: 767px) {
  .mcta {
    position: fixed; left: var(--edge); right: var(--edge); bottom: calc(var(--edge) + env(safe-area-inset-bottom, 0px)); z-index: 45;
    display: flex; align-items: center; justify-content: center; height: 3.5rem; border-radius: 1rem;
    background: var(--black); color: var(--white); font-weight: 700; font-size: 17px; letter-spacing: -0.03em;
    box-shadow: 0 .75rem 2rem rgba(0,0,0,.18);
    transform: translateY(calc(100% + 2rem)); transition: transform .5s cubic-bezier(.16,1,.3,1);
  }
  .mcta.is-on { transform: none; }
  .foot-in .mcta, html.is-locked .mcta { transform: translateY(calc(100% + 2rem)); }
}
/* desktop: the left column (faces + text) is exactly as tall as the stack of role plates */
@media (min-width: 1024px) {
  .about2 { align-items: stretch; }
  .about2__l { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
  .about2__l .crew { margin: 0; }
  .about2__l .about2__t { margin: 0; line-height: 1.05; }
  .about2 .tlist { margin-top: 0; }
}
@media (min-width: 1024px) {
  .about2__l .crew__p { flex: 1 1 0; width: auto; min-width: 0; }
  .about2__l .about2__t { font-size: calc(var(--fs-nav) * 1.4); }
}

/* «О нас»: faces just play — lift, tilt and bounce on hover, a little squash on tap; no captions */
.crew__p figcaption { display: none; }
@media (hover: hover) {
  .crew__p:hover { z-index: 6; transform: translateY(-.7rem) rotate(var(--r, -6deg)) scale(1.12); }
  .crew__p:hover + .crew__p { transform: translateX(.35rem) rotate(3deg); }
  .crew__p:has(+ .crew__p:hover) { transform: translateX(-.35rem) rotate(-3deg); }
}
.crew__p:active { transform: scale(.92); transition-duration: .15s; }
.crew__p.is-on { transform: none; }

/* copyright at the very bottom */
.copy-line { padding: 1.25rem var(--edge) 1.5rem; font-size: 13px; color: #8a8a8a; }
@media (min-width: 768px) { .copy-line { padding-left: calc(var(--edge) * 2 + var(--col)); } }
@media (max-width: 767px) { .copy-line { padding-bottom: 5.5rem; } }

.deck__sub { margin-top: .75rem; }

.trow:active { transform: scale(.98); transition-duration: .15s; }
/* phones: header buttons a bit wider — tighter gaps between them */
@media (max-width: 767px) {
  .nav, .nav__links { gap: .375rem; }
  .nl > span { letter-spacing: -0.035em; }
}

/* cases: a quiet «Все кейсы» link; groups on the work page */
.wall { margin-top: 1.5rem; }
.wgroup { grid-column: 1 / -1; font-weight: 700; font-size: var(--fs-nav); letter-spacing: -0.045em; line-height: 1; margin: 1rem 0 -.25rem; }
.wgroup:first-child { margin-top: 0; }

/* sidebar CTA: calmer type */
.side__cta { font-weight: 600; font-size: calc(var(--fs-default) * 1.15); letter-spacing: -0.03em; }

/* drawer: white, flat — no cards inside the card */
.drawer__panel { background: var(--white); }
.drawer .who { background: none; padding: 0 0 1.25rem; border-radius: 0; border-bottom: 1px solid #ececec; }
.drawer .bform__card { background: none; padding: 0; border-radius: 0; }
.drawer .tg { background: var(--grey); }
@media (max-width: 767px) {
  .drawer__panel { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; box-shadow: none; padding: 1.25rem var(--edge) calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
}

/* drawer v3: everything fits on one screen */
.drawer__panel { gap: .75rem; padding: clamp(1.1rem, 1.8vw, 1.6rem); }
.drawer__title { font-size: calc(var(--fs-nav) * 1.1); }
.drawer .who { align-items: flex-start; padding-bottom: .9rem; }
.who__body { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.tg--sm { height: 2.5rem; padding: 0 .9rem 0 .35rem; font-size: 14px; gap: .5rem; }
.tg--sm .tg-ico { width: 1.85rem; height: 1.85rem; padding: .4rem .45rem .4rem .38rem; }
.drawer .ncard input.bform__in { height: 3rem; font-size: 16px; }
.drawer .ncard textarea.bform__ta { min-height: 3rem; padding: .8rem 0 .4rem; }
.drawer .bform__grp { padding: .7rem 0; gap: .5rem; }
.drawer .bform .tags .btn { height: 2.25rem; font-size: 14px; }
.drawer .bform__ok { margin-top: .8rem; }
.drawer .bform__go { height: 3.5rem; }

/* «Все кейсы» in the middle */
.wall { display: flex; width: fit-content; margin: 2rem auto 0; }

/* audit: the two columns match — title on top / badge at the bottom; text on top / button at the bottom */
.audit { align-items: stretch; }
.audit__l { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.audit__r { justify-content: space-between; }
.audit__ico { width: clamp(3.75rem, 5vw, 5rem); aspect-ratio: 1; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; transform: rotate(-8deg); transition: transform .6s cubic-bezier(.3,1.5,.5,1); }
.audit__svg { width: 46%; height: auto; }
@media (hover: hover) { .audit:hover .audit__ico { transform: rotate(8deg) scale(1.06); } }



/* drawer: calm dark Telegram mark; content spread over the full height */
.tg-ico { background: var(--black); }
.drawer .bform { flex: 1; }
.drawer .bform__card { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.drawer .bform__go { margin-top: .75rem; }

/* audit: eyes; on phones the badge sits above the title */
@media (max-width: 767px) {
  .audit__l { flex-direction: column-reverse; justify-content: flex-end; gap: 1.25rem; }
}

/* copyright right under the last block */
.copy-line { padding-top: 0; margin-top: -1.5rem; }
@media (max-width: 767px) { .copy-line { padding-bottom: 1.5rem; margin-top: -1.75rem; } }

/* phones: clients as a grid — everyone at once, no running line */
@media (max-width: 767px) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding: .5rem 0; }
  .marquee__track { animation: none; width: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem .75rem; align-items: center; justify-items: center; }
  .marquee__track .brand[aria-hidden] { display: none; }
  .marquee .brand { padding: 0; }
  .marquee .brand img { max-width: 100%; }
}
@media (max-width: 767px) {
  .marquee .brand { width: 100%; justify-content: center; }
  .marquee .brand img { height: auto; width: auto; max-width: 100%; max-height: calc(var(--h) * .62px); }
}

/* deck titles: balanced lines, no lone word */
.pcard__t { text-wrap: balance; }

/* «О нас»: entrance — faces pop in one by one, role plates slide up */
.about2 .crew__ph { transform: scale(.3); opacity: 0; transition: transform .7s cubic-bezier(.3,1.6,.5,1) var(--in, 0s), opacity .3s ease var(--in, 0s); }
.about2.is-in .crew__ph { transform: none; opacity: 1; }
.about2 .trow > * { opacity: 0; transform: translateY(1rem); transition: opacity .5s ease var(--in, 0s), transform .7s cubic-bezier(.16,1,.3,1) var(--in, 0s); }
.about2 .trow { clip-path: inset(0 0 100% 0 round 1rem); transition: clip-path .8s cubic-bezier(.65,0,.2,1) var(--in, 0s), transform .45s cubic-bezier(.3,1.5,.5,1); }
.about2.is-in .trow { clip-path: inset(0 0 0 0 round 1rem); }
.about2.is-in .trow > * { opacity: 1; transform: none; }
@media (min-width: 768px) { .about2 .trow { clip-path: inset(0 0 100% 0 round 1.5rem); } .about2.is-in .trow { clip-path: inset(0 0 0 0 round 1.5rem); } }
@media (prefers-reduced-motion: reduce) { .about2 .crew__ph, .about2 .trow > * { transform: none; opacity: 1; } .about2 .trow { clip-path: none; } }

/* phones: six logos, two columns, a bit bigger */
@media (max-width: 767px) {
  .marquee__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .marquee .brand img { max-height: calc(var(--h) * .82px); max-width: 78%; }
}

/* drawer: one row — avatar, who, Telegram */
.drawer .who { align-items: center; gap: .85rem; }
.drawer .who__t { flex: 1; min-width: 0; font-size: var(--fs-default); }
.drawer .tg--sm { flex: none; height: 2.75rem; }
.drawer .tg--sm b { font-weight: 500; }
.drawer .who__ava { width: 2.75rem; height: 2.75rem; font-size: 1.1rem; }
@media (max-width: 420px) { .drawer .tg--sm b { display: none; } .drawer .tg--sm { padding: 0 .35rem; } }
.bform__ok a { text-decoration: underline; text-underline-offset: .15em; }

/* privacy page */
.pp { padding-top: var(--navH); }
.pp .content { max-width: 46rem; padding-bottom: 4rem; }
.pp__title { margin-bottom: .75rem; }
.pp__h { font-weight: 700; font-size: var(--fs-large); letter-spacing: -0.03em; margin: 2rem 0 .6rem; }
.pp__p { margin-bottom: .6rem; line-height: 1.5; }

/* phones: a little more air in «О нас» */
@media (max-width: 767px) {
  .about2 .crew { margin-bottom: 2rem; }
  .about2__t { margin-bottom: 2rem; }
  .about2 { gap: 0; }
}

/* «Нам доверяют»: label and logos come in together */
#s-clients .t-label { opacity: 0; transform: translateY(.6rem); transition: opacity .5s ease, transform .7s cubic-bezier(.16,1,.3,1); }
#s-clients .brand { opacity: 0; transform: translateY(1rem) scale(.96); transition: opacity .55s ease var(--in, 0s), transform .8s cubic-bezier(.16,1,.3,1) var(--in, 0s); }
#s-clients.is-in .t-label, #s-clients.is-in .brand { opacity: 1; transform: none; }
@media (max-width: 767px) {
  #s-clients .t-label { text-align: center; margin-bottom: 1.75rem; }
}
