/* =====================================================================
   КАСТОМ СТУДИЯ — стили сайта
   Цвета и шрифты меняются в блоке :root ниже.
   ===================================================================== */

/* ---------- Шрифты (лежат в assets/fonts, лицензия OFL) ---------- */
@font-face {
  font-family: 'Martian Mono';
  src: url('../fonts/martian-mono-cyrillic.woff2') format('woff2');
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Martian Mono';
  src: url('../fonts/martian-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  /* Цвета */
  --paper: #f8f8f8;      /* фон */
  --paper-2: #eeeeec;    /* плашки */
  --card: #fdfdfc;       /* «отпечатки» фото */
  --ink: #121212;        /* текст */
  --ink-2: #4a4a4a;      /* второстепенный текст */
  --ink-3: #6b6b6b;      /* подписи */
  --line: #dadad6;       /* линии */
  --line-strong: #b9b9b4;
  --blue: #1a40c0;       /* фирменный синий */
  --blue-wash: #e4e9fa;
  --danger: #b3261e;

  /* Шрифты */
  --font-mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  --font-sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Сетка и ритм */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(48px, 6vw, 84px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-print: 0 1px 1px rgb(18 18 18 / 0.06), 0 18px 36px -22px rgb(18 18 18 / 0.5);
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-color: var(--line-strong) var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper) url('../img/decor/grain.png');
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
}

::selection { background: var(--blue); color: #fff; }

img,
svg { display: block; max-width: 100%; }
/* декоративные картинки не перехватывают клики */
img[aria-hidden="true"] { pointer-events: none; }
img { height: auto; }

h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
select,
textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 20px; height: 20px; }
.icon--lg { width: 32px; height: 32px; stroke-width: 1.4; }

/* ---------- Типографика ---------- */
.h2 {
  font: 600 clamp(1.375rem, 1.05rem + 1.1vw, 1.875rem) / 1.2 var(--font-mono);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 .h2-line {
  display: block;
  width: 4.8em;
  height: 0.42em;
  margin-top: 0.22em;
  object-fit: fill;
}
.h3 {
  font: 600 1.25rem/1.3 var(--font-mono);
  letter-spacing: -0.015em;
}
.lead {
  max-width: 46ch;
  margin-top: 16px;
  color: var(--ink-2);
}
.small { font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); }
.nowrap { white-space: nowrap; }

/* Рукописные штрихи */
.scribble {
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font: 600 0.9375rem/1.1 var(--font-sans);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; transition: transform 0.3s var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(4px); }

/* Основная кнопка «закрашена валиком»: картинка с рваным краем + сплошная середина на случай, если картинка не загрузится */
.btn--primary { position: relative; isolation: isolate; padding-block: 6px; background: var(--blue) content-box; color: #fff; }
.btn--primary::before {
  content: '';
  position: absolute;
  inset: -3px -4px;
  z-index: -1;
  background:
    url('../img/decor/btn-brush.webp') center / 100% 100% no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / calc(100% - 14px) calc(100% - 12px) no-repeat;
  transition: filter 0.2s;
}
.btn--primary:hover::before { filter: brightness(0.78); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }

.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.8125rem; gap: 10px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.link-arrow .icon { width: 20px; height: 20px; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  transition: min-height 0.3s var(--ease-out);
}
.is-scrolled .site-header__inner { min-height: 62px; }

.logo {
  display: inline-flex;
  flex-direction: column;
  color: var(--blue);
  text-decoration: none;
  line-height: 1;
}
.logo__word { font: 800 1.375rem/0.9 var(--font-sans); letter-spacing: 0.01em; }
.logo__sub { margin-top: 3px; font: 600 0.75rem/1 var(--font-sans); letter-spacing: 0.02em; }

.nav { display: none; }
.nav ul { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  display: block;
  padding: 12px 0;
  font-size: 0.9375rem;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1.5px no-repeat;
  transition: background-size 0.3s var(--ease-out), color 0.2s;
}
.nav a:hover { color: var(--blue); background-size: 100% 1.5px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta .label { display: none; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
}
.icon-btn:hover { color: var(--blue); }
.menu-btn { display: inline-flex; gap: 8px; width: auto; padding: 0 6px; font-size: 0.9375rem; font-weight: 600; }

@media (min-width: 960px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .header-cta .label { display: inline; }
}

/* Мобильное меню */
.menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper) url('../img/decor/grain.png');
  color: var(--ink);
}
.menu::backdrop { background: rgb(18 18 18 / 0.3); }
.menu[open] { animation: menu-in 0.35s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
.menu__inner { display: flex; flex-direction: column; min-height: 100%; padding-bottom: 32px; }
.menu__head { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); border-bottom: 1px solid var(--line); }
.menu__nav { margin-top: 24px; }
.menu__nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 600 1.5rem/1.2 var(--font-mono);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.menu__nav a:hover { color: var(--blue); }
.menu__contacts { margin-top: auto; padding-top: 32px; display: grid; gap: 4px; }
.menu__contacts a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }

/* ---------- Первый экран ---------- */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); overflow-x: clip; }
.hero__grid {
  display: grid;
  gap: 48px 32px;
  grid-template-columns: minmax(0, 1fr);
}
.hero__text { --d: clamp(3rem, 0.9rem + 6.6vw, 6rem); padding-top: 4px; }

/* Пометка на полях рядом с «уфа», стрелка указывает в заголовок */
.hero__note {
  position: absolute;
  left: calc(var(--d) * 1.95);
  top: calc(var(--d) * 0.08);
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font: 400 0.875rem/1.3 var(--font-mono);
  color: var(--ink-2);
  transform: rotate(-4deg);
  transform-origin: left top;
}
.hero__note-arrow { width: 40px; height: auto; margin-top: 8px; }

.hero__headline { position: relative; }
.hero__title {
  font-family: var(--font-mono);
  font-size: var(--d);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--blue);
}
.hero__city { display: block; font-weight: 200; font-stretch: 87.5%; letter-spacing: -0.03em; margin-bottom: 0.06em; }
.hero__line { display: block; font-weight: 650; font-stretch: 100%; }
.hero__line--last { display: inline-block; position: relative; }
.hero__underline {
  position: absolute;
  left: -0.1em;
  bottom: -0.3em;
  width: 2.5em;
  height: auto;
  max-width: none;
}
.hero__asterisk {
  position: absolute;
  left: calc(100% + 0.18em);
  top: -0.02em;
  width: 0.42em;
  height: 0.42em;
  stroke-width: 2.4;
}
.hero__lead {
  max-width: 26ch;
  margin-top: 40px;
  font: 400 0.9375rem/1.55 var(--font-mono);
  color: var(--ink);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 36px; }
.hero__actions .btn { flex: 1 1 100%; }

@media (min-width: 600px) {
  .hero__lead {
    position: absolute;
    left: calc(var(--d) * 2.95);
    bottom: calc(var(--d) * 0.06);
    margin: 0;
  }
  .hero__actions { margin-top: clamp(48px, 5vw, 64px); }
  .hero__actions .btn { flex: 0 0 auto; }
}

.hero__media { position: relative; justify-self: center; width: min(100%, 470px); margin-top: 8px; }
.hero__print {
  position: relative;
  padding: 10px 10px 12px;
  background: var(--card);
  box-shadow: var(--shadow-print);
  transform: rotate(1.4deg);
}
.hero__print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; }
.hero__tape { position: absolute; top: -22px; left: 50%; width: 40%; transform: translateX(-56%) rotate(-5deg); opacity: 0.92; }
.hero__dots { position: absolute; right: 26px; top: 16%; height: 24%; border-left: 2px dotted rgb(18 18 18 / 0.45); }
.hero__star { position: absolute; left: -3%; top: 5%; width: 13%; height: auto; transform: rotate(-8deg); }
.hero__swipe { position: absolute; left: -3%; bottom: -6%; width: auto; height: 24%; pointer-events: none; }
.hero__arrow { position: absolute; right: -4%; bottom: 13%; width: 62%; height: auto; transform: rotate(-9deg); display: none; }
@media (min-width: 600px) { .hero__arrow { display: block; right: -9%; bottom: 22%; width: 40%; } }

.hero__aside { grid-column: 1 / -1; display: grid; gap: 12px 32px; padding-top: 8px; }
.hero__aside .hero__aside-title { font: 500 1.375rem/1.15 var(--font-mono); letter-spacing: -0.03em; color: var(--blue); }
.hero__aside p { max-width: 44ch; font: 400 0.875rem/1.7 var(--font-mono); color: var(--ink-2); }

@media (min-width: 600px) {
  .hero__aside { grid-template-columns: 180px 1fr; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
  .hero__aside { align-self: start; }
  .hero__media { margin-top: 0; }
}
@media (min-width: 600px) {
  .hero__star { left: -7%; }
}
@media (min-width: 1200px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.8fr) 172px; gap: 32px; }
  .hero__aside { grid-column: auto; grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
  .hero__arrow { right: -46%; bottom: 16%; width: 78%; }
}

/* ---------- Секции ---------- */
.section { padding-bottom: var(--section-y); }
.ruled { border-top: 1px solid var(--line); padding-top: var(--section-y); }

/* ---------- Услуги ---------- */
.services__grid { display: grid; margin-top: 40px; }
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; padding-top: 8px; }
.service__head { display: flex; align-items: flex-start; gap: 12px; }
.service__icon { position: relative; display: grid; place-items: center; width: 58px; height: 58px; color: var(--ink); }
.service__icon .icon { width: 28px; height: 28px; }
.service__circle { position: absolute; inset: 0; width: 100%; height: 100%; }
.service:nth-child(2) .service__circle { transform: rotate(110deg); }
.service:nth-child(3) .service__circle { transform: rotate(220deg) scaleX(-1); }
.service:nth-child(4) .service__circle { transform: rotate(300deg); }
.service__num { padding-top: 10px; font: 400 0.9375rem/1 var(--font-mono); color: var(--blue); }
.service__title { margin-top: 8px; }
.service__title a { text-decoration: none; }
.service__title a::after { content: ''; position: absolute; inset: 0; }
.service__text { max-width: 30ch; font-size: 0.9375rem; color: var(--ink-2); }
.service__arrow { margin-top: auto; padding-top: 10px; color: var(--blue); }
.service__arrow .icon { transition: transform 0.3s var(--ease-out); }
.service:hover .service__title { color: var(--blue); }
.service:hover .service__arrow .icon { transform: translateX(6px); }
.service:has(a:focus-visible) { outline: 2px solid var(--blue); outline-offset: 4px; }
.service a:focus-visible { outline: none; }

@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { padding: 28px 28px 32px 0; }
  .service:nth-child(2) { border-top: 0; padding-top: 8px; }
  .service:nth-child(even) { border-left: 1px solid var(--line); padding-left: 28px; }
}
@media (min-width: 1040px) {
  .services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service { border-top: 0; padding-top: 8px; padding-bottom: 8px; }
  .service + .service { border-left: 1px solid var(--line); padding-left: 28px; }
}

/* ---------- Тизер конструктора ---------- */
.teaser__grid { display: grid; gap: 40px; }
.teaser__form { display: flex; flex-wrap: wrap; gap: 28px 36px; margin-top: 32px; }
@media (min-width: 600px) {
  .teaser__form {
    display: grid;
    grid-template-columns: max-content max-content;
    grid-template-areas: 'model size' 'color size' 'details tech' 'cta cta';
    gap: 28px 32px;
    align-items: start;
  }
  .teaser__form > :nth-child(1) { grid-area: model; }
  .teaser__form > :nth-child(2) { grid-area: color; }
  .teaser__form > :nth-child(3) { grid-area: size; }
  .teaser__form > :nth-child(4) { grid-area: details; }
  .teaser__form > :nth-child(5) { grid-area: tech; }
  .teaser__form > :nth-child(6) { grid-area: cta; }
}
@media (min-width: 1360px) {
  .teaser__form { grid-template-columns: repeat(5, max-content); grid-template-areas: 'model color size details tech' 'cta cta cta cta cta'; gap: 28px 14px; justify-content: start; }
  .teaser__form .select select { min-width: 132px; }
  .teaser__form .choices { flex-wrap: nowrap; }
  .choice--model .choice__box { width: 52px; }
}
.step { min-width: 0; margin: 0; padding: 0; border: 0; }
.step legend, .step > .step__label {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice__box {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--card);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.choice:hover .choice__box { border-color: var(--ink); }
.choice input:checked + .choice__box {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
  background: var(--blue-wash);
  color: var(--blue);
}
.choice input:focus-visible + .choice__box { outline: 2px solid var(--blue); outline-offset: 3px; }

.choice--model .choice__box { width: 58px; height: 66px; }
.choice--model .icon { width: 40px; height: 40px; stroke-width: 1.25; }
.choice--size .choice__box { width: 48px; font: 500 0.8125rem/1 var(--font-mono); }
.choices--sizes { display: grid; grid-template-columns: repeat(2, 48px); gap: 8px; }

.choice--color .choice__box { width: 44px; border-radius: 50%; border: 0; background: none; box-shadow: none; }
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgb(18 18 18 / 0.25);
}
.choice--color input:checked + .choice__box { background: none; box-shadow: 0 0 0 2px var(--blue); }

.tool-links { display: flex; gap: 8px; }
.tool-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}
.tool-link:hover { border-color: var(--blue); color: var(--blue); }
.tool-link .icon { width: 20px; height: 20px; }

.select {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.select select {
  appearance: none;
  min-width: 200px;
  min-height: 44px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--card);
  font-size: 0.9375rem;
  cursor: pointer;
}
.select select:hover { border-color: var(--ink); }
.select .icon { position: absolute; right: 12px; width: 18px; height: 18px; pointer-events: none; }

.teaser__cta { margin-top: 36px; }

.teaser__preview { position: relative; justify-self: center; width: min(100%, 440px); margin-inline: 6%; }
.teaser__card {
  position: relative;
  aspect-ratio: 1 / 0.94;
  background: #f1f1ee url('../img/decor/grain.png');
  box-shadow: var(--shadow-print);
}
.teaser__card img {
  position: absolute;
  inset: 5% 7%;
  width: 86%;
  height: 90%;
  object-fit: contain;
  transition: opacity 0.25s;
}
.teaser__card img.is-loading { opacity: 0.35; }
.blue-tape { position: absolute; top: -14px; left: 50%; width: 34%; height: auto; transform: translateX(-50%) rotate(-1.5deg); }
.teaser__hatch { position: absolute; left: -8%; top: 14%; height: 72%; width: auto; }
.teaser__x { position: absolute; right: 5%; bottom: 6%; width: 11%; height: auto; transform: rotate(6deg); }

@media (min-width: 960px) {
  .teaser__grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); align-items: center; }
}
@media (min-width: 1360px) {
  .teaser__grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .teaser__hatch { left: -5%; height: 64%; }
  .teaser__preview { margin-inline: 0 0; }
}
@media (max-width: 959px) {
  .teaser__preview { order: -1; }
}

/* ---------- Как это работает + почему мы ---------- */
.panel { display: grid; border: 1px solid var(--line); background: rgb(253 253 252 / 0.55); }
.panel__col { padding: clamp(24px, 3.4vw, 40px); }
.panel__col + .panel__col { border-top: 1px solid var(--line); }

.steps { display: grid; gap: 22px; margin-top: 32px; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; }
.steps .icon { width: 32px; height: 32px; stroke-width: 1.4; }
.steps p { font-size: 0.9375rem; line-height: 1.4; }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; }
  .steps li { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 6px;
    right: -32px;
    width: 22px;
    height: 22px;
    background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

.why { display: grid; gap: 24px; align-items: center; }
.why__list { display: grid; gap: 14px; margin-top: 28px; }
.why__list li { position: relative; padding-left: 26px; font-size: 0.9375rem; line-height: 1.45; }
.why__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 14px;
  height: 14px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2.5v19M3.8 7.2l16.4 9.6M3.8 16.8l16.4-9.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2.5v19M3.8 7.2l16.4 9.6M3.8 16.8l16.4-9.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.why__photo { position: relative; }
.why__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.why__arrow { position: absolute; right: -2%; top: -26%; width: 15%; height: auto; transform: scaleX(-1) rotate(-20deg); }

@media (min-width: 600px) { .why { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
@media (min-width: 1040px) {
  .panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .panel__col + .panel__col { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Кастом одежды ---------- */
.section-head { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .section-head .lead { justify-self: end; margin-top: 0; }
}
.works__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; margin-top: 44px; }
.work__img {
  position: relative;
  padding: 8px;
  background: var(--card);
  box-shadow: var(--shadow-print);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.5s var(--ease-out);
}
.work__img > img:not(.work__tape) { width: 100%; aspect-ratio: 1; object-fit: cover; }
.work:nth-child(3n + 1) { --tilt: -0.9deg; }
.work:nth-child(3n + 2) { --tilt: 0.6deg; }
.work:nth-child(3n) { --tilt: -0.4deg; }
.work:hover .work__img { transform: rotate(0deg) translateY(-4px); }
.work__tape { position: absolute; top: -14px; left: 50%; width: 46%; transform: translateX(-50%) rotate(3deg); }
.work figcaption { margin-top: 16px; }
.work figcaption p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.works__note { margin-top: 32px; }
@media (min-width: 900px) {
  .works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }
  .work:nth-child(3n + 2) { margin-top: 40px; }
}

/* ---------- Мастер-классы ---------- */
.workshops__grid { display: grid; gap: 48px; margin-top: 44px; }
.collage { position: relative; padding-bottom: 18%; }
.collage__main { padding: 8px; background: var(--card); box-shadow: var(--shadow-print); transform: rotate(-0.8deg); }
.collage__main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.collage__second {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 50%;
  padding: 7px;
  background: var(--card);
  box-shadow: var(--shadow-print);
  transform: rotate(2.2deg);
}
.collage__second > img:not(.hero__tape) { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.collage__second .hero__tape { top: -16px; width: 44%; }
.formats { border-top: 1px solid var(--line); }
.format { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.format p { font-size: 0.9375rem; color: var(--ink-2); }
.format .link-arrow { justify-self: start; margin-top: 2px; }
.workshops__note { margin-top: 24px; }
@media (min-width: 640px) {
  .format { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; }
  .format p { grid-column: 1; }
  .format .link-arrow { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
@media (min-width: 960px) {
  .workshops__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
}

/* ---------- Отправить дизайн или вещь ---------- */
.send__grid { display: grid; margin-top: 40px; border-top: 1px solid var(--line); }
.send__col { display: flex; flex-direction: column; gap: 14px; padding: 32px 0; }
.send__col + .send__col { border-top: 1px solid var(--line); }
.send__col > p { max-width: 46ch; color: var(--ink-2); }
.send__actions { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 8px; }
.send__actions .btn { margin-right: 8px; }
@media (min-width: 900px) {
  .send__grid { grid-template-columns: 1fr 1fr; }
  .send__col { padding: 36px 40px 8px 0; }
  .send__col + .send__col { border-top: 0; border-left: 1px solid var(--line); padding-left: 40px; }
}

/* ---------- Апсайкл ---------- */
.upcycle {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 4vw, 40px);
  background: var(--paper-2);
}
.upcycle__icon { width: 76px; height: auto; transform: rotate(-6deg); }
.upcycle__title { font: 600 clamp(1.25rem, 1rem + 0.8vw, 1.5rem) / 1.25 var(--font-mono); letter-spacing: -0.02em; }
.upcycle p { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.upcycle__cta { position: relative; justify-self: start; }
.upcycle__cta .cta-line { position: absolute; right: -16px; bottom: -14px; width: 74%; height: 12px; object-fit: fill; pointer-events: none; }
@media (min-width: 760px) {
  .upcycle { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; padding-inline: 48px; }
}

/* ---------- О нас ---------- */
.about__grid { display: grid; gap: 48px; }
.about__text p { margin-top: 20px; max-width: 52ch; color: var(--ink-2); }
.contacts { display: grid; gap: 2px; margin-top: 28px; }
.contacts a,
.contacts span { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; }
.contacts a:hover { color: var(--blue); }
.contacts .icon { width: 22px; height: 22px; color: var(--blue); }
.about__photo { position: relative; padding: 8px; background: var(--card); box-shadow: var(--shadow-print); transform: rotate(1deg); }
.about__photo > img:not(.hero__tape) { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about__photo .hero__tape { top: -18px; left: 18%; width: 34%; transform: rotate(-6deg); }
@media (min-width: 960px) {
  .about__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
}

/* ---------- Подвал ---------- */
.site-footer { padding-block: 40px 44px; }
.site-footer__inner { display: grid; gap: 28px; padding-top: 36px; border-top: 1px solid var(--line); }
.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-brand p { font-size: 0.8125rem; color: var(--ink-3); }
.footer-contacts { display: grid; gap: 2px; }
.footer-contacts a,
.footer-contacts span { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 0.9375rem; text-decoration: none; }
.footer-contacts a:hover { color: var(--blue); }
.socials { display: flex; gap: 10px; }
.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: background-color 0.2s;
}
.social:hover { background: var(--blue); }
.social .icon { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
  .footer-contacts { display: flex; flex-wrap: wrap; gap: 4px 36px; padding-left: 40px; border-left: 1px solid var(--line); }
}

/* ---------- Поддержка Фонда (обязательный блок) ---------- */
.support { background: var(--ink); color: #ececea; }
.support__label {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-block: 14px;
  padding: 24px;
  border: 1px dashed rgb(236 236 234 / 0.35);
}
.support__logo { display: block; width: 150px; }
.support__logo img { width: 100%; height: auto; }
.support p { max-width: 62ch; font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 700px) {
  .support__label { grid-template-columns: auto 1fr; gap: 36px; padding: 26px 36px; }
}

/* ---------- 404 ---------- */
.not-found { display: grid; place-items: start; gap: 20px; padding-block: clamp(64px, 12vw, 160px); }
.not-found__code { font: 200 clamp(5rem, 3rem + 10vw, 10rem) / 0.9 var(--font-mono); letter-spacing: -0.06em; color: var(--blue); }

/* ---------- Движение ---------- */
.js .reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-out); }
.js .reveal.is-in { clip-path: inset(0 0 0 0); }
.js .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out); }
.js .is-in .draw path,
.js .draw.is-in path { stroke-dashoffset: 0; }
.js .draw path:nth-child(2) { transition-delay: 0.25s; }
.js .draw path:nth-child(3) { transition-delay: 0.4s; }
.js .draw path:nth-child(4) { transition-delay: 0.5s; }

.hero__print { animation: settle 1.1s var(--ease-out) both; }
@keyframes settle { from { transform: rotate(4.5deg) translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .draw path { stroke-dashoffset: 0; }
  .js .reveal { clip-path: none; }
}
