/* Стили прототипа главной (артефакт 0e1c1934…), перенесены без изменений правил. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.45 "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .6s, color .6s; overflow-x: hidden;
}

a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* фон: 3D-слой и тонкие вертикали */
#gl { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; }
.lines { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 12.5%); background-position: -1px 0; }
main, .foot, .foot-nav { position: relative; z-index: 2; }

/* курсор-точка: только там, где есть мышь */
.cursor { position: fixed; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent);
  z-index: 200; pointer-events: none; opacity: 0; transform: translate3d(var(--cx, -50px), var(--cy, -50px), 0) scale(var(--cs, 1)); transition: opacity .3s, background-color .3s; will-change: transform; }
html.has-cursor .cursor { opacity: 1; }
html.has-cursor.cur-on .cursor { background: color-mix(in srgb, var(--accent) 45%, transparent); }
html.has-cursor, html.has-cursor * { cursor: none !important; }

/* шапка */
.nav { position: fixed; left: 0; right: 0; top: 0; z-index: 60; display: flex; align-items: center; justify-content: flex-end;
  padding: 20px var(--gut); pointer-events: none; }
.nav > * { pointer-events: auto; }
/* знак лежит отдельным слоем и инвертируется над любым фоном */
.logo { position: fixed; left: var(--gut); top: 24px; z-index: 61; display: block; color: #fff; mix-blend-mode: difference; padding: 6px 0; }
.logo svg { height: 24px; width: auto; fill: currentColor; }
.theme { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); display: flex; padding: 3px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); }
.theme button { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--fg2); display: flex; align-items: center; gap: 6px;
  transition: background-color .35s, color .35s; }
.theme button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.theme svg { width: 16px; height: 16px; display: none; }
.nav-r { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--chip-b);
  font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; color: var(--fg);
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .3s, color .3s, border-color .3s, transform .5s var(--ease); }
.pill svg { width: 11px; height: 11px; flex: none; transition: transform .5s var(--ease); }
.pill-fill { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-menu { padding-right: 6px; border-color: var(--line); }
.pill-menu .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); }
.btn-ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--chip-b); display: grid; place-items: center;
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color .3s, color .3s; }
.btn-ico svg { width: 18px; height: 18px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 999px; background: var(--accent); color: #fff; }
@media (hover: hover) {
  .pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .pill:hover svg { transform: translate(2px, -2px); }
  .pill-fill:hover { background: #fff; color: var(--ink); border-color: #fff; }
  .pill-ink:hover { background: #fff; color: var(--ink); border-color: #fff; }
  .btn-ico:hover { background: var(--fg); color: var(--bg); }
  .theme button:not([aria-pressed="true"]):hover { color: var(--fg); }
}

/* меню поверх страницы */
.menu { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: grid; align-content: center; padding: 0 var(--gut);
  clip-path: circle(0 at calc(100% - 60px) 42px); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
.menu.open { clip-path: circle(160% at calc(100% - 60px) 42px); visibility: visible; transition: clip-path .8s var(--ease); }
.menu a { display: block; font-size: clamp(40px, min(11vw, 10.5vh), 104px); line-height: 1; letter-spacing: -.045em; text-decoration: none; padding: .08em 0; color: var(--fg2); transition: color .3s, transform .5s var(--ease); }
.menu a:hover, .menu a:focus-visible { color: var(--fg); transform: translateX(.18em); }

/* первый экран */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; }
.hero-mark { position: absolute; left: 50%; top: 43.5%; width: min(43vw, 660px); transform: translate(-50%, -50%); color: var(--fg); margin: 0; pointer-events: none; transition: color .6s, translate .9s var(--ease); }
.hero-mark svg { width: 100%; height: auto; fill: currentColor; }
.hero-title { display: none; margin: 0; }
.words { position: absolute; top: 43.5%; transform: translateY(-50%); display: flex; gap: clamp(28px, 5.4vw, 84px); font-size: 14px; line-height: 1.3; }
.words-l { left: var(--gut); }
.words-r { right: var(--gut); align-items: center; }
.hero-bottom { position: absolute; left: var(--gut); right: var(--gut); bottom: 26px; }
.stats { display: flex; gap: 8px; margin-bottom: 18px; }
.stats li { min-width: 78px; padding: 12px 12px 10px; border-radius: 14px; background: var(--chip); text-align: center;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.stats b { display: block; font-size: 26px; font-weight: 400; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 7px; font-size: 11px; line-height: 1.1; color: var(--fg2); }
.intro { max-width: 27em; margin: 0 0 16px; font-size: 18px; line-height: 1.38; text-indent: 1.1em; }
.more { display: inline-block; font-size: 13px; color: var(--fg2); text-underline-offset: 4px; margin-bottom: 20px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.m-only { display: none; }

/* крупные заголовки */
.display { margin: 0; font-size: clamp(52px, 9vw, 132px); font-weight: 400; line-height: .93; letter-spacing: -.045em; }
.ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.ln > span { display: block; }
.eyebrow { margin: 0 0 18px; font-size: 13px; color: var(--fg2); }

/* услуги */
.svc { padding: 12vh var(--gut) 9vh; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-side p { margin: 0 0 20px; max-width: 30em; color: var(--fg); }
.rows { border-bottom: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr) 48px; gap: 32px; align-items: center; padding: 30px 0;
  border-top: 1px solid var(--line); text-decoration: none; transition: padding .55s var(--ease), background-color .3s, color .3s; }
.row h3 { margin: 0; font-size: clamp(26px, 2.95vw, 43px); font-weight: 400; line-height: 1.05; letter-spacing: -.028em; }
.row p { margin: 0 0 12px; max-width: 34em; font-size: 15px; color: var(--fg2); transition: color .3s; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--chip); transition: background-color .3s; }
.go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--chip-b); display: grid; place-items: center; transition: transform .55s var(--ease), border-color .3s; }
.go svg { width: 13px; height: 13px; }
@media (hover: hover) {
  .row a:hover { background: var(--accent); color: #fff; padding-left: 30px; padding-right: 30px; }
  .row a:hover p { color: rgba(255, 255, 255, .86); }
  .row a:hover .tags li { background: rgba(255, 255, 255, .17); }
  .row a:hover .go { transform: rotate(45deg); border-color: rgba(255, 255, 255, .55); }
}
.row a:active { background: var(--accent); color: #fff; }

/* акция */
.promo-wrap { padding: 12vh var(--gut) 6vh; }
.deals { display: flex; gap: clamp(8px, .9vw, 12px); height: clamp(580px, 45vw, 660px); }
.deal { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: clamp(22px, 2.6vw, 36px); transition: flex-grow .85s var(--ease); }
.deal.open { flex-grow: 8; }
.deal-y { background: var(--promo); color: var(--ink); }
.deal-w { background: var(--paper); color: var(--ink); }
.deal-d { background: var(--chip); color: var(--fg); }
.deal-tab { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 0; transition: opacity .35s ease .3s, visibility 0s linear .3s; }
.deal-y .badge, .deal-w .badge { background: var(--ink); }
.deal-t { flex: 1; writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(22px, 2.2vw, 32px); line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.deal-p { font-size: 14px; font-weight: 500; white-space: nowrap; }
.deal.open .deal-tab { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.deal-body { position: absolute; left: 0; top: 0; height: 100%; width: calc((100vw - 2 * var(--gut) - 2 * clamp(8px, .9vw, 12px)) * .8); display: grid; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; outline: none; }
.deal.open .deal-body { opacity: 1; visibility: visible; transition: opacity .6s ease .35s; }
.promo { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; align-items: center; padding: clamp(26px, 4vw, 60px); }
.deal-pic { align-self: stretch; min-height: 320px; display: grid; place-items: center; border-radius: clamp(14px, 1.5vw, 24px);
  background-color: color-mix(in srgb, currentColor 5%, transparent); background-image: repeating-linear-gradient(135deg, transparent 0 15px, color-mix(in srgb, currentColor 13%, transparent) 15px 16px); }
.promo-h, .deal .promo h2 { margin: 18px 0; font-size: clamp(34px, 4vw, 58px); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.deal .facts { flex-wrap: nowrap; }
.deal .facts li { flex: 1 1 0; min-width: 0; }
.deal .facts b { font-size: clamp(20px, 1.8vw, 27px); }
.promo-ph .facts li { flex: 0 1 190px; }
.deal-d .facts li { background: var(--chip); }
.deal-d .facts span { color: var(--fg2); }
@media (hover: hover) { .deal:not(.open):hover .deal-t { opacity: .7; } }
.promo-top { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 500; }
.promo h2 { margin: 18px 0 18px; font-size: clamp(38px, 5.3vw, 78px); font-weight: 400; line-height: .96; letter-spacing: -.042em; }
.promo-text { margin: 0; max-width: 31em; font-size: 17px; line-height: 1.4; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 28px; }
.facts li { padding: 14px 16px 13px; border-radius: 16px; background: rgba(10, 10, 12, .075); min-width: 132px; }
.facts b { display: block; font-size: 27px; font-weight: 500; line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.facts span { display: block; margin-top: 7px; font-size: 12px; line-height: 1.2; color: rgba(10, 10, 12, .72); }
.promo-art { display: grid; place-items: center; perspective: 1100px; min-height: 380px; }
.receipt { width: min(330px, 100%); padding: 24px 22px 40px; background: var(--paper); color: #15151C; font-size: 13.5px; line-height: 1.25;
  transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, -16deg)) rotate(4deg); transform-style: preserve-3d; transition: transform .5s var(--ease);
  filter: drop-shadow(0 26px 30px rgba(60, 40, 0, .3));
  --zz: 12px;
  -webkit-mask: conic-gradient(from -45deg at 50% 100%, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--zz) var(--zz) repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - var(--zz) / 2 + .5px) no-repeat;
  mask: conic-gradient(from -45deg at 50% 100%, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--zz) var(--zz) repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - var(--zz) / 2 + .5px) no-repeat; }
.receipt svg { width: 132px; height: auto; fill: currentColor; margin: 0 auto 6px; }
.receipt .r-sub { text-align: center; font-size: 11px; color: rgba(21, 21, 28, .6); margin: 0 0 14px; }
.receipt dl { margin: 0; border-top: 1px dashed rgba(21, 21, 28, .35); padding-top: 12px; }
.receipt dl div { display: flex; align-items: baseline; gap: 6px; margin-bottom: 7px; }
.receipt dt { flex: none; }
.receipt dl div::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(21, 21, 28, .4); transform: translateY(-3px); }
.receipt dd { order: 2; margin: 0; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.receipt .r-total { border-top: 1px dashed rgba(21, 21, 28, .35); margin-top: 12px; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.receipt .r-total span { font-size: 12px; }
.receipt .r-total b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; text-align: right; line-height: 1.1; }
.bar { height: 38px; margin-top: 16px;
  background: repeating-linear-gradient(to right, #15151C 0 2px, transparent 2px 5px, #15151C 5px 6px, transparent 6px 9px, #15151C 9px 12px, transparent 12px 14px, #15151C 14px 15px, transparent 15px 19px); }

/* контакты и подвал */
.contact { padding: 4vh var(--gut) 9vh; }
.contact .display { margin-bottom: 26px; }
.contact p { margin: 0 0 22px; max-width: 30em; font-size: 18px; line-height: 1.4; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.channels li { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px dashed var(--chip-b); display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; }
.contact .note { font-size: 13px; color: var(--fg2); }
.foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 var(--gut) 28px; font-size: 12px; color: var(--fg2); }
.foot svg { width: min(52vw, 620px); height: auto; fill: var(--fg); }

/* разделы главной ниже первого экрана */
.works { padding: 20vh var(--gut) 6vh; }
.about, .reviews, .blog, .faq { padding: 12vh var(--gut) 6vh; }
.note { margin: 18px 0 0; font-size: 13px; color: var(--fg2); }

/* работы */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--chip-b); font-size: 13px; font-weight: 500; line-height: 1;
  transition: background-color .3s, color .3s, border-color .3s; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.work, .work-link { display: flex; flex-direction: column; }
.work-link { flex: 1; text-decoration: none; }
.work-wide { grid-column: span 2; }
.work[hidden] { display: none; }
.shot { aspect-ratio: 4 / 3; border-radius: clamp(14px, 1.5vw, 24px); display: grid; place-items: center; overflow: hidden; background-color: var(--chip);
  background-image: repeating-linear-gradient(135deg, transparent 0 15px, var(--line) 15px 16px); transition: background-position .9s var(--ease); }
.work-wide .shot { aspect-ratio: auto; flex: 1; min-height: 0; }
.work-grid.filtered .work-wide { grid-column: auto; }
.work-grid.filtered .work-wide .shot { aspect-ratio: 4 / 3; flex: none; }
.shot span { font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 999px; background: var(--bg); color: var(--fg2); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 2px 0; }
.work h3 { margin: 0; font-size: clamp(20px, 1.9vw, 28px); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.work p { margin: 0; font-size: 13px; color: var(--fg2); white-space: nowrap; }
@media (hover: hover) {
  .chip:hover { border-color: var(--fg); }
  .work:hover .shot { background-position: 32px 0; }
}

/* о студии */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.bento > li { grid-column: span 4; min-height: clamp(170px, 19vw, 270px); padding: clamp(20px, 2.2vw, 32px); border-radius: clamp(18px, 1.8vw, 28px);
  background: var(--chip); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.bento > .b-team { background: var(--accent); color: #fff; }
.bento > .b-geo { grid-column: span 5; }
.bento > .b-tools { grid-column: span 7; }
.bento b { font-size: clamp(64px, 8.4vw, 128px); font-weight: 400; line-height: .88; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bento span { font-size: 15px; line-height: 1.2; color: var(--fg2); }
.bento > .b-team span { color: rgba(255, 255, 255, .9); }
.bento h3 { margin: 0; font-size: clamp(22px, 2.2vw, 32px); font-weight: 400; line-height: 1.05; letter-spacing: -.025em; }
.bento p { margin: 0; max-width: 22em; color: var(--fg2); }
.bento .tags li { font-size: 14px; padding: 9px 14px; }

/* отзывы: видео и текст */
.quotes { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); }
.quotes li { min-height: 210px; padding-top: 22px; border-top: 1px solid var(--chip-b); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quotes blockquote { margin: 0; }
.quotes blockquote p { margin: 0; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.28; letter-spacing: -.015em; }
.who { margin: 0; font-size: 13px; color: var(--fg2); }
.quotes .q-video { padding-top: 0; border-top: 0; gap: 14px; }
.q-play { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; border-radius: clamp(14px, 1.5vw, 24px); overflow: hidden; background-color: var(--chip);
  background-image: repeating-linear-gradient(135deg, transparent 0 15px, var(--line) 15px 16px); transition: background-position .9s var(--ease); }
.ph { font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 999px; background: var(--bg); color: var(--fg2); }
.play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
  transition: transform .5s var(--ease), background-color .3s; }
.play svg { width: 26px; height: 26px; fill: currentColor; }
.q-play .ph { position: absolute; left: 14px; top: 14px; }
.q-time { position: absolute; right: 14px; bottom: 14px; font-size: 12px; line-height: 1; padding: 7px 10px; border-radius: 999px; background: var(--bg); color: var(--fg); }
@media (hover: hover) {
  .q-play:hover { background-position: 32px 0; }
  .q-play:hover .play, .player .play:hover { transform: scale(1.1); }
}

/* статьи: главный материал и лента */
.mag { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.p-cover { border-radius: clamp(14px, 1.5vw, 24px); background-color: var(--chip); background-image: repeating-linear-gradient(135deg, transparent 0 15px, var(--line) 15px 16px);
  transition: background-position .9s var(--ease); }
.p-lead .p-cover { aspect-ratio: 16 / 10; display: grid; place-items: center; margin-bottom: 18px; }
.p-lead .p-cover span { font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 999px; background: var(--bg); color: var(--fg2); }
.p-lead h3 { margin: 10px 0 0; max-width: 17em; font-size: clamp(28px, 3.3vw, 50px); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.p-meta { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--fg2); }
.p-tag { font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--chip-b); color: var(--fg); }
.p-list { border-bottom: 1px solid var(--line); }
.p-list li { display: grid; grid-template-columns: clamp(84px, 8vw, 120px) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px); align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.p-list .p-cover { aspect-ratio: 1; border-radius: 14px; }
.p-list h3 { margin: 0 0 10px; font-size: clamp(19px, 1.7vw, 25px); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; }
@media (hover: hover) {
  .p-lead:hover .p-cover, .p-list li:hover .p-cover { background-position: 32px 0; }
}

/* вопросы */
.qa { border-bottom: 1px solid var(--line); }
.qa details { border-top: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer;
  font-size: clamp(21px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -.025em; }
.qa summary::-webkit-details-marker { display: none; }
.pm { flex: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--chip-b);
  transition: transform .55s var(--ease), background-color .3s, color .3s, border-color .3s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .55s var(--ease); }
.qa details.is-open .pm { transform: rotate(180deg); background: var(--fg); color: var(--bg); border-color: var(--fg); }
.qa details.is-open .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa .a { overflow: hidden; }
.qa .a p { margin: 0; padding: 0 72px 28px 0; max-width: 40em; font-size: 17px; line-height: 1.45; color: var(--fg2); }

/* шифр: знаки перебираются и складываются в текст */
.js .display .ln > span { transform: none; transition: none; }
.js .display .ln > span:not(.run):not(.done), .js [data-code]:not(.run):not(.done) { visibility: hidden; }
.cw { white-space: nowrap; }
.ch { display: inline-block; text-align: center; }
.cg { display: block; width: 100%; height: .72em; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }

/* окна поверх страницы */
html.modal-open { overflow: hidden; }
html.has-cursor dialog, html.has-cursor dialog * { cursor: auto !important; }
html.has-cursor dialog a, html.has-cursor dialog button, html.has-cursor dialog summary { cursor: pointer !important; }
html.modal-open .cursor { opacity: 0; }
dialog { color: var(--fg); border: 0; padding: 0; }
dialog::backdrop { background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; background: var(--bg); overflow: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheet-in .6s var(--ease); }
@keyframes sheet-in { from { transform: translateY(5%); opacity: 0; } }
.sheet-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gut);
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.sheet-kind { margin: 0; font-size: 14px; font-weight: 500; }
.sheet-x { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--chip-b); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .5s var(--ease); }
.sheet-x svg { width: 16px; height: 16px; }
.sheet-x:hover { background: var(--fg); color: var(--bg); transform: rotate(90deg); }
.sheet-body { padding: 8vh var(--gut) 10vh; }
.modal { width: min(920px, 92vw); max-height: 92vh; margin: auto; padding: clamp(18px, 2.4vw, 32px); border-radius: clamp(22px, 2.6vw, 36px); background: var(--bg); border: 1px solid var(--line); }
.modal[open] { animation: sheet-in .5s var(--ease); }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-top h2 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; letter-spacing: -.03em; }
.modal .who { margin-top: 14px; }

/* страница проекта */
.case-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.case-lead p { margin: 0 0 22px; max-width: 30em; font-size: 18px; line-height: 1.4; }
.case-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.case-facts li { padding: 12px 14px 11px; border-radius: 14px; background: var(--chip); min-width: 120px; }
.case-facts span { display: block; font-size: 12px; line-height: 1; color: var(--fg2); margin-bottom: 8px; }
.case-facts b { display: block; font-size: 16px; font-weight: 500; line-height: 1.1; }
.case-sec { margin-bottom: clamp(48px, 7vw, 96px); }
.case-sec > h3 { margin: 0 0 22px; font-size: clamp(26px, 2.95vw, 43px); font-weight: 400; line-height: 1.05; letter-spacing: -.028em; }
.case-result p { margin: 0; max-width: 22em; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.15; letter-spacing: -.025em; color: var(--fg2); }
.case-foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.story, .post, .blk, .screens li, .frames li, .player, .hero-shot { background-color: var(--chip); background-image: repeating-linear-gradient(135deg, transparent 0 15px, var(--line) 15px 16px); }
/* соцсети: сторис и лента */
.stories { display: flex; gap: clamp(10px, 1.1vw, 16px); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.story { position: relative; flex: 0 0 clamp(170px, 17vw, 250px); aspect-ratio: 9 / 16; border-radius: 22px; display: grid; place-items: center; scroll-snap-align: start; overflow: hidden; }
.story-bars { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 4px; }
.story-bars i { flex: 1; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 26%, transparent); overflow: hidden; }
.story-bars i:first-child::after { content: ""; display: block; height: 100%; width: 100%; background: var(--fg); transform-origin: 0 50%; animation: story-fill 4.5s linear infinite; }
@keyframes story-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.story-who { position: absolute; left: 12px; top: 26px; display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1; color: var(--fg); }
.ava { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 24%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); }
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(4px, .5vw, 8px); max-width: 860px; }
.post { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 35%, transparent); }
.dots i:first-child { background: var(--fg); }
.tri { position: absolute; right: 12px; top: 12px; width: 0; height: 0; border-left: 12px solid var(--fg); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
/* сайт: окно браузера и телефон, страница едет сама */
.case-screens { display: grid; grid-template-columns: minmax(0, 1fr) clamp(190px, 19vw, 270px); gap: clamp(16px, 2.4vw, 40px); align-items: end; }
.browser { border-radius: clamp(14px, 1.5vw, 22px); overflow: hidden; border: 1px solid var(--chip-b); background: var(--bg); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--chip-b); }
.browser-bar span { margin-left: 12px; flex: 1; max-width: 420px; height: 26px; display: flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--chip); font-size: 12px; color: var(--fg2); }
.browser-view { aspect-ratio: 16 / 9.4; overflow: hidden; }
.phone { border-radius: 34px; padding: 8px; border: 1px solid var(--chip-b); background: var(--bg); }
.phone-view { aspect-ratio: 9 / 18.6; border-radius: 27px; overflow: hidden; }
.long { display: grid; gap: 8px; padding: 8px; animation: pan 16s ease-in-out infinite alternate; }
.blk { height: clamp(150px, 19vw, 280px); border-radius: 12px; display: grid; place-items: center; }
.phone .blk { height: clamp(110px, 12vw, 170px); }
@keyframes pan { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(var(--pan, -50%)); } }
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.screens-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.screens li { aspect-ratio: 4 / 3; border-radius: 16px; display: grid; place-items: center; }
/* видео */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(14px, 1.5vw, 24px); display: grid; place-items: center; overflow: hidden; }
.player > .ph { position: absolute; left: 16px; top: 16px; }
.player-flat > .ph { position: static; }
.player .play { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.player .play svg { width: 32px; height: 32px; }
.player-bar { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--fg2); }
.player-bar i { flex: 1; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 26%, transparent); overflow: hidden; }
.player-bar i::after { content: ""; display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.player.playing .player-bar i::after { animation: story-fill 8s linear forwards; }
.player.playing .play { opacity: 0; pointer-events: none; }
.frames { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, .8vw, 12px); }
.frames li { aspect-ratio: 16 / 9; border-radius: 10px; display: grid; place-items: center; }
.frames .ph { padding: 5px 8px; font-size: 11px; }
.hero-shot { aspect-ratio: 21 / 9; border-radius: clamp(14px, 1.5vw, 24px); display: grid; place-items: center; }

/* ссылки на разделы над подвалом */
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; padding: 2vh var(--gut) 5vh; font-size: 14px; }
.foot-nav a { padding: 13px 0; text-decoration: none; color: var(--fg2); transition: color .3s; }
.foot-nav a:hover { color: var(--fg); }

/* появление: работает только при включённом скрипте */
.js .ln > span { transform: translateY(128%); transition: transform 1.05s var(--ease); transition-delay: var(--d, 0s); }
.js .in .ln > span, .js .ln.in > span { transform: none; }
.js [data-rv] { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-rv].in { opacity: 1; transform: none; }
.js .stats li { opacity: 0; transform: translateY(14px) scale(.94); transition: opacity .6s ease, transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .in .stats li, .js .stats.in li { opacity: 1; transform: none; }
.js .hero-mark, .js .hero-title { opacity: 0; transition: opacity 1.2s ease .15s; }
.js .hero-mark.in, .js .hero-title.in { opacity: 1; }
.js #gl { opacity: 0; transition: opacity 1.4s ease; }
.js #gl.in { opacity: 1; }

@media (max-width: 1100px) {
  .deals { flex-direction: column; height: auto; }
  .deal { flex: none; }
  .deal-tab { position: static; flex-direction: row; height: auto; min-height: 76px; padding: 16px 22px; text-align: left; }
  .deal-t { writing-mode: horizontal-tb; transform: none; min-width: 0; white-space: normal; text-align: left; font-size: 22px; line-height: 1.1; }
  .deal.open .deal-tab { display: none; }
  .deal-body { position: static; width: auto; display: none; }
  .deal.open .deal-body { display: block; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-wide { grid-column: 1 / -1; }
  .work-wide .shot { aspect-ratio: 21 / 9; flex: none; }
  .words-l { display: none; }
  .words-r > ul { display: none; }
}
@media (max-width: 759px) {
  .nav { padding: 14px var(--gut); }
  .logo { top: 19px; }
  .logo svg { height: 22px; }
  .theme { top: 14px; }
  .theme button { width: 34px; padding: 0; justify-content: center; }
  .theme .t-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .theme svg { display: block; }
  .nav .pill-line, .nav .btn-ico { display: none; }
  .hero { height: auto; min-height: 100svh; padding: 0 var(--gut) 26px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-mark, .words { display: none; }
  .hero-title { display: block; text-align: center; font-size: clamp(40px, 12.4vw, 58px); font-weight: 400; line-height: .93; letter-spacing: -.045em; margin: 0 0 22px; pointer-events: none; }
  .hero-title .dim { color: var(--fg2); }
  .hero-top { flex: 1; min-height: 34svh; }
  .hero-bottom { position: static; }
  .stats { gap: 6px; margin-bottom: 20px; }
  .stats li { flex: 1; min-width: 0; padding: 12px 4px 10px; }
  .stats b { font-size: 23px; }
  .intro { text-indent: 0; text-align: center; font-size: 17px; margin: 0 auto 20px; }
  .more { display: none; }
  .hero-pills { justify-content: center; }
  .m-only { display: inline-flex; }
  .hero-pills .pill { height: 48px; }
  .hero-pills .pill-promo { order: 3; width: 100%; justify-content: center; }
  .hero-pills .pill-half { flex: 1; justify-content: center; }
  .svc { padding: 14vh var(--gut) 7vh; }
  .sec-head { grid-template-columns: 1fr; gap: 22px; }
  .row a { grid-template-columns: minmax(0, 1fr) 44px; gap: 12px 14px; padding: 22px 0; align-items: start; }
  .row h3 { font-size: 29px; }
  .row .row-d { grid-column: 1 / -1; grid-row: 2; }
  .go { width: 44px; height: 44px; grid-column: 2; grid-row: 1; }
  .promo { grid-template-columns: 1fr; gap: 8px; }
  .promo h2 { font-size: clamp(36px, 10.4vw, 52px); }
  .facts li { flex: 1 1 40%; min-width: 0; }
  .facts b { font-size: 23px; }
  .promo-art { min-height: 0; padding: 26px 0 6px; }
  .promo .pill { width: 100%; justify-content: center; height: 50px; }
  .works { padding: 14vh var(--gut) 5vh; }
  .about, .reviews, .blog, .faq { padding: 10vh var(--gut) 5vh; }
  .chip { height: 44px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-wide .shot { aspect-ratio: 4 / 3; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > li { grid-column: span 1; min-height: 150px; }
  .bento > .b-team, .bento > .b-geo, .bento > .b-tools { grid-column: 1 / -1; }
  .bento > .b-geo, .bento > .b-tools { min-height: 0; }
  .bento b { font-size: clamp(40px, 13.4vw, 64px); }   /* «120+» целиком помещается в половинную плитку */
  .quotes { grid-template-columns: 1fr; }
  .quotes li { min-height: 0; }
  .q-play { aspect-ratio: 4 / 3; }
  .mag { grid-template-columns: 1fr; }
  .p-list li { grid-template-columns: 84px minmax(0, 1fr); }
  .promo-h, .deal .promo h2 { font-size: clamp(34px, 9.6vw, 50px); }
  .deal-tab { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "badge price" "title title"; gap: 12px; padding: 18px 22px 20px; }
  .deal-tab .badge { grid-area: badge; justify-self: start; }
  .deal-p { grid-area: price; justify-self: end; }
  .deal-t { grid-area: title; }
  .deal-pic { min-height: 0; aspect-ratio: 4 / 3; margin-top: 18px; }
  .deal .facts { flex-wrap: wrap; }
  .deal .facts li, .promo-ph .facts li { flex: 1 1 40%; }
  .case-head { grid-template-columns: 1fr; gap: 22px; }
  .sheet-body { padding: 5vh var(--gut) 8vh; }
  .story { flex-basis: 46vw; }
  .case-screens { grid-template-columns: 1fr; }
  .phone { width: 62%; justify-self: center; }
  .blk { height: 38vw; }
  .phone .blk { height: 30vw; }
  .screens, .screens-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-shot { aspect-ratio: 4 / 3; }
  .case-foot .pill { flex: 1; justify-content: center; height: 50px; }
  .qa summary { padding: 20px 0; }
  .qa .a p { padding-right: 0; }
  .pm { width: 44px; height: 44px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot svg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .ln > span, .js [data-rv], .js .stats li, .js .hero-mark, .js .hero-title, .js #gl { transition: none; opacity: 1; transform: none; }
  .row a, .pill, .receipt, .menu, .menu.open, .shot, .pm, .pm::after, .deal, .deal-tab, .deal-body, .p-cover, .q-play { transition: none; }
  .sheet[open], .modal[open], .long, .story-bars i:first-child::after { animation: none; }
}

.static *, .static *::before, .static *::after { transition: none !important; animation: none !important; }
.no-gl #gl { display: none; }
