/* ==========================================================================
   Александра Космакова — аналитик
   Шрифты: Onest (текст), Caveat (рукописные подписи) — лежат локально
   ========================================================================== */

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-cyrillic.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-tint: #f9f8ff;
  --ink: #1d1846;
  --text: #4a4768;
  --muted: #7d7a98;
  --line: #ebe8f6;

  --lav-50: #f7f5ff;
  --lav-100: #efebff;
  --lav-200: #e2dcff;
  --lav-300: #cdc3fb;
  --lav-400: #aa9cf3;
  --lav-600: #6c5ce7;
  --lav-700: #5a4ad0;

  --yellow: #ffe07a;
  --yellow-strong: #ffd142;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(29 24 70 / 0.04), 0 8px 24px -16px rgb(29 24 70 / 0.14);
  --shadow: 0 2px 4px rgb(29 24 70 / 0.03), 0 22px 44px -26px rgb(29 24 70 / 0.22);

  --page: min(100% - 2.5rem, 76rem);
  --header-h: 4.75rem;
  --wave-h: clamp(2.6rem, 6vw, 5.5rem);
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);

  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}

/* ---------- База ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--lav-600);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection { background: var(--yellow); color: var(--ink); }

.page { width: var(--page); margin-inline: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  transition: top 0.2s;
}
.skip:focus { top: 1rem; }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 14px;
  background: var(--lav-100);
  color: var(--lav-600);
}
.icon-box .icon { width: 1.35rem; height: 1.35rem; }
.icon-box--lg { width: 3.2rem; height: 3.2rem; border-radius: 16px; }
.icon-box--lg .icon { width: 1.5rem; height: 1.5rem; }
.icon-box--white { background: #fff; box-shadow: 0 6px 16px -10px rgb(90 74 208 / 0.45); }

/* ---------- Типографика ---------- */

.h1 {
  font-size: clamp(3rem, 6.2vw, 5.3rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.048em;
  color: var(--ink);
}
.h1 .dot { color: var(--lav-600); }

.h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.042em;
  color: var(--ink);
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  max-width: 36rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lav-700);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow-strong);
}

.note {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
  line-height: 1.12;
  color: var(--lav-700);
  rotate: -5deg;
}
.note > span { display: block; white-space: nowrap; }
.note .indent { padding-left: 1.4em; }
.note--stairs > span:nth-child(2) { padding-left: 0.9em; }
.note--stairs > span:nth-child(3) { padding-left: 1.8em; }

.heart {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin-left: 0.22em;
  vertical-align: -0.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marker {
  background: linear-gradient(transparent 56%, var(--yellow) 56%, var(--yellow) 92%, transparent 92%);
  padding-inline: 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.scribble {
  padding-bottom: 0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C45 4 82 12 122 7s58-3 75 1' fill='none' stroke='%23FFD142' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 0.42em no-repeat;
}

.sparks { color: var(--yellow-strong); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 14px 28px -18px rgb(214 150 0 / 0.8);
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--yellow-strong);
  box-shadow: 0 18px 32px -18px rgb(214 150 0 / 0.95);
}
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15rem; height: 1.15rem; stroke-width: 2; }
.btn--sm { min-height: 2.9rem; padding: 0.6rem 1.35rem; font-size: 0.95rem; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgb(29 24 70 / 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-right: auto;
}
.brand__mark {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.07em;
  color: var(--ink);
}
.brand__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.brand__role {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--muted);
}

.nav__list { display: flex; gap: 2.2rem; }
.nav__list a {
  position: relative;
  display: block;
  padding-block: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05rem;
  height: 2px;
  border-radius: 2px;
  background: var(--lav-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__list a:hover,
.nav__list a[aria-current="true"] { color: var(--ink); }
.nav__list a[aria-current="true"]::after { transform: scaleX(1); }

.nav__cta { display: none; }

.header__toggle {
  display: none;
  position: relative;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--lav-100);
}
.header__toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.header__toggle span:first-child { transform: translate(-50%, -4px); }
.header__toggle span:last-child { transform: translate(-50%, 3px); }
.header.is-open .header__toggle span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.header.is-open .header__toggle span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Декор ---------- */

.glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(220 212 255 / 0.55), rgb(220 212 255 / 0));
}
.glow--hero { width: 46rem; height: 46rem; right: -14rem; top: -12rem; }
.glow--tr { width: 40rem; height: 40rem; right: -12rem; top: -14rem; }
.glow--tl { width: 36rem; height: 36rem; left: -16rem; top: 10%; }
.glow--contacts { width: 44rem; height: 44rem; right: -10rem; top: -6rem; background: radial-gradient(closest-side, rgb(255 236 170 / 0.35), rgb(220 212 255 / 0.3) 55%, rgb(220 212 255 / 0)); }

/* ---------- 01 — Обо мне ---------- */

.hero {
  position: relative;
  padding-top: clamp(1.5rem, 3.5vw, 3rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  overflow: clip;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 2rem;
}

.hero__text { padding-bottom: 3.5rem; }

.hero__lead {
  margin-top: 1.7rem;
  max-width: 30rem;
  font-size: clamp(1.3rem, 1.95vw, 1.62rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.hero__desc {
  margin-top: 1.1rem;
  max-width: 31rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1.25rem;
  margin-top: 2.5rem;
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 1.7rem;
  border-left: 1px solid var(--lav-200);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num {
  font-size: clamp(2.1rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--lav-600);
}
.stat__num small {
  font-size: 0.56em;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat__strong {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.stat__label {
  margin-top: 0.4rem;
  font-size: 0.98rem;
  line-height: 1.35;
}
.stat--text .stat__label { margin-top: 0.1rem; }

/* фото с пятнами и рукописной подписью */
.hero__art {
  position: relative;
  width: 100%;
  max-width: 36rem;
  justify-self: end;
  aspect-ratio: 1124 / 1280;
}
.hero__halo {
  position: absolute;
  inset: 2% -8% 20% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(232 227 255 / 0.9), rgb(232 227 255 / 0));
}
.hero__blob {
  position: absolute;
  background: var(--lav-200);
}
.hero__blob--l {
  left: -8%;
  top: 46.5%;
  width: 31%;
  height: 26%;
  border-radius: 62% 38% 44% 56% / 55% 46% 54% 45%;
}
.hero__blob--r {
  left: 74%;
  top: 50%;
  width: 40%;
  height: 27%;
  border-radius: 46% 54% 38% 62% / 58% 40% 60% 42%;
}
.hero__loop {
  position: absolute;
  left: 46%;
  top: 31%;
  width: 62%;
  height: auto;
  color: var(--lav-300);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, rgb(0 0 0 / 0) 97%);
  mask-image: linear-gradient(to bottom, #000 68%, rgb(0 0 0 / 0) 97%);
}
.hero__note {
  position: absolute;
  top: 5%;
  right: -3%;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}
.hero__arrow {
  position: absolute;
  top: 20%;
  right: 19%;
  width: 15%;
  color: var(--lav-600);
}
.hero__sparks {
  position: absolute;
  top: 20.5%;
  right: 34%;
  width: 7.5%;
}

/* с чем работаю */
.skills {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
}
.skills .eyebrow { margin-bottom: 1.25rem; }
.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.skills__grid > li { display: flex; }

.card {
  width: 100%;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--lav-100);
  border-radius: var(--radius);
  background: rgb(247 245 255 / 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background-color 0.35s, border-color 0.35s;
}
.card:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: var(--lav-200);
  box-shadow: var(--shadow);
}

.skill__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.skill__title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.tags {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.tags li { display: inline; }
.tags li + li::before {
  content: " · ";
  color: var(--lav-400);
}

.skills__cta {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.skills__sparks {
  width: 1.9rem;
  margin-left: 0.5rem;
  align-self: center;
}

/* ---------- Секции ---------- */

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  overflow: clip;
}
.section > .page { position: relative; z-index: 1; }
.section--tint { background: var(--bg-tint); }

/* рукописная подпись висит в правом нижнем углу шапки раздела
   и не отнимает ширину у заголовка */
.sec-head {
  position: relative;
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
}
.sec-head .h2 { margin-top: 1.1rem; }
.sec-head .lead { margin-top: 1.2rem; }
.sec-head__note {
  position: absolute;
  right: 1rem;
  bottom: 0.4rem;
}

/* ---------- 02 — Проекты ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: 1.5rem;
}

.case {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: clamp(1.4rem, 2.6vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

@supports not (grid-template-rows: subgrid) {
  .case { display: flex; flex-direction: column; }
  .case .result { margin-top: auto; }
}

.case__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.num {
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem;
  height: 2.1rem;
  padding-inline: 0.55rem;
  border-radius: 10px;
  background: var(--lav-100);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--lav-700);
}

.case__tags {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lav-700);
}

.case__title {
  margin-top: 1.15rem;
  margin-bottom: 1.8rem;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.032em;
  color: var(--ink);
  text-wrap: balance;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.9rem;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  column-gap: 1.05rem;
}
.step .icon-box { width: 2.6rem; height: 2.6rem; border-radius: 12px; }
.step .icon-box .icon { width: 1.2rem; height: 1.2rem; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 3.1rem;
  bottom: -1rem;
  border-left: 1.5px dashed var(--lav-300);
}
.step__body { padding-top: 0.45rem; }
.step h4 {
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
}
.step p { font-size: 0.98rem; line-height: 1.6; }
.step h4 + p { margin-top: 0.4rem; }
.step p + p { margin-top: 0.6rem; }

.result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.15rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--lav-200);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--lav-100), var(--lav-50) 80%);
}
.result__icon { background: #fff; }
.result__label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lav-700);
}
.result__title {
  margin-top: 0.3rem;
  font-size: clamp(1.15rem, 1.6vw, 1.32rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.result__big {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.55rem;
  margin-top: 0.15rem;
  font-size: clamp(1.75rem, 2.9vw, 2.35rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.result__from { color: var(--lav-600); }
.result__arrow { width: 1.6rem; height: 1.6rem; stroke-width: 2.2; color: var(--lav-400); }
.result__text { margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.55; }

.more {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2.25rem;
  padding-right: 1rem;
}
.more__arrow { width: 3.6rem; margin-top: -0.9rem; color: var(--lav-600); }

/* ---------- 03 — Подход ---------- */

.phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
.phase__top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}
.phase__line {
  position: relative;
  flex: 1;
  height: 1.5px;
  margin-right: -1rem;
  background: linear-gradient(90deg, var(--lav-300), var(--lav-200));
}
.phase__line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 1.5px solid var(--lav-400);
  border-right: 1.5px solid var(--lav-400);
  transform: translateY(-50%) rotate(45deg);
}
.phase:last-child .phase__line { visibility: hidden; }

.phase__title {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.phase__q {
  margin-top: 0.45rem;
  font-weight: 550;
  line-height: 1.4;
  color: var(--ink);
}
.phase__text {
  margin-top: 0.75rem;
  font-size: 0.96rem;
  line-height: 1.6;
}

.flowbox {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--lav-100);
  border-radius: var(--radius-lg);
  background: var(--lav-50);
}
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.45rem;
}
.flow li { display: flex; align-items: center; gap: 0.45rem; }
.flow__chip {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--lav-200);
  border-radius: 999px;
  background: #fff;
  font-size: 0.96rem;
  font-weight: 550;
  color: var(--ink);
  white-space: nowrap;
}
.flow__chip--accent { border-color: var(--yellow); background: var(--yellow); }
.flow__arrow { width: 1rem; height: 1rem; stroke-width: 2; color: var(--lav-400); }
.flowbox__text {
  padding-left: 2.5rem;
  border-left: 1.5px solid var(--lav-200);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}

.focus {
  position: relative;
  margin-top: 1.5rem;
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  border: 1px solid var(--lav-100);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--lav-100), var(--lav-50) 70%);
}
.focus__title {
  max-width: 24rem;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.032em;
  color: var(--ink);
}
.focus__note {
  position: absolute;
  top: clamp(1.4rem, 3vw, 2.2rem);
  right: clamp(1.6rem, 4vw, 3.2rem);
}
.focus__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.9rem;
}
.focus__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.65);
}
.focus__item h4 {
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
}
.focus__item p { margin-top: 0.25rem; font-size: 0.96rem; line-height: 1.5; }

/* ---------- 04 — Контакты ---------- */

.contacts { padding-bottom: clamp(10rem, 14vw, 12rem); }

.contacts__body { max-width: 52rem; }
.contacts__text { max-width: 40rem; font-size: 1.1rem; }
.contacts__text p + p { margin-top: 1rem; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.contact-list > li { display: flex; }
.contact {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
  padding: 1.35rem 1.4rem 1.4rem;
  border: 1px solid var(--lav-100);
  border-radius: var(--radius);
  background: var(--lav-50);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background-color 0.35s, border-color 0.35s;
}
.contact:hover {
  transform: translateY(-4px);
  border-color: var(--lav-200);
  background: #fff;
  box-shadow: var(--shadow);
}
.contact__title {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
}
.contact__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.94rem;
  color: var(--muted);
}
.contact__arrow {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 2.2;
  color: var(--lav-600);
  transition: transform 0.3s var(--ease);
}
.contact:hover .contact__arrow--ur { transform: translate(2px, -2px); }
.contact:hover .contact__arrow--down { transform: translateY(3px); }

.quote {
  max-width: 30rem;
  margin-top: 2.75rem;
  padding: 0.25rem 0 0.25rem 1.4rem;
  border-left: 3px solid var(--lav-400);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
}

/* пасхалка с котиком */
/* котик сидит за «полкой» волны подвала: у волны ровный участок справа
   на высоте 76/90 от ее высоты, срез картинки прячется под этот край */
.hideout {
  position: absolute;
  right: max(1.25rem, calc((100% - 76rem) / 2 + 4rem));
  bottom: calc(var(--wave-h) * 0.83 - 0.5rem);
  z-index: 2;
  width: clamp(7.5rem, 11vw, 9.5rem);
}
.hideout__note {
  position: absolute;
  right: calc(100% + 3.4rem);
  bottom: 3.6rem;
  font-size: clamp(1.3rem, 1.7vw, 1.6rem);
  rotate: -4deg;
}
.hideout__arrow {
  position: absolute;
  right: calc(100% - 0.2rem);
  bottom: 1.3rem;
  width: 3.4rem;
  color: var(--lav-600);
}
.cat {
  display: block;
  width: 100%;
  rotate: -7deg;
  transform-origin: 50% 100%;
  transition: translate 0.45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cat img { width: 100%; height: auto; }
.cat:hover { translate: 0 -6%; }
.cat.is-found { animation: cat-hop 0.7s var(--ease); }
@keyframes cat-hop {
  0%, 100% { translate: 0 0; }
  40% { translate: 0 -16%; }
}

.love {
  position: absolute;
  left: 50%;
  bottom: 45%;
  z-index: 3;
  color: var(--lav-600);
  font-size: 1.35rem;
  pointer-events: none;
  animation: love-up 1.3s ease-out both;
}
.love:nth-child(odd) { color: var(--yellow-strong); }
.love .heart { margin: 0; stroke-width: 2.6; }
@keyframes love-up {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.4) rotate(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), -7rem) scale(1.1) rotate(var(--r)); }
}

/* ---------- Подвал ---------- */

.footer {
  position: relative;
  z-index: 5;
  padding-block: 1.25rem 2.25rem;
  color: var(--lav-50);
  background: var(--lav-50);
}
.footer__wave {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: var(--wave-h);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer__brand .brand__mark { font-size: 1.35rem; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.7rem; }
.footer__nav a {
  font-size: 0.92rem;
  color: var(--text);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--ink); }

/* ---------- Появление при прокрутке ---------- */

.js [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

.js .flow li {
  opacity: 0;
  translate: -8px 0;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease);
  transition-delay: calc(250ms + var(--i, 0) * 120ms);
}
.js .is-in .flow li { opacity: 1; translate: 0 0; }

.js .draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s ease 0.45s;
}
.js .draw path + path { transition-delay: 1.35s; transition-duration: 0.45s; }
.js .is-in .draw path,
.js .draw.is-in path { stroke-dashoffset: 0; }

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .header__inner { gap: 1.75rem; }
  .nav__list { gap: 1.6rem; }
  .skills__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase:nth-child(2) .phase__line { visibility: hidden; }
  .flowbox { grid-template-columns: 1fr; }
  .flowbox__text { padding-left: 0; padding-top: 1.4rem; border-left: 0; border-top: 1.5px solid var(--lav-200); }
}

@media (max-width: 900px) {
  :root { --header-h: 4.25rem; }

  .header__toggle { display: block; }
  .header__cta { display: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 40px -30px rgb(29 24 70 / 0.35);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity 0.25s, translate 0.25s var(--ease), visibility 0s 0.25s;
  }
  .header.is-open .nav {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition: opacity 0.25s, translate 0.25s var(--ease);
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    padding-block: 0.95rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="true"] { color: var(--lav-700); }
  .nav__cta { display: flex; width: 100%; margin-top: 1.25rem; }

  .hero__grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero__text { padding-bottom: 0; }
  /* фраза целиком над фото; стрелка и искорки ниже фразы, справа от головы */
  .hero__art { justify-self: center; max-width: 30rem; margin-top: 4.25rem; }
  .hero__note { top: -12%; right: -0.25rem; font-size: clamp(1.35rem, 3.8vw, 1.7rem); }
  .hero__arrow { top: 6.5%; right: 12%; width: 12%; }
  .hero__sparks { top: 5%; right: 31%; width: 6%; }
  .skills { margin-top: -1.5rem; }

  /* на узких экранах подпись встает под текст шапки, а не поверх него */
  .sec-head__note {
    position: static;
    width: fit-content;
    margin: 1.5rem 0.5rem 0 auto;
  }

  .cases { display: flex; flex-direction: column; gap: 1.25rem; }
  .case { display: flex; flex-direction: column; }
  .case .result { margin-top: auto; }

  .focus__note { position: static; margin-top: 1rem; justify-self: end; text-align: right; }
  .focus__grid { grid-template-columns: 1fr; }

  .contact-list { grid-template-columns: 1fr; }
  .contact { flex-direction: row; align-items: center; }
}

@media (max-width: 600px) {
  :root { --page: min(100% - 2rem, 76rem); }

  .brand__text { display: none; }
  .brand__mark { font-size: 1.85rem; }
  .brand::after {
    content: "Александра Космакова";
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
  }

  .glow--tl { display: none; }
  .h1 { font-size: clamp(2.35rem, 11.5vw, 3rem); }
  .hero__lead { font-size: clamp(1.12rem, 5.4vw, 1.3rem); }
  .stat { padding-inline: 1.5rem; }
  .stat--text { flex-basis: 100%; padding-left: 0; border-left: 0; }

  .skills__grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; gap: 2rem; }
  .phase__line { visibility: hidden; }

  .step { grid-template-columns: 2.3rem minmax(0, 1fr); column-gap: 0.85rem; }
  .step .icon-box { width: 2.3rem; height: 2.3rem; }
  .step:not(:last-child)::before { left: 1.15rem; top: 2.8rem; }
  .result { grid-template-columns: 1fr; }
  .result__icon { display: none; }

  .more { padding-right: 0; }
  .note .indent { padding-left: 0.8em; }

  .contacts { padding-bottom: 15rem; }
  .hideout { right: 1.5rem; width: 7.5rem; }
  .hideout__note { right: -0.25rem; bottom: 7.4rem; font-size: 1.35rem; text-align: right; }
  .hideout__arrow { right: 62%; bottom: 3.6rem; width: 2.6rem; rotate: 25deg; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

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