:root {
  --paper: #f5ecdd;
  --paper-2: #efe4d2;
  --ink: #2c2419;
  --ink-2: #4f4436;
  --muted: #7d6f5c;
  --line: rgba(44, 36, 25, 0.16);
  --line-soft: rgba(44, 36, 25, 0.09);
  --ochre: #e3b45c;
  --ochre-deep: #b8862c;
  --red: #c05540;
  --teal: #46706c;
  /* как в референсе — одна рукописная гарнитура на весь сайт,
     контраст задаётся размером и цветом, а не сменой шрифта */
  --font: "Neucha", "Segoe Print", cursive;
  --display: var(--font);
  --hand: var(--font);
  --max: 1280px;
  /* мазки в референсе акварельные: размытый край и разная плотность,
     поэтому в SVG идёт feGaussianBlur, а не ровная геометрия */
  --brush-mark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 80' preserveAspectRatio='none'><defs><filter id='s' x='-8%25' y='-25%25' width='116%25' height='150%25'><feGaussianBlur stdDeviation='3.2'/></filter></defs><g filter='url(%23s)'><path d='M10 54C36 27 80 16 134 13c52-3 110 5 158 14-6 19-24 35-68 41-54 7-132 5-180-3-20-3-33-7-34-11z' fill='%23e6b862' opacity='.9'/><path d='M46 30c40-8 96-9 148-4 24 2 44 6 58 10-30 6-72 9-124 8-46-1-76-6-82-14z' fill='%23d9a544' opacity='.45'/></g></svg>");
  --brush-underline: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'><defs><filter id='u' x='-4%25' y='-40%25' width='108%25' height='180%25'><feGaussianBlur stdDeviation='0.9'/></filter></defs><path d='M5 8c44-5 96 3 142-2 48-5 98 3 148-2 5 0 8 3 7 6-1 3-5 4-10 4-46 0-90-5-136-1-44 4-96-2-140 2-5 0-9-1-9-3 0-2 2-4 4-4z' fill='%23e0ad4e' filter='url(%23u)'/></svg>");
  --brush-circle: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 76' preserveAspectRatio='none'><path d='M104 8C52 12 14 27 13 44c-1 20 56 27 122 25 62-2 112-13 113-30C249 22 210 9 152 6' fill='none' stroke='%23c05540' stroke-width='2.6' stroke-linecap='round' opacity='.92'/><path d='M152 6c-14-1-30-1-44 1' fill='none' stroke='%23c05540' stroke-width='2.2' stroke-linecap='round' opacity='.72'/></svg>");
  --brush-btn: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 60' preserveAspectRatio='none'><path d='M11 9c26-5 58-2 90-4 32-2 68 3 106 2 8 0 12 6 13 14 1 11 0 24-3 33-27 6-64 1-100 4-34 3-70-1-102 1-9 0-13-6-14-15-1-12 1-27 10-35z'/></svg>");
  --paper-patch: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 90' preserveAspectRatio='none'><defs><filter id='p' x='-10%25' y='-25%25' width='120%25' height='150%25'><feGaussianBlur stdDeviation='5'/></filter></defs><path d='M16 16c30-8 62-6 96-7 32-1 68 2 106 6 8 14 6 36 0 52-34 6-70 3-104 5-32 2-66 0-96-4-8-15-8-38-2-52z' fill='%23fdf8ec' filter='url(%23p)'/></svg>");
  --arrow-glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 16'><path d='M1.4 8.7c8.9-.6 17.8-1 26.7-1.2l-5.5-4.5c-.6-.5-.1-1.5.6-1.2 3.3 1.3 7.7 3.9 10.5 6.2.8.6.8 1.4 0 2-2.8 2.3-7.2 4.9-10.5 6.2-.7.3-1.2-.7-.6-1.2l5.5-4.5c-8.9-.2-17.8-.6-26.7-1.2-.9-.1-.9-2.5 0-2.6z'/></svg>");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* якорные ссылки не должны заводить заголовок под залипающую шапку */
  scroll-padding-top: 92px;
  /* кегль растёт вместе с окном: иначе на широком экране макет
     разъезжается, а текст остаётся мелким и теряется */
  font-size: clamp(17px, 0.42vw + 15.2px, 24px);
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 520px at 12% -6%, rgba(227, 180, 92, 0.16), transparent 62%),
    radial-gradient(760px 480px at 92% 22%, rgba(70, 112, 108, 0.09), transparent 65%),
    radial-gradient(700px 520px at 40% 108%, rgba(192, 85, 64, 0.07), transparent 62%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* зернистость бумаги */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.35'/></svg>");
}

a {
  color: inherit;
  text-decoration: none;
}

/* у гарнитуры одно начертание, поэтому вес заголовков синтезирует браузер —
   получается характерная маркерная жирность, как в референсе */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

/* синтетического жира браузера мало: в референсе заголовки написаны
   толстым маркером, поэтому наращиваем сами штрихи. paint-order держит
   обводку под заливкой, иначе просветы в «о», «а», «е» затекают. */
h1,
h2,
h3,
.brand,
.hero-sub,
.about-lead,
.about-facts b,
.stage-price strong {
  paint-order: stroke fill;
}

h1,
h2,
.brand {
  -webkit-text-stroke: 0.05em currentColor;
}

.hero-sub,
.about-lead,
.stage-price strong {
  -webkit-text-stroke: 0.038em currentColor;
}

h3,
.about-facts b {
  -webkit-text-stroke: 0.028em currentColor;
}

.hand {
  font-family: var(--hand);
  font-size: 1rem;
  line-height: 1.42;
  color: var(--ink-2);
}

/* рисованная стрелка вместо символа «→»: в гарнитуре его нет,
   и он подтягивался системным шрифтом, выбиваясь из набора */
.arrow {
  display: inline-block;
  flex: none;
  width: 1.5em;
  height: 0.68em;
  background-color: currentColor;
  -webkit-mask-image: var(--arrow-glyph);
  mask-image: var(--arrow-glyph);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: transform 0.2s ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* нарисованные от руки стрелки-приписки */
.scribble-arrow {
  width: 74px;
  height: 22px;
  color: var(--muted);
}

.scribble-down {
  width: 38px;
  height: 44px;
}

/* ── шапка ──────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  /* логотип должен стоять на той же линии, что заголовок первого экрана */
  padding: 12px max(24px, (100% - var(--max)) / 2);
  background: rgba(245, 236, 221, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.3rem;
  letter-spacing: 0.05em;
}

.dot {
  color: var(--ochre-deep);
}

.nav {
  display: flex;
  gap: 30px;
  margin-right: auto;
  margin-left: 14px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.nav a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav a:hover {
  border-color: var(--ochre-deep);
}

.header-note {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.24;
  color: var(--muted);
  transform: rotate(-1.4deg);
}

/* ── кнопки ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 22px 20px 24px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px) rotate(-0.4deg);
}

.btn-ochre {
  flex: none;
  background: var(--ochre);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-ochre:hover {
  box-shadow: 5px 5px 0 var(--ink);
}

/* тёмная кнопка в референсе — не аккуратная пилюля, а мазок кистью,
   и он заметно шире надписи */
.btn-ink {
  position: relative;
  z-index: 0;
  min-height: 54px;
  border: 0;
  border-radius: 0;
  padding: 0 44px;
  background: none;
  color: var(--paper);
  -webkit-text-stroke: 0.03em currentColor;
  paint-order: stroke fill;
}

.btn-ink::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-color: var(--ink);
  -webkit-mask-image: var(--brush-btn);
  mask-image: var(--brush-btn);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.btn-plain {
  background: transparent;
  border-style: dashed;
}

.btn-big {
  min-height: 54px;
  padding: 0 30px;
  font-size: 1.05rem;
}

/* ── первый экран ───────────────────────────────────────── */

/* первый экран полноширинный: рисунок, как в референсе, занимает почти
   всю правую половину и уходит за правый и верхний край, а текст стоит
   по общей левой линии страницы */
.hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  padding-left: max(24px, (100% - var(--max)) / 2);
  /* высота подобрана так, чтобы рисунок вставал в кадр почти без обрезки */
  min-height: clamp(500px, 68vh, 660px);
  display: grid;
  /* первая колонка — текст (заголовок обязан ложиться в две строки),
     вторая — рукописная приписка, третью занимает рисунок */
  grid-template-columns: minmax(0, 524px) clamp(146px, 11.5vw, 170px) minmax(0, 1fr);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  padding: clamp(26px, 4vh, 46px) 0;
}

.hero h1 {
  position: relative;
  z-index: 0;
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: 0.012em;
}

/* вторая строка заголовка крупнее первой — так в референсе */
.mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin-top: 0.04em;
  font-size: 1.52em;
  white-space: nowrap;
}

/* мазок шире слова и выходит за него справа, как в референсе */
.mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.2em;
  right: -0.42em;
  top: 0.16em;
  bottom: -0.04em;
  background-image: var(--brush-mark);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.82;
  transform: rotate(-1.1deg);
}

.hero-sub {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(1.22rem, 2.4vw, 1.74rem);
  font-weight: 700;
}

/* строки идут плотно: в референсе это один компактный блок, а не список */
.not-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.38;
}

.circled-line {
  margin: 0 0 26px;
}

.circled {
  position: relative;
  display: inline-block;
  padding: 2px 4px;
  font-size: 1.16rem;
  color: var(--ink);
}

.circled::before {
  content: "";
  position: absolute;
  inset: -0.5em -0.95em;
  background-image: var(--brush-circle);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: rotate(-1.6deg);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* рисунок занимает всю правую часть экрана и уходит за правый и верхний
   край. Левый край растворяется в бумаге, поэтому текст и приписка спокойно
   лежат поверх него — ровно так собран референс. */
.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 36%;
  margin: 0;
}

.hero-art img,
.idea-art img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* рисунок растворяется в бумаге слева и снизу, а справа и сверху
   доходит до края страницы, как в референсе */
.hero-art img {
  height: 100%;
  object-fit: cover;
  object-position: 52% 46%;
  /* растяг короткий: дальше фигура и стол идут в полную силу, иначе от
     рисунка остаётся бледное пятно */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 91%, transparent 100%);
}

/* приписка стоит во второй колонке — поверх рисунка, поэтому под ней
   лежит мягкая размывка бумаги, иначе текст тонет в акварели */
.hero-aside::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -26px -30px -30px -34px;
  background: radial-gradient(
    62% 54% at 46% 48%,
    rgba(245, 236, 221, 0.92) 0%,
    rgba(245, 236, 221, 0.72) 46%,
    rgba(245, 236, 221, 0) 100%
  );
}

.hero-aside {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  /* держим приписку в верхней части, где у рисунка бледное небо */
  align-self: start;
  margin-top: clamp(30px, 5vh, 56px);
  display: grid;
  gap: 20px;
  font-family: var(--hand);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink-2);
  transform: rotate(-0.8deg);
}

.hero-aside-tail {
  position: relative;
}

.hero-aside-tail .scribble-down {
  position: absolute;
  top: 100%;
  left: 24%;
  margin-top: 2px;
}

/* ── секции ─────────────────────────────────────────────── */

.section {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: clamp(44px, 6.5vh, 70px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 26px;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.section-head h2 {
  position: relative;
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  letter-spacing: 0.012em;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -8px;
  bottom: -9px;
  height: 10px;
  background-image: var(--brush-underline);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.75;
}

/* акварельное пятно за заголовком «Последние идеи» */
.section-head-blot h2 {
  z-index: 0;
}

/* в референсе заголовок лежит на мягкой размывке, а не на плашке —
   поэтому ни резкого края, ни тени */
.section-head-blot h2::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -34% -11% -38% -9%;
  background-image: var(--paper-patch);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: rotate(-0.9deg);
}

.note-inline {
  flex: 1 1 220px;
  min-width: 200px;
  margin: 0;
  transform: rotate(-0.6deg);
  color: var(--teal);
}

/* ── о нас ──────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

/* лид и список — одна колонка, длинный текст занимает вторую на всю
   высоту: иначе под коротким лидом зияет пустая полоса */
.about-lead {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.14rem, 1.9vw, 1.4rem);
  font-weight: 700;
  line-height: 1.34;
}

.about-text {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--ink-2);
}

.about-facts {
  grid-column: 1;
  grid-row: 2;
  list-style: none;
  /* отступ сверху уже даёт row-gap сетки, свой добавляем минимальный —
     иначе между лидом и списком провисает пустая полоса */
  margin: 4px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.about-facts li {
  padding: 9px 0;
  border-top: 1px dashed var(--line-soft);
}

.about-facts b {
  margin-right: 6px;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
}

/* ── что мы придумываем ─────────────────────────────────── */

.crafts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.craft {
  transition: transform 0.2s ease;
}

.craft:hover {
  transform: translateY(-4px) rotate(-0.5deg);
}

/* в референсе иконки крупные — почти на всю ширину колонки */
.craft img {
  display: block;
  width: clamp(96px, 10.6vw, 148px);
  height: auto;
  margin: 0 0 14px -10px;
  mix-blend-mode: multiply;
  /* у сгенерированных иконок своя бумага по краям — иначе она
     проступает светлым квадратом поверх фона страницы */
  -webkit-mask-image: radial-gradient(closest-side at 50% 48%, #000 60%, transparent 92%);
  mask-image: radial-gradient(closest-side at 50% 48%, #000 60%, transparent 92%);
}

.craft h3 {
  margin: 0 0 9px;
  font-size: 1.07rem;
}

.craft p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.52;
}

/* ── как это работает ───────────────────────────────────── */

.stages {
  border-top: 1.5px dashed var(--line);
}

.stage {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1.5px dashed var(--line);
}

.stage-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-num {
  font-family: var(--hand);
  font-size: 1.02rem;
  color: var(--ochre-deep);
}

.stage-price strong {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
}

.stage-hand {
  font-family: var(--hand);
  font-size: 0.95rem;
  color: var(--teal);
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

.stage-text h3 {
  margin: 0 0 5px;
  font-size: 1.18rem;
}

.stage-meta {
  margin: 0 0 8px;
  color: var(--ochre-deep);
  font-size: 0.95rem;
}

.stage-text > p:last-child {
  margin: 0;
  max-width: 66ch;
  color: var(--ink-2);
}

/* ── последние идеи ─────────────────────────────────────── */

/* карточки тянутся на одну высоту, чтобы «Подробнее» встали в одну линию */
.ideas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}

.idea {
  display: flex;
  flex-direction: column;
}

.idea-art {
  margin: 0 0 12px;
  transform: rotate(-0.6deg);
  transition: transform 0.25s ease;
}

.idea:nth-child(even) .idea-art {
  transform: rotate(0.6deg);
}

.idea-art:hover {
  transform: rotate(0deg) scale(1.02);
}

.idea h3 {
  margin: 0 0 9px;
  font-size: 1.14rem;
}

.idea > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.idea-more p {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.55;
}

.idea-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 14px 0 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ochre-deep);
  cursor: pointer;
}

.idea-toggle .arrow {
  font-size: 1.5em;
  transition: transform 0.2s ease;
}

.idea-toggle:hover .arrow {
  transform: translateX(5px);
}

.idea-toggle[aria-expanded="true"] .arrow {
  transform: rotate(90deg);
}

/* ── призыв и форма ─────────────────────────────────────── */

.cta {
  position: relative;
  margin-top: clamp(20px, 5vh, 60px);
  padding: clamp(54px, 9vh, 104px) 0;
  /* в референсе полоса под формой холоднее и плотнее нашей акварели.
     Добираем разницу заливкой поверх картинки: если то же самое выжать
     из самого файла, у него вылезает зерно бумаги. */
  background-image: linear-gradient(rgba(122, 130, 141, 0.14), rgba(122, 130, 141, 0.14)),
    url("assets/footer-horizon.jpg");
  background-size: cover, cover;
  background-position: center, center 66%;
  background-repeat: no-repeat, no-repeat;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 90px;
  pointer-events: none;
}

.cta::before {
  top: 0;
  background: linear-gradient(to bottom, var(--paper), rgba(245, 236, 221, 0));
}

.cta::after {
  bottom: 0;
  background: linear-gradient(to top, var(--paper), rgba(245, 236, 221, 0));
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.cta-copy {
  text-align: right;
}

.cta h2 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.7vw, 2.8rem);
}

.cta-sub {
  margin: 0;
  color: var(--ink-2);
}

.lead-form {
  padding: clamp(22px, 3vw, 32px);
  border: 1.5px solid var(--line);
  border-radius: 22px 14px 24px 16px;
  background: rgba(255, 252, 244, 0.66);
  backdrop-filter: blur(3px);
  box-shadow: 5px 5px 0 rgba(44, 36, 25, 0.08);
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 13px 9px 14px 8px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ochre-deep);
  box-shadow: 0 0 0 3px rgba(227, 180, 92, 0.28);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--red);
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.form-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-family: var(--hand);
  font-size: 1rem;
  color: var(--teal);
}

.form-status.is-error {
  color: var(--red);
}

/* ── подвал ─────────────────────────────────────────────── */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 24px 0 44px;
  border-top: 1.5px dashed var(--line);
}

/* в референсе логотип и подпись стоят в одну строку */
.footer-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.site-footer .hand {
  margin: 0;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: block;
  color: var(--ink-2);
  transition: color 0.18s ease, transform 0.18s ease;
}

.socials a:hover {
  color: var(--ochre-deep);
  transform: translateY(-2px);
}

.socials svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* ── появление ──────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── адаптив ────────────────────────────────────────────── */

/* места в просвете уже не хватает — приписка встаёт над рисунком */
/* на узком мониторе текстовая колонка сужается, а рисунок отъезжает
   правее — иначе строки заголовка ложатся на плотную акварель */
@media (max-width: 1220px) {
  .hero {
    grid-template-columns: minmax(0, 468px) clamp(130px, 13vw, 156px) minmax(0, 1fr);
  }

  .hero-art {
    inset: 0 0 0 46%;
  }
}

@media (max-width: 1180px) {
  .header-note {
    display: none;
  }
}

@media (max-width: 1000px) {
  /* в одну колонку рисунок встаёт обычным блоком под текстом,
     а не вылетает за край */
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero-copy {
    grid-column: 1;
    padding-bottom: 4px;
  }

  .hero-art {
    position: static;
    grid-column: 1;
    order: 3;
  }

  .hero-art img {
    height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  }

  .hero-aside {
    grid-column: 1;
    grid-row: auto;
    order: 2;
    margin: 0 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    transform: none;
  }

  /* подложка нужна только когда приписка лежит на рисунке */
  .hero-aside::before {
    display: none;
  }

  .hero-aside-tail .scribble-down {
    display: none;
  }

  .about,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  /* в одну колонку явная расстановка «О нас» только мешает */
  .about-lead,
  .about-text,
  .about-facts {
    grid-column: 1;
    grid-row: auto;
  }

  .about-text {
    margin: 18px 0 0;
  }

  .cta-copy {
    text-align: center;
  }

  .crafts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ideas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .brand {
    margin-right: auto;
  }

  .crafts,
  .ideas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stage-price {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* на телефоне из широкой панорамы в кадр попадает узкая полоса, и горы
     за полупрозрачной карточкой превращаются в шум. Сдвигаем кадр к фигуре
     на скале и осветляем фон: на маленьком экране важнее читаемая форма */
  .cta {
    background-image: linear-gradient(rgba(243, 236, 223, 0.4), rgba(243, 236, 223, 0.4)),
      url("assets/footer-horizon.jpg");
    background-position: center, 12% center;
  }
}

@media (max-width: 520px) {
  /* карточки идей — с картинкой и длинным текстом, им нужна вся ширина.
     Иконки «Что мы придумываем» держим в две колонки: в одну секция
     растягивается на пол-экрана пустоты вокруг мелких рисунков */
  .hero-aside,
  .ideas {
    grid-template-columns: 1fr;
  }

  .craft img {
    width: clamp(76px, 34vw, 104px);
    margin-bottom: 10px;
  }
}

@media (max-width: 360px) {
  .crafts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
