/* Портфолио Ауганбая Байсала: холст дизайн-программы, цветные панели, синий цвет выделения, розовый курсор посетителя */

:root {
  --canvas: #ECEDEF;
  --sheet: #FFFFFF;
  --ink: #000000;
  --graphite: #55585F;
  --line: rgba(0, 0, 0, .1);
  --line-strong: rgba(0, 0, 0, .22);
  --dot: rgba(0, 0, 0, .16);
  --sel: #0D99FF;
  --sel-text: #FFFFFF;
  --blue: #0D99FF;
  --you: #FF3D8B;
  --sun: #FFC83D;
  --on-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(16, 22, 40, .06), 0 28px 60px -32px rgba(16, 22, 40, .38);
  --gut: 16px;
  --max: 1240px;
  --radius-panel: clamp(24px, 3vw, 44px);
  --font: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #1C1D1F; --sheet: #2A2B2F; --ink: #FFFFFF; --graphite: #A6A9B0;
    --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .24); --dot: rgba(255, 255, 255, .14);
    --sel: #3DAEFF; --on-ink: #000000;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 28px 60px -30px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #1C1D1F; --sheet: #2A2B2F; --ink: #FFFFFF; --graphite: #A6A9B0;
  --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .24); --dot: rgba(255, 255, 255, .14);
  --sel: #3DAEFF; --on-ink: #000000;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 28px 60px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
/* при анимациях прокруткой управляют Lenis и GSAP, CSS-плавность сбивает их замеры */
html.motion { scroll-behavior: auto; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 17px/1.55 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

.wrap { max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 120; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* цветные панели: тёмная и синяя переопределяют токены, всё внутри перекрашивается само */
.panel { margin-inline: clamp(6px, 1vw, 14px); border-radius: var(--radius-panel); background: var(--canvas); color: var(--ink); }
.dark {
  --canvas: #000000; --sheet: #151518; --ink: #FFFFFF; --graphite: #9EA1A8;
  --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .26); --dot: rgba(255, 255, 255, .14);
  --on-ink: #000000; color-scheme: dark;
}
.blue {
  --canvas: #0D99FF; --sheet: rgba(255, 255, 255, .12); --ink: #FFFFFF; --graphite: rgba(255, 255, 255, .85);
  --line: rgba(255, 255, 255, .25); --line-strong: rgba(255, 255, 255, .45);
  --sel: #FFFFFF; --sel-text: #0D99FF; --on-ink: #0D99FF;
}

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 14px; border: 0;
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--blue); color: #fff; }
.blue .btn-dark:hover, .dark .btn-dark:hover { background: var(--you); color: #fff; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { height: 64px; padding: 0 34px; font-size: 18px; border-radius: 18px; }

/* шапка */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.nav-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { font-weight: 700; font-size: 17px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.nav-links { display: none; gap: 28px; margin-right: 16px; }
.nav-links a { text-decoration: none; color: var(--graphite); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.theme {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--graphite); transition: background-color .2s, color .2s;
}
.theme:hover { background: var(--sheet); color: var(--ink); }
.nav .btn-sm { display: none; }
@media (min-width: 560px) { .nav .btn-sm { display: inline-flex; } }
@media (min-width: 900px) { .nav-links { display: flex; } }
.progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* заставка при первом заходе */
.intro-screen { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: var(--canvas); }
html.intro .intro-screen { display: grid; }
.intro-box { position: relative; padding: 12px 22px 16px; border: 1.5px solid var(--blue); background: color-mix(in srgb, var(--blue) 7%, transparent); }
.intro-box i { position: absolute; width: 10px; height: 10px; background: #fff; border: 1.5px solid var(--blue); }
.intro-box i:nth-of-type(1) { left: -6px; top: -6px; }
.intro-box i:nth-of-type(2) { right: -6px; top: -6px; }
.intro-box i:nth-of-type(3) { left: -6px; bottom: -6px; }
.intro-box i:nth-of-type(4) { right: -6px; bottom: -6px; }
.intro-name { display: block; font-weight: 800; font-size: clamp(32px, 6vw, 80px); letter-spacing: -.05em; line-height: 1; }
.intro-count { position: absolute; right: var(--gut); bottom: calc(var(--gut) - 8px); font-weight: 800; font-size: clamp(56px, 10vw, 150px); letter-spacing: -.06em; color: var(--blue); line-height: 1; }

/* первый экран */
.hero { position: relative; padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 72px); overflow-x: clip; }
.hero-dots {
  position: absolute; inset: -40px; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.hero-title {
  margin: 0; font-weight: 800; font-size: clamp(44px, 7vw, 112px);
  line-height: .93; letter-spacing: -.055em; max-width: 11ch; text-wrap: balance;
}
.hero-title .ch { font-variation-settings: "SHRP" var(--s, 0), "slnt" var(--l, 0); }
.lead { margin-top: 28px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--graphite); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.where { margin-top: 20px; font-size: 14px; color: var(--graphite); }
html.motion .hero-title, html.motion .hero-lead, html.motion .hero-actions, html.motion .where, html.motion .tool, html.motion .facts { visibility: hidden; }

/* наклейка с крутящимся текстом */
.badge {
  position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin-left: 8px; border-radius: 50%;
  background: var(--sun); color: #000; text-decoration: none; flex: none; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45);
}
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-ring text { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; fill: currentColor; }
.badge-plane { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.badge:hover .badge-plane { transform: translate(3px, -3px) rotate(-8deg) scale(1.1); }
@media (max-width: 420px) { .badge { width: 80px; height: 80px; } .badge-ring text { font-size: 13px; } }

/* генератор сторис */
.tool {
  position: relative; justify-self: center; width: 100%; max-width: 440px;
  background: var(--sheet); border-radius: 26px; padding: 14px; box-shadow: var(--shadow);
}
@media (min-width: 1000px) { .tool { width: auto; max-width: none; } }
.tool-tabs { display: flex; gap: 2px; padding: 4px; background: var(--canvas); border-radius: 13px; }
.tool-tabs button {
  flex: 1; border: 0; background: transparent; border-radius: 10px; padding: 8px 10px;
  font-size: 14px; font-weight: 500; color: var(--graphite); cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.tool-tabs button[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tool-body { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 1000px) { .tool-body { grid-template-columns: 272px auto; } }
.phone {
  margin: 0; justify-self: center; width: min(100%, 272px); aspect-ratio: 600 / 1067;
  border-radius: 22px; overflow: hidden; background: var(--canvas);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 54px)); gap: 8px; padding: 4px; justify-content: center; }
@media (min-width: 1000px) { .thumbs { grid-template-columns: repeat(2, 62px); align-content: start; } }
.thumb {
  padding: 0; border: 0; background: var(--canvas); border-radius: 8px; overflow: hidden; cursor: pointer;
  aspect-ratio: 132 / 235; outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color .2s, transform .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-2px); }
.thumb[aria-pressed="true"] { outline-color: var(--sel); }
.tool-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.btn-save { flex: none; height: 46px; padding: 0 18px; font-size: 15px; border-radius: 13px; }
.btn-save.is-done { background: var(--blue); color: #fff; }
.tool-note { font-size: 13px; line-height: 1.4; color: var(--graphite); max-width: 26ch; }

/* курсор администратора: сам листает дизайны, пока вы не взяли управление */
.ghost {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none;
  display: flex; align-items: flex-start; opacity: 0; will-change: transform;
}
.ghost svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); transition: transform .12s; }
.ghost.is-press svg { transform: scale(.82); }
.ghost span {
  margin: 17px 0 0 -3px; padding: 3px 8px 4px; border-radius: 3px 9px 9px 9px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.ripple {
  position: absolute; z-index: 5; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 2px solid var(--blue); pointer-events: none;
}
.spark { position: absolute; z-index: 7; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; }

/* метка «Вы» у курсора посетителя, по всему сайту */
.you {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: 0;
  padding: 3px 8px 4px; border-radius: 9px 9px 9px 3px; background: var(--you); color: #fff;
  font-size: 12px; font-weight: 500; transition: opacity .25s;
}

.facts {
  list-style: none; margin: clamp(48px, 6vw, 80px) auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px;
  font-size: 14px; color: var(--graphite); position: relative;
}
.facts li { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.facts b { display: block; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1.1; margin-bottom: 2px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ленты бегущей строки */
.tapes { position: relative; height: clamp(130px, 15vw, 200px); overflow: clip; }
.tape {
  position: absolute; left: -6%; width: 112%; top: 50%; padding: clamp(10px, 1.2vw, 16px) 0; white-space: nowrap; overflow: hidden;
  font-weight: 800; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.1;
}
.tape-a { z-index: 2; background: var(--blue); color: #fff; transform: translateY(-50%) rotate(-3deg); }
.tape-b { background: var(--ink); color: var(--on-ink); transform: translateY(-50%) rotate(2.6deg); }
.tape-in { display: inline-flex; align-items: center; gap: .55em; padding-right: .55em; will-change: transform; }
.tape-in b { font-weight: 400; font-size: .8em; }
.tape-a b { color: var(--sun); }
.tape-b b { color: var(--you); }

/* общие секции */
.section { padding-block: clamp(72px, 10vw, 136px); }
.h2 {
  margin: 0 0 clamp(28px, 4vw, 52px); font-weight: 800; font-size: clamp(36px, 5vw, 72px);
  line-height: 1; letter-spacing: -.05em; max-width: 16ch; text-wrap: balance;
}
.h3 { margin: 0; font-weight: 700; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.025em; }
.sub { margin-top: calc(clamp(28px, 4vw, 52px) * -.55); color: var(--graphite); font-size: 18px; max-width: 46ch; }

/* знакомо: жалобы как комментарии на макете */
/* карточки влетают сбоку, поэтому секции режут всё, что выходит за край экрана */
.pains, .services, .why, .process, .prices, .about, .faq { overflow-x: clip; }
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 768px) { .pain-list { grid-template-columns: 1fr 1fr; gap: 18px; } }
.pain-list li {
  position: relative; background: var(--sheet); border-radius: 4px 22px 22px 22px;
  padding: 20px 24px 22px 66px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.38; letter-spacing: -.015em;
}
.pain-list li::before {
  content: ""; position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50% 50% 50% 4px;
  background: var(--you); transition: background-color .3s .5s;
}
.pain-list li::after {
  content: ""; position: absolute; left: 31px; top: 27px; width: 6px; height: 11px; opacity: 0;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.4);
  transition: opacity .2s .65s, transform .35s .65s cubic-bezier(.3, 1.6, .5, 1);
}
.pain-list li.is-done::before { background: var(--blue); }
.pain-list li.is-done::after { opacity: 1; transform: rotate(45deg) scale(1); }
.strike {
  background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 60% / 0 2px;
  transition: background-size .9s cubic-bezier(.6, 0, .3, 1), color .5s .45s;
}
.pain-list li.is-done .strike { background-size: 100% 2px; color: var(--graphite); }
.pain-answer {
  margin-top: clamp(32px, 4vw, 48px); font-size: clamp(24px, 2.8vw, 38px); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.15; max-width: 26ch;
}
.pains.js-anim .pain-answer { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.pains.js-anim .pain-answer.is-shown { opacity: 1; transform: none; }

/* услуги: в каждой карточке живая сцена */
.svc-grid { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .svc-grid { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .svc-web { grid-column: span 7; }
  .svc-social { grid-column: span 5; }
  .svc-print { grid-column: span 5; }
  .svc-tools { grid-column: span 7; }
}
.svc {
  position: relative; background: var(--sheet); border-radius: 24px; padding: 14px 14px 26px;
  display: flex; flex-direction: column; gap: 8px; will-change: transform;
}
.svc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--blue) 14%, transparent), transparent 60%);
}
.svc:hover::after { opacity: 1; }
.svc .h3 { padding-inline: 8px; margin-top: 10px; }
.svc p { padding-inline: 8px; color: var(--graphite); max-width: 48ch; }
.svc .h3 + p { color: var(--ink); font-weight: 500; }
.svc-art { --art-h: clamp(240px, 27vw, 340px); position: relative; height: var(--art-h); border-radius: 14px; overflow: hidden; background: var(--canvas); }

.browser { display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); }
.browser-bar { flex: none; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: var(--canvas); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-bar i:nth-of-type(1) { background: #FF5F57; }
.browser-bar i:nth-of-type(2) { background: #FEBC2E; }
.browser-bar i:nth-of-type(3) { background: #28C840; }
.browser-bar span { margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: var(--sheet); font-size: 11px; color: var(--graphite); }
.browser-view { --view-h: calc(var(--art-h) - 32px); position: relative; flex: 1; overflow: hidden; }
.scroller { position: absolute; left: 0; top: 0; width: 100%; animation: pagescroll 18s cubic-bezier(.65, 0, .35, 1) infinite; }
.svc-web:hover .scroller { animation-play-state: paused; }
@keyframes pagescroll {
  0%, 8% { transform: translateY(0); }
  46%, 56% { transform: translateY(calc(-100% + var(--view-h))); }
  94%, 100% { transform: translateY(0); }
}

.ig-stage { display: grid; place-items: center; background: var(--you); }
.ig {
  position: relative; height: 86%; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000;
  transform: rotate(-4deg); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .55); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.svc-social:hover .ig { transform: rotate(0deg) scale(1.03); }
.ig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: 12s linear infinite; }
.ig img:nth-of-type(1) { animation-name: ig1; }
.ig img:nth-of-type(2) { animation-name: ig2; }
.ig img:nth-of-type(3) { animation-name: ig3; }
.ig img:nth-of-type(4) { animation-name: ig4; }
@keyframes ig1 { 0%, 24% { opacity: 1; } 25%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ig2 { 0%, 24% { opacity: 0; } 25%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ig3 { 0%, 49% { opacity: 0; } 50%, 74% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes ig4 { 0%, 74% { opacity: 0; } 75%, 99% { opacity: 1; } 100% { opacity: 0; } }
.ig-bars { position: absolute; z-index: 2; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; }
.ig-bars i { position: relative; flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.ig-bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); animation: 12s linear infinite; }
.ig-bars i:nth-child(1)::after { animation-name: bar1; }
.ig-bars i:nth-child(2)::after { animation-name: bar2; }
.ig-bars i:nth-child(3)::after { animation-name: bar3; }
.ig-bars i:nth-child(4)::after { animation-name: bar4; }
@keyframes bar1 { 0% { transform: scaleX(0); } 25%, 100% { transform: scaleX(1); } }
@keyframes bar2 { 0%, 25% { transform: scaleX(0); } 50%, 100% { transform: scaleX(1); } }
@keyframes bar3 { 0%, 50% { transform: scaleX(0); } 75%, 100% { transform: scaleX(1); } }
@keyframes bar4 { 0%, 75% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

.print-stage { display: grid; place-items: center; background: var(--sun); perspective: 900px; }
.print-stage::after {
  content: ""; position: absolute; left: 50%; bottom: 14%; width: 56%; height: 18px; transform: translateX(-50%);
  border-radius: 50%; background: rgba(0, 0, 0, .22); filter: blur(10px);
}
.card3d { position: relative; z-index: 1; width: min(68%, 300px); aspect-ratio: 90 / 50; }
.card3d-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: flip 9s cubic-bezier(.65, 0, .3, 1) infinite; }
.svc-print:hover .card3d-in { animation-duration: 4.5s; }
@keyframes flip {
  0%, 34% { transform: rotateY(-20deg) rotateX(10deg); }
  50%, 84% { transform: rotateY(160deg) rotateX(10deg); }
  100% { transform: rotateY(340deg) rotateX(10deg); }
}
.face {
  position: absolute; inset: 0; border-radius: 10px; padding: 7% 8%; display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 2px 0 rgba(0, 0, 0, .06);
}
.face.front { background: var(--blue); color: #fff; }
.face.front svg { position: absolute; left: 8%; top: 13%; }
.face.front b { font-size: clamp(15px, 1.5vw, 20px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.face.front span { margin-top: 4px; font-size: 11px; opacity: .85; }
.face.back {
  background: #fff; color: #000; transform: rotateY(180deg); justify-content: space-between;
  background-image: radial-gradient(rgba(0, 0, 0, .14) 1px, transparent 1.5px); background-size: 12px 12px;
}
.face.back b { font-size: clamp(14px, 1.3vw, 17px); font-weight: 700; letter-spacing: -.02em; color: var(--blue); }
.face.back span { font-size: 11px; color: #55585F; }

.fan { display: flex; justify-content: center; align-items: center; background: var(--canvas); }
.fan img {
  width: auto; height: 82%; aspect-ratio: 132 / 235; border-radius: 10px; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .45);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.fan img:nth-child(1) { position: relative; z-index: 1; transform: rotate(-9deg) translateX(18px); }
.fan img:nth-child(2) { position: relative; z-index: 3; transform: translateY(-6px); }
.fan img:nth-child(3) { position: relative; z-index: 2; transform: rotate(9deg) translateX(-18px); }
.fan img[data-pos="0"] { z-index: 1; transform: rotate(-9deg) translateX(18px); }
.fan img[data-pos="1"] { z-index: 3; transform: translateY(-10px) scale(1.04); }
.fan img[data-pos="2"] { z-index: 2; transform: rotate(9deg) translateX(-18px); }
.svc-tools .fan { order: 0; }
/* рамка выделения как в дизайн-программе: главная карточка блока */
.selection { position: absolute; inset: -7px; border: 1.5px solid var(--sel); pointer-events: none; z-index: 2; }
.selection i { position: absolute; width: 10px; height: 10px; background: #fff; border: 1.5px solid var(--sel); }
.selection i:nth-child(1) { left: -6px; top: -6px; }
.selection i:nth-child(2) { right: -6px; top: -6px; }
.selection i:nth-child(3) { left: -6px; bottom: -6px; }
.selection i:nth-child(4) { right: -6px; bottom: -6px; }
.selection span {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  background: var(--sel); color: var(--sel-text); font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 4px; white-space: nowrap;
}

/* почему со мной: карточки заливаются синим при наведении */
.why { padding-bottom: clamp(40px, 5vw, 72px); }
.why-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }
.why-item { position: relative; overflow: hidden; background: var(--sheet); border-radius: 22px; padding: clamp(22px, 2.6vw, 34px); isolation: isolate; }
.why-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue);
  transform: translateY(101%); transition: transform .55s cubic-bezier(.7, 0, .2, 1);
}
.why-item:hover::before { transform: none; }
.why-item .h3 { margin-bottom: 12px; max-width: 22ch; font-size: clamp(22px, 2vw, 28px); }
.why-item p { color: var(--graphite); max-width: 46ch; transition: color .4s; }
.why-item:hover p { color: rgba(255, 255, 255, .9); }

/* работы */
.works { padding-top: clamp(40px, 5vw, 72px); }
.h2-giant { font-size: clamp(72px, 16vw, 240px); line-height: .82; letter-spacing: -.07em; max-width: none; }
.case { margin-top: clamp(56px, 7vw, 96px); }
.case-card { display: grid; gap: 14px 40px; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
@media (min-width: 900px) {
  .case-card { grid-template-columns: 300px 1fr; }
  .case-card > .case-facts, .case-card > .case-text { grid-column: 2; grid-row: 1 / span 2; }
}
.case-name { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.04em; font-weight: 800; }
.case-meta { color: var(--graphite); }
.case-facts { margin: 6px 0 0; display: grid; gap: 18px; }
@media (min-width: 640px) { .case-facts { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 900px) { .case-facts { margin: 0; } }
.case-facts dt { font-size: 13px; font-weight: 500; color: var(--graphite); margin-bottom: 6px; }
.case-facts dd { margin: 0; font-size: 16px; line-height: 1.5; }
.case-text { display: grid; gap: 12px; justify-items: start; max-width: 60ch; }
.case-text p:nth-child(2) { color: var(--graphite); }
.case-text .btn { margin-top: 8px; }
.case-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.strip {
  --h: 300px;
  --strip-pad: max(var(--gut), calc((100% - var(--max)) / 2));
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 24px var(--strip-pad) 6px; scroll-padding-inline: var(--strip-pad);
  scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip.is-drag img { pointer-events: none; }
@media (min-width: 768px) { .strip { --h: 420px; gap: 18px; } }
.strip figure { margin: 0; flex: none; scroll-snap-align: start; }
.strip img { height: var(--h); width: auto; border-radius: 12px; background: var(--sheet); user-select: none; -webkit-user-drag: none; }
.strip figcaption { margin-top: 10px; font-size: 13px; color: var(--graphite); }
.strip .w-site img { box-shadow: 0 0 0 1px var(--line); }

/* на компьютере все кейсы едут одной горизонтальной лентой, пока страница прокручивается */
.works.is-h { padding-bottom: 0; }
.works.is-h .works-pin { height: 100vh; overflow: clip; display: flex; align-items: center; }
.works.is-h .works-track {
  display: flex; align-items: flex-end; gap: clamp(90px, 9vw, 160px); width: max-content;
  padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2)) 12vw;
}
.works.is-h .case { display: flex; align-items: flex-end; gap: 28px; margin: 0; }
.works.is-h .case-card { display: flex; flex-direction: column; gap: 14px; width: 330px; flex: none; margin: 0; padding: 0 0 36px; }
.works.is-h .case-card .case-facts { grid-template-columns: 1fr; gap: 14px; }
.works.is-h .case-facts dd { font-size: 15px; }
.works.is-h .strip { --h: min(52vh, 460px); flex: none; overflow: visible; padding: 0; cursor: default; scroll-snap-type: none; }
.works.is-h .strip img { max-width: none; }

/* места под будущие работы: видны только при просмотре у себя (html.slots), на живом сайте скрыты */
.slot { display: none; }
html.slots .slot { display: block; }
.slot-box {
  height: var(--h); aspect-ratio: 16 / 10; border: 2px dashed var(--blue); border-radius: 12px;
  display: grid; place-content: center; gap: 4px; text-align: center; padding: 16px;
  background: color-mix(in srgb, var(--blue) 8%, transparent); color: var(--graphite);
}
.slot-box b { color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.slot-box span { font-size: 14px; }
.w-post .slot-box { aspect-ratio: 210 / 297; }
.w-pres .slot-box { aspect-ratio: 16 / 9; }

/* процесс: линия прорисовывается при прокрутке */
.steps-wrap { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 26px; position: relative; }
.steps li { counter-increment: step; position: relative; padding-left: 54px; font-size: 16px; line-height: 1.5; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  background: var(--canvas); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color .35s, color .35s, box-shadow .35s;
}
.steps li.is-on::before { background: var(--blue); color: #fff; box-shadow: none; }
.steps-line { position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; background: var(--blue); transform-origin: top; }
html.motion .steps-line i { transform: scaleY(0); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps li { padding: 58px 0 0; }
  .steps li::before { top: 0; width: 40px; height: 40px; font-size: 17px; }
  .steps-line { left: 0; right: 0; top: 19px; bottom: auto; width: auto; height: 2px; }
  .steps-line i { transform-origin: left; }
  html.motion .steps-line i { transform: scaleX(0); }
}

/* чего не делаю: синяя панель */
.dont { overflow: clip; }
.dont-list { list-style: none; margin: 0; padding: 0; }
.dont-list li {
  display: flex; gap: 18px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line-strong);
  font-size: clamp(22px, 3vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15;
}
.dont-list li:first-child { border-top: 1px solid var(--line-strong); }
.dont-list li::before {
  content: ""; flex: none; width: .7em; height: .7em; border-radius: 50%; transform: translateY(.04em);
  border: 2px solid currentColor;
  background: linear-gradient(135deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
}

/* цены */
.price-list { list-style: none; margin: 0; padding: 8px clamp(10px, 2vw, 20px); background: var(--sheet); border-radius: 24px; }
.price-list li {
  position: relative; z-index: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px;
  padding: 20px clamp(8px, 1.2vw, 14px); border-bottom: 1px solid var(--line); font-size: 18px; transition: color .3s;
}
.price-list li:last-child { border-bottom: 0; }
.price-list li::before {
  content: ""; position: absolute; inset: 4px -2px; z-index: -1; border-radius: 14px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.7, 0, .2, 1);
}
.price-list li:hover { color: #fff; }
.price-list li:hover::before { transform: none; }
.price-list b { font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-note { margin-top: 22px; color: var(--graphite); max-width: 52ch; }

/* обо мне */
.about-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-in { grid-template-columns: 5fr 7fr; gap: 72px; } }
.about-photo { position: relative; width: 100%; max-width: 460px; }
.about-img { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; right: -18px; bottom: -22px; width: clamp(104px, 11vw, 140px); height: auto; }
@media (max-width: 767px) { .about-badge { right: -8px; bottom: -16px; } }
.about-badge circle { fill: var(--sun); }
.about-badge text { font-size: 11px; font-weight: 600; letter-spacing: .08em; fill: #000; }
.about-text { display: grid; gap: 16px; }
.about-text .h2 { margin-bottom: 12px; }
.about-text p { font-size: 18px; max-width: 50ch; color: var(--graphite); }
.about-text p:first-of-type { color: var(--ink); }

/* вопросы */
.faq-list { display: grid; column-gap: 48px; }
@media (min-width: 900px) { .faq-list { grid-template-columns: 1fr 1fr; } }
.faq-list details { border-bottom: 1px solid var(--line-strong); interpolate-size: allow-keywords; }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer; padding: 20px 40px 20px 0;
  font-size: 18px; font-weight: 600; letter-spacing: -.02em; transition: color .2s;
}
.faq-list summary:hover { color: var(--blue); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 2px; background: currentColor;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 32px 22px 0; color: var(--graphite); max-width: 52ch; }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .35s cubic-bezier(.2, .8, .2, 1), content-visibility .35s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }

/* финал */
.final-panel { margin-bottom: clamp(6px, 1vw, 14px); overflow: clip; }
.final { padding-bottom: 0; }
.final-title {
  margin: 0; font-weight: 800; font-size: clamp(48px, 8.4vw, 128px); line-height: .92;
  letter-spacing: -.06em; max-width: 13ch; text-wrap: balance;
}
.final .lead { margin-top: 26px; }
.final .btn { margin-top: 34px; }
.contacts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.contacts a { color: var(--graphite); text-decoration: none; transition: color .2s; }
.contacts a:hover { color: var(--ink); }
.big-run {
  display: block; margin-top: clamp(56px, 8vw, 110px); overflow: clip; white-space: nowrap; text-decoration: none;
  font-weight: 800; font-size: clamp(64px, 12vw, 190px); letter-spacing: -.06em; line-height: 1.05; padding-bottom: .06em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color .35s;
}
.big-run:hover { color: var(--blue); -webkit-text-stroke-color: var(--blue); }
.big-run-in { display: inline-flex; align-items: center; gap: .35em; padding-right: .35em; will-change: transform; }
.big-run b { font-weight: 400; font-size: .6em; color: var(--you); -webkit-text-stroke: 0; }
.foot { border-top: 1px solid var(--line-strong); }
.foot-in a { color: inherit; text-decoration: none; transition: color .2s; }
.foot-in a:hover { color: var(--ink); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; font-size: 14px; color: var(--graphite); }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* заголовки при прокрутке: рамка выделения тянется из угла, заголовок «перетаскивают» на место */
.h2 { position: relative; width: fit-content; }
.is-armed { opacity: 0; }
.sel-box {
  position: absolute; inset: -8px -10px; pointer-events: none; opacity: 0;
  border: 1.5px solid var(--sel); background: color-mix(in srgb, var(--sel) 7%, transparent);
}
.sel-box i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--sel); }
.sel-box i:nth-child(1) { left: -5px; top: -5px; }
.sel-box i:nth-child(2) { right: -5px; top: -5px; }
.sel-box i:nth-child(3) { left: -5px; bottom: -5px; }
.sel-box i:nth-child(4) { right: -5px; bottom: -5px; }
.sel-box span {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  background: var(--sel); color: var(--sel-text); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0;
  padding: 2px 7px; border-radius: 4px; white-space: nowrap;
}

/* плавная прокрутка Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* работы: при наведении работа приподнимается, выделяется и показывает свой размер */
@media (hover: hover) and (pointer: fine) {
  .strip figure { position: relative; }
  .strip img {
    outline: 1.5px solid transparent; outline-offset: 0;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), outline-color .2s, box-shadow .45s;
  }
  .strip figure:hover img { transform: translateY(-6px); outline-color: var(--sel); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .5); }
  .strip figure::before {
    content: ""; position: absolute; left: -4px; right: -4px; top: -4px; height: calc(var(--h) + 8px);
    pointer-events: none; opacity: 0; z-index: 1;
    background:
      linear-gradient(#fff, #fff) 1.5px 1.5px / 6px 6px no-repeat,
      linear-gradient(#fff, #fff) calc(100% - 1.5px) 1.5px / 6px 6px no-repeat,
      linear-gradient(#fff, #fff) 1.5px calc(100% - 1.5px) / 6px 6px no-repeat,
      linear-gradient(#fff, #fff) calc(100% - 1.5px) calc(100% - 1.5px) / 6px 6px no-repeat,
      linear-gradient(var(--sel), var(--sel)) 0 0 / 9px 9px no-repeat,
      linear-gradient(var(--sel), var(--sel)) 100% 0 / 9px 9px no-repeat,
      linear-gradient(var(--sel), var(--sel)) 0 100% / 9px 9px no-repeat,
      linear-gradient(var(--sel), var(--sel)) 100% 100% / 9px 9px no-repeat;
    transition: opacity .2s, transform .45s cubic-bezier(.2, .8, .2, 1);
  }
  .strip figure:hover::before { opacity: 1; transform: translateY(-6px); }
  .strip figure[data-size]::after {
    content: attr(data-size); position: absolute; left: 50%; top: var(--h); z-index: 2; pointer-events: none;
    transform: translate(-50%, -50%) scale(.85); opacity: 0;
    background: var(--sel); color: var(--sel-text); font-size: 11px; font-weight: 500; line-height: 1.4;
    padding: 2px 7px; border-radius: 4px; white-space: nowrap;
    transition: opacity .2s, transform .45s cubic-bezier(.2, .8, .2, 1);
  }
  .strip figure:hover::after { opacity: 1; transform: translate(-50%, calc(-50% - 6px)) scale(1); }
  .strip figcaption { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important; animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; animation-delay: 0s !important;
  }
}
