@font-face { font-family: "Source Code Pro"; src: url("fonts/SourceCodePro-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* ===== Шрифты ===== */
@font-face {
  font-family: "Arturito Slab";
  src: url("fonts/Arturito-Slab.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/SourceCodePro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/SourceCodePro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ===== Переменные ===== */
:root {
  /* Палитра */
  --bg: #0d0e0c;          /* фон тёмный */
  --surface: #1a1b19;     /* серые «экраны» под фото и видео */
  --text: #ecece9;        /* основной текст, нежно-белый */
  --muted: #8a8c86;       /* приглушённый текст */
  --accent: #24593f;      /* тёмно-зелёный: только кнопки и активные состояния */
  --line: color-mix(in srgb, var(--text) 14%, transparent);

  /* Размеры текста: 375 → 1440 → 2560 */
  --fs-h1: clamp(2.125rem, 1.578rem + 2.334vw, 5.3125rem);
  --fs-h2: clamp(1.625rem, 1.303rem + 1.373vw, 3.5rem);
  --fs-sub: clamp(1.25rem, 1.078rem + 0.732vw, 2.25rem);
  --fs-text: clamp(1rem, 0.957rem + 0.183vw, 1.25rem);
  --fs-small: clamp(0.875rem, 0.854rem + 0.0915vw, 1rem);

  /* Воздух */
  --gutter: clamp(1.25rem, 0.606rem + 2.746vw, 5rem);
  --section: clamp(3.75rem, 2.675rem + 4.577vw, 10rem);
  --pad: clamp(1.25rem, 1rem + 1vw, 2.5rem);
  --gap: clamp(1rem, 0.7rem + 1.2vw, 2rem);

  --side-w: clamp(17rem, 24vw, 30rem);
  --bar-h: 3.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --f-head: "Arturito Slab", Georgia, serif;
  --f-text: "Source Code Pro", ui-monospace, Consolas, monospace;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-text);
  font-size: var(--fs-text);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; border-radius: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--text); }

.h2 { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-h2); line-height: 1.1; }
.lead { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sub); line-height: 1.25; max-width: 32em; }
.text { max-width: 65ch; color: var(--muted); }

/* ===== Каркас: узкая левая колонка + широкая правая ===== */
.layout {
  max-width: 2400px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  align-items: start;
}

/* ===== Левая колонка (закреплена) ===== */
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  border-right: 1px solid var(--line);
  background: var(--bg);
  z-index: 10;
}
/* Полоса прокрутки страницы — активное состояние, поэтому акцентная */
.side::after {
  content: "";
  position: absolute;
  top: 0; right: -1px;
  width: 2px; height: 100%;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.side__bar { display: flex; align-items: center; justify-content: space-between; }
.side__name {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.35em 0.9em;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: var(--fs-sub);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Скобки вокруг имени раздвигаются при наведении */
.side__name::before, .side__name::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 0.45em;
  border: 1px solid currentColor;
  transition: width 0.5s var(--ease), transform 0.5s var(--ease);
}
.side__name::before { left: 0; border-right: 0; }
.side__name::after { right: 0; border-left: 0; }
.side__name:hover::before { transform: translateX(-0.3em); width: 0.7em; }
.side__name:hover::after { transform: translateX(0.3em); width: 0.7em; }
.side__toggle { display: none; }
.side__panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.side__role { margin-top: 0.75rem; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; max-width: 28ch; }

.nav { margin-block: auto; display: flex; flex-direction: column; }
.nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.nav__link:last-child { border-bottom: 1px solid var(--line); }
.nav__num { font-size: var(--fs-small); min-width: 4rem; white-space: nowrap; }
.nav__text {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: var(--fs-sub);
  line-height: 1.25;
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
/* Акцентный квадрат у активного пункта */
.nav__link::before {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 0.6rem; height: 0.6rem;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  transition: transform 0.4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover .nav__text, .nav__link.is-active .nav__text { transform: translateX(0.5rem); }
.nav__link.is-active::before { transform: translateY(-50%) scale(1); }

.side__foot { display: flex; flex-direction: column; gap: 0.25rem; font-size: var(--fs-small); }

/* Ссылка с линией, которая рисуется слева направо */
.ulink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding-block: 0.3rem;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.ulink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.1rem;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.ulink:hover::after { transform: scaleX(1); transform-origin: left; }
.arrow { width: 0.75em; height: 0.75em; transition: transform 0.35s var(--ease); }
a:hover > .arrow, .ulink:hover .arrow { transform: translate(2px, -2px); }

/* ===== Правая часть ===== */
.pane { min-width: 0; padding-inline: var(--gutter); }

.hero {
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--gutter);
  align-items: start;
}
.hero__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

/* Небольшое фото справа сверху, подписи прижаты вправо */
.hero__figure { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; width: clamp(7rem, 4.5rem + 9vw, 19rem); }
.hero__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s var(--ease);
}
.hero__figure:hover .hero__photo { filter: none; }
.hero__cap { display: flex; flex-direction: column; align-items: flex-end; font-size: var(--fs-small); line-height: 1.5; text-transform: uppercase; letter-spacing: 0.03em; text-align: right; }
.hero__cap > span { white-space: nowrap; }
.hero__cap > span:not(:first-child) { color: var(--muted); }
@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; row-gap: var(--pad); }
  .hero__figure { order: -1; justify-self: end; width: 7rem; }
}
.hero__title { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-h1); line-height: 1.08; text-transform: uppercase; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.hero__sub { margin-top: var(--pad); max-width: 52ch; color: var(--muted); }
.hero__actions { margin-top: var(--pad); display: flex; flex-wrap: wrap; gap: 1rem; }
.ph--hero { margin-top: var(--section); width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; }

/* Слова заголовка выезжают снизу */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.is-ready .word > span { transform: none; }

/* ===== Кнопки ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;   /* 44px: тонкая кнопка, но удобно нажимать на телефоне */
  padding: 0.35rem 1.5rem;
  background: var(--accent);
  color: var(--text);
  font-weight: 400;
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--accent);
  transition: color 0.4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn--ghost { background: transparent; border-color: var(--muted); }
.btn--ghost:hover { border-color: var(--text); }

/* Карточки с готовыми работами: кадр заполняет квадрат, фокус задаётся на каждой */

/* ===== Серые места под фото и видео ===== */
.ph {
  position: relative;
  background: var(--surface);
  overflow: hidden;
}
.ph > img, .ph > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph__tag { position: absolute; left: 1rem; top: 1rem; font-size: var(--fs-small); color: var(--muted); }
.ph--portrait { aspect-ratio: 4 / 5; width: 100%; }

/* ===== Секции ===== */
.section { padding-top: var(--section); scroll-margin-top: 0; }
.section--last { padding-bottom: clamp(1.25rem, 1rem + 1vw, 2.5rem); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: var(--pad);
  margin-bottom: calc(var(--pad) * 1.5);
  border-top: 1px solid var(--line);
}
.section__count { font-size: var(--fs-small); color: var(--muted); }

/* ===== Работы: меняется число колонок, а не размер карточек ===== */
.works { --cols: 1; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: calc(var(--gap) * 1.5) var(--gap); }
.card { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.card__media { aspect-ratio: 1; width: 100%; transition: background-color 0.5s var(--ease); }
/* Наведение: картинка просто чуть приближается */
.card:hover .card__title { transform: translateX(0.4rem); }
.card__cap { display: flex; flex-direction: column; gap: 0.15rem; }
.card__title { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-text); line-height: 1.3; transition: transform 0.4s var(--ease); }
.card__meta { font-size: var(--fs-small); color: var(--muted); }

/* Плитки крупные: два квадрата в ряд, три только на самых больших экранах */
@media (min-width: 768px)  { .works { --cols: 2; } }
@media (min-width: 2560px) { .works { --cols: 3; } }

/* ===== Обо мне ===== */
.about { display: grid; gap: calc(var(--pad) * 1.5); }
.about__body { display: flex; flex-direction: column; gap: var(--pad); }
@media (min-width: 1100px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
}
.skills { margin-top: var(--pad); }
.skills__row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease);
}
.skills__row:last-child { border-bottom: 1px solid var(--line); }
.skills__row::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0.6rem; height: 0.6rem;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  transition: transform 0.4s var(--ease);
}
.skills__row:hover { padding-left: 1.5rem; }
.skills__row:hover::before { transform: translateY(-50%) scale(1); }
.skills__name { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sub); line-height: 1.3; }
.skills__note { font-size: var(--fs-small); color: var(--muted); }

/* ===== Контакты ===== */
.contacts { display: flex; flex-direction: column; align-items: flex-start; gap: var(--pad); }
.contacts__lead { max-width: 40ch; color: var(--muted); }
.contacts__mail {
  position: relative;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: var(--fs-sub);
  line-height: 1.1;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contacts__mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: -0.1em;
  width: 100%; height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}
.contacts__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.contacts__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; }

.foot {
  margin-top: var(--section);
  padding-top: var(--pad);
  padding-bottom: var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ===== Появление при прокрутке ===== */
.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .ph--hero[data-reveal] { transition-delay: 0.3s; }

/* Левая колонка собирается при загрузке */
.js .side__bar, .js .side__role, .js .nav__link, .js .side__foot { opacity: 0; transform: translateX(-1rem); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js.is-ready .side__bar, .js.is-ready .side__role, .js.is-ready .nav__link, .js.is-ready .side__foot { opacity: 1; transform: none; }
.js.is-ready .side__role { transition-delay: 0.1s; }
.js.is-ready .nav__link:nth-child(1) { transition-delay: 0.2s; }
.js.is-ready .nav__link:nth-child(2) { transition-delay: 0.28s; }
.js.is-ready .nav__link:nth-child(3) { transition-delay: 0.36s; }
.js.is-ready .side__foot { transition-delay: 0.45s; }

/* ===== Планшет и телефон: колонка превращается в верхнюю панель ===== */
@media (max-width: 1023px) {
  .layout { display: block; }
  .side {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--bar-h);
    padding: 0 var(--gutter);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    transition: height 0.6s var(--ease);
  }
  .side.is-open { height: 100vh; height: 100dvh; overflow-y: auto; }
  .side::after { top: auto; bottom: -1px; right: auto; left: 0; width: 100%; height: 2px; transform-origin: left; transform: scaleX(var(--p, 0)); }
  .side__bar { min-height: var(--bar-h); flex: none; }
  .side__name { font-size: var(--fs-small); padding: 0.3em 0.8em; }
  .side__toggle {
    display: inline-flex; align-items: center;
    min-height: 2.75rem; padding-inline: 0.5rem; margin-right: -0.5rem;
    font-size: var(--fs-small);
  }
  .side__panel { padding-block: var(--pad) var(--gutter); gap: var(--pad); opacity: 0; transition: opacity 0.4s var(--ease); }
  .side.is-open .side__panel { opacity: 1; transition-delay: 0.2s; }
  .side__role { margin-top: 0; }
  .nav { margin-block: 0; }
  .nav__link { padding-block: 1rem; }
  .pane { padding-top: var(--bar-h); }
  .hero { padding-top: calc(var(--section) * 0.6); }
  .section { scroll-margin-top: var(--bar-h); }
}
@media (max-width: 767px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .contacts__row .btn { width: 100%; }
}

/* Невысокие экраны: левая колонка не должна обрезаться */
@media (min-width: 1024px) and (max-height: 640px) {
  .side { overflow-y: auto; }
}

/* ===== Без анимации, если пользователь так просит ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .ch, .js .wg { opacity: 1; filter: none; transform: none; }
  .js [data-reveal], .js .side__bar, .js .side__role, .js .nav__link, .js .side__foot, .word > span { opacity: 1; transform: none; }
}

/* ===== Квадратные скобки вокруг номеров и годов ===== */
.nav__num::before, .section__count::before, .card__year::before, .price__num::before { content: "[ "; }
.nav__num::after, .section__count::after, .card__year::after, .price__num::after { content: " ]"; }

/* ===== Кнопки в квадратных скобках ===== */
.btn__label { display: inline-flex; align-items: center; gap: 0.7em; transition: gap 0.45s var(--ease); }
.btn__label::before { content: "["; }
.btn__label::after { content: "]"; }
.btn:hover .btn__label { gap: 1.4em; }
.btn--wide { width: 100%; }

/* ===== Плитки: сайт целиком, внутри он сам медленно прокручивается ===== */
.card__media { aspect-ratio: 16 / 10; }
.site {
  object-position: 50% 0%;
  animation: site-scroll var(--dur, 50s) ease-in-out infinite alternate;
}
@keyframes site-scroll {
  0%, 6%    { object-position: 50% 0%; }
  94%, 100% { object-position: 50% 100%; }
}

/* ===== Подписи под плитками ===== */
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card__title { position: relative; padding-left: 0; transition: padding-left 0.45s var(--ease); }
.card__title::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 0.55rem; height: 0.55rem;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.card:hover .card__title { padding-left: 1.1rem; transform: none; }
.card:hover .card__title::before { transform: scale(1); }
.card__year { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.card__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 1rem 1.5rem;
  margin-top: 0.35rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.card__desc { color: var(--muted); }
.card__tags { text-align: right; overflow-wrap: anywhere; }
@media (max-width: 479px) {
  .card__info { grid-template-columns: 1fr; gap: 0.5rem; }
  .card__tags { text-align: left; }
}

/* ===== Цены ===== */
.price {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.5rem var(--pad);
  align-items: start;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem) 0.75rem;
  border-top: 1px solid var(--line);
  transition: opacity 0.45s var(--ease), background-color 0.45s var(--ease), padding-left 0.45s var(--ease);
}
.price:last-child { border-bottom: 1px solid var(--line); }
.price::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.price__num { font-size: var(--fs-small); color: var(--muted); padding-top: 0.5em; white-space: nowrap; }
.price__title { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-h2); line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
.price__desc { margin-top: 0.6rem; max-width: 48ch; color: var(--muted); font-size: var(--fs-small); }
.price__cost { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sub); line-height: 1.25; white-space: nowrap; padding-top: 0.2em; }
/* Наведение: строка подсвечивается, остальные притухают */
.price:hover { background: color-mix(in srgb, var(--text) 6%, transparent); padding-left: 1.5rem; }
.price:hover::before { transform: scaleY(1); }
.price:hover .price__num, .price:hover .price__desc { color: var(--text); }
.prices:has(.price:hover) .price:not(:hover) { opacity: 0.35; }
@media (max-width: 767px) {
  .price { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .price__cost { grid-column: 2; }
}

/* ===== Контакты и форма ===== */
.contacts { display: grid; gap: calc(var(--pad) * 1.5); }
@media (min-width: 1100px) {
  .contacts { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
}
.contacts__side { display: flex; flex-direction: column; gap: var(--pad); }
.contacts__links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }

.form { display: flex; flex-direction: column; }
.form__grid { display: grid; grid-template-columns: 1fr; gap: var(--pad); }
@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
.field { position: relative; display: flex; flex-direction: column; gap: 0.35rem; }
.field__label { font-size: var(--fs-small); }
.field__input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-text);
  outline: 0;
  transition: border-color 0.3s var(--ease);
}
.field__input::placeholder { color: var(--muted); opacity: 1; }
.field:hover .field__input { border-bottom-color: var(--muted); }
/* Линия фокуса — активное состояние, поэтому акцентная */
.field::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.75rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23ecece9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
}
.field__select option { background: var(--surface); color: var(--text); }
.field__area { resize: vertical; min-height: 7rem; }

.check { position: relative; display: flex; align-items: center; gap: 1rem; margin-top: var(--pad); cursor: pointer; font-size: var(--fs-small); }
.check__input { position: absolute; opacity: 0; width: 1.5rem; height: 1.5rem; margin: 0; }
.check__box {
  flex: none;
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--muted);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.check__box::after {
  content: "";
  width: 0.55rem; height: 0.55rem;
  background: var(--text);
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}
.check:hover .check__box { border-color: var(--text); }
.check__input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check__input:checked + .check__box::after { transform: scale(1); }
.check__input:focus-visible + .check__box { outline: 2px solid var(--text); outline-offset: 3px; }
.form .btn--wide { margin-top: var(--pad); }
.form__error { margin-top: var(--pad); font-size: var(--fs-small); }
.form__error::before { content: "[ ! ] "; color: var(--muted); }

/* ===== Курсор: пиксельная стрелка (только для мыши); на ссылках и кнопках пиксельная рука. Один пиксель = 2px ===== */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor {
  position: fixed;
  left: 0; top: 0;
  width: 20px; height: 28px;
  margin: -2px 0 0 -2px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%2014%22%20shape-rendering%3D%22crispEdges%22%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3C%2Fsvg%3E") 0 0 / 100% 100% no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 26px; height: 28px; margin: -2px 0 0 -11px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2013%2014%22%20shape-rendering%3D%22crispEdges%22%3E%3Crect%20x%3D%224%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ececE9%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%230d0d0d%22%2F%3E%3C%2Fsvg%3E"); }

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

/* ===== Текст: заголовки «печатаются», абзацы проявляются из дымки ===== */
.js .ch { opacity: 0; transition: opacity 0.05s linear; transition-delay: calc(var(--i) * 40ms); }
.js .is-in .ch, .js .ch.is-in { opacity: 1; }
.js .wg {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.4em);
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 28ms);
}
.js .is-in .wg { opacity: 1; filter: none; transform: none; }
/* Обычные абзацы тоже проявляются из дымки */
.js p[data-reveal], .js .skills[data-reveal] { filter: blur(6px); }
.js p[data-reveal].is-in, .js .skills[data-reveal].is-in { filter: none; }
.js p[data-reveal], .js .skills[data-reveal] { transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }

/* ===== Кнопки: высокие скобки, при наведении заливка строго от скобки до скобки ===== */
.btn, .btn--ghost {
  background: transparent;
  border: 0;
  overflow: visible;
  padding: 0.4rem 2.1rem;
  color: var(--text);
}
/* Заливка занимает ровно ту же область, что и скобки */
.btn::before {
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.btn:hover, .btn--ghost:hover { color: var(--text); border: 0; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn__label { gap: 0; display: inline; }
.btn:hover .btn__label { gap: 0; }
/* Сами скобки: вертикальная линия с короткими «усами» сверху и снизу */
.btn__label::before, .btn__label::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 0.65rem;
  border: 1px solid currentColor;
}
.btn__label::before { left: 0; border-right: 0; }
.btn__label::after { right: 0; border-left: 0; }

/* Фото на первом экране совсем небольшое */
.hero__figure { width: clamp(5rem, 3.5rem + 4.5vw, 10rem); }
.btn:active::before { transform: scaleX(1); }
@media (max-width: 767px) { .hero__figure { width: 5rem; } }

/* Логотип без скобок, меню без цифр, курсор на кнопках чуть меньше */
.side__name, .side__name:hover { padding: 0; }
.side__name::before, .side__name::after { display: none; }
.nav__link { gap: 0; }
@media (max-width: 1023px) { .side__name { padding: 0; } }

/* ===== Плитка работы: размытый сайт снизу, рамка с сайтом сверху ===== */
.card__media { aspect-ratio: 1; }
.card__media > .bg {
  object-position: 50% 0%;
  filter: blur(22px) brightness(0.45);
  transform: scale(1.25);
}
.frame {
  position: absolute;
  left: 50%; top: 50%;
  width: 82%;
  aspect-ratio: 16 / 10;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  z-index: 1;
  transition: border-color 0.5s var(--ease);
}
.card:hover .frame { border-color: color-mix(in srgb, var(--text) 55%, transparent); }
/* Сайт стоит наверху; при наведении сразу едет вниз, ровно и не быстро, при уходе мягко возвращается */
.frame .site {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  animation: none;
  transition: object-position 0.9s var(--ease);
}
.card:hover .frame .site, .card:focus-visible .frame .site {
  object-position: 50% 100%;
  transition: object-position var(--dur, 18s) linear;
}

/* =====================================================================
   Правки: единый шрифт у кнопок, скобки поменьше, фото и логотип слева,
   меню обычным шрифтом, ссылки-кнопки, номер раздела над словом, форма
   ===================================================================== */

/* --- Шрифт кнопок и подписи к фото: как в заголовках --- */
.btn, .hero__cap, .blink, .chip span {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.btn__label { font-size: var(--fs-small); }

/* Скобки у кнопок чуть меньше */
.btn__label::before, .btn__label::after { width: 0.45rem; }
@media (min-width: 1024px) { .btn { min-height: 2.5rem; } }

/* --- Логотип: фото + «Полина Гусева — / веб-дизайнер» --- */
.side__brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.side__photo {
  flex: none;
  width: 3.25rem; height: 3.25rem;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(1);
  transition: filter 0.5s var(--ease);
}
.side__brand:hover .side__photo { filter: none; }
.side__name, .side__name:hover {
  padding: 0;
  font-size: var(--fs-small);
  line-height: 1.3;
  letter-spacing: 0.05em;
}
.side__name span:last-child { color: var(--muted); }
.side__role { margin-top: var(--pad); }
@media (max-width: 1023px) {
  .side__photo { width: 2.25rem; height: 2.25rem; }
  .side__brand { gap: 0.6rem; }
  .side__name { font-size: 0.75rem; }
  .side__role { margin-top: 0; }
}

/* --- Меню слева: обычный шрифт, не крупный; квадрат строго по центру строки --- */
.nav__text {
  font-family: var(--f-text);
  font-weight: 400;
  font-size: var(--fs-text);
  line-height: 1.4;
}
.nav__link { padding: 0.75rem 0; }
.nav__link::before { top: 50%; translate: 0 -50%; transform: scale(0); }
.nav__link.is-active::before { transform: scale(1); }
.card__title::before { top: 50%; translate: 0 -50%; }
.skills__row::before { top: 50%; translate: 0 -50%; transform: scale(0); }
.skills__row:hover::before { transform: scale(1); }

/* --- Ссылки-кнопки в квадратных скобках (почта, Telegram, Instagram, «Наверх») --- */
.blink {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 2.5rem;
  padding: 0.3rem 1.5rem;
  font-size: var(--fs-small);
  line-height: 1.3;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center / 0% 100%;
  transition: background-size 0.5s var(--ease);
}
.blink--mail { text-transform: none; letter-spacing: 0.02em; }
.blink::before, .blink::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 0.45rem;
  border: 1px solid currentColor;
}
.blink::before { left: 0; border-right: 0; }
.blink::after { right: 0; border-left: 0; }
.blink:hover, .blink:focus-visible { background-size: 100% 100%; }
@media (max-width: 1023px) { .blink { min-height: 2.75rem; } }

.side__foot { align-items: flex-start; gap: 0.5rem; }

/* --- Номер раздела: маленький, прямо над словом, справа от него --- */
.section__head { justify-content: flex-start; align-items: flex-start; gap: 0.5rem; }
.section__count { margin-top: 0.1em; font-size: var(--fs-small); line-height: 1; }

/* --- Плитки: две колонки; на самых больших экранах четыре в один ряд --- */
@media (min-width: 2560px) { .works { --cols: 4; } }
.ph__free {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 700;
  font-size: var(--fs-sub); letter-spacing: 0.05em; text-transform: uppercase;
}
.ph__free span { position: relative; padding: 1rem 2.2rem; }
.ph__free span::before, .ph__free span::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 0.6rem;
  border: 1px solid currentColor;
  transition: width 0.5s var(--ease);
}
.ph__free span::before { left: 0; border-right: 0; }
.ph__free span::after { right: 0; border-left: 0; }
.card--free:hover .ph__free span::before, .card--free:hover .ph__free span::after { width: 1.2rem; }

/* --- Контакты: ссылки прижаты к нижнему краю формы --- */
@media (min-width: 1100px) { .contacts { align-items: stretch; } }
.contacts__side { justify-content: space-between; }
.contacts__links { margin-top: auto; align-items: flex-start; gap: 0.5rem; }

/* --- Форма: выбор типа проекта кнопками в скобках --- */
.types { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; min-width: 0; }
.types .field__label { padding: 0; width: 100%; margin-bottom: 0.25rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.3rem 1.5rem;
  font-size: var(--fs-small);
  line-height: 1.3;
  text-transform: uppercase;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center / 0% 100%;
  transition: background-size 0.5s var(--ease);
}
.chip span::before, .chip span::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 0.45rem;
  border: 1px solid currentColor;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
}
.chip span::before { left: 0; border-right: 0; }
.chip span::after { right: 0; border-left: 0; }
.chip:hover span, .chip input:checked + span { background-size: 100% 100%; }
.chip:hover span::before, .chip:hover span::after,
.chip input:checked + span::before, .chip input:checked + span::after { opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 3px; }
@media (max-width: 1023px) { .chip span { min-height: 2.75rem; } }

/* ===== Живой сайт в плитке: при наведении играет запись прокрутки ===== */
.card:hover .frame .site, .card:focus-visible .frame .site { object-position: 50% 0%; transition: none; }
.frame .live {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card.is-live .live { opacity: 1; }

/* ===== Футер с параллаксом: выезжает из-под страницы ===== */
.footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--section);
  margin-inline: calc(var(--gutter) * -1);
  background: var(--surface);
}
.footer__veil {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: var(--fv, 1);
  pointer-events: none;
  z-index: 2;
}
.footer__inner {
  padding: calc(var(--section) * 0.7) var(--gutter) var(--pad);
  transform: translate3d(0, calc((var(--fp, 0) - 1) * 40%), 0);
  will-change: transform;
}
.footer__cols { display: grid; grid-template-columns: 1fr; gap: calc(var(--pad) * 1.5); }
@media (min-width: 768px) { .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); } }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer__label { margin-bottom: 0.75rem; font-size: var(--fs-small); color: var(--muted); }
.footer__label::before { content: "[ "; }
.footer__label::after { content: " ]"; }
.footer__note { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--muted); }
.flink {
  position: relative;
  padding: 0.2rem 0 0.2rem 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: var(--fs-sub);
  line-height: 1.3;
  overflow-wrap: anywhere;
  transition: padding-left 0.45s var(--ease);
}
.flink::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0.55rem; height: 0.55rem;
  background: var(--accent);
  translate: 0 -50%;
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.flink:hover { padding-left: 1.2rem; }
.flink:hover::before { transform: scale(1); }
.flink--mail { font-size: var(--fs-text); }
.footer__big {
  margin-top: var(--section);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2rem, 0.5rem + 7.4vw, 13rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.footer__bottom {
  margin-top: var(--pad);
  padding-top: var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--fs-small);
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) { .footer__inner { transform: none; } .footer__veil { opacity: 0; } }

/* ===== Ссылки-кнопки и кнопки: один шрифт и размер, скобки меньше, чуть ниже ===== */
.btn__label, .blink, .chip span { font-size: var(--fs-small); letter-spacing: 0.05em; }
.blink--mail { letter-spacing: 0.05em; }
.btn__label::before, .btn__label::after,
.blink::before, .blink::after,
.chip span::before, .chip span::after { width: 0.35rem; }
@media (min-width: 1024px) {
  .btn { min-height: 2.25rem; padding: 0.2rem 1.4rem; }
  .blink, .chip span { min-height: 2.25rem; padding: 0.2rem 1.4rem; }
}
.btn, .btn--ghost { padding-inline: 1.4rem; }
.blink, .chip span { padding-inline: 1.4rem; }

/* ===== Прикрепить ТЗ ===== */
.attach { display: flex; align-items: center; gap: 0.75rem 1.25rem; flex-wrap: wrap; }
.attach__btn { cursor: pointer; }
.attach__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.attach__btn:focus-within { background-size: 100% 100%; outline: 2px solid var(--text); outline-offset: 3px; }
.attach__name { min-width: 0; font-size: var(--fs-small); color: var(--muted); overflow-wrap: anywhere; }
.attach.has-file .attach__name { color: var(--text); }
.form__note { margin-top: var(--pad); font-size: var(--fs-small); color: var(--muted); }

/* ===== Бриф и документы ===== */
.contacts__brief { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.contacts__hint { font-size: var(--fs-small); color: var(--muted); max-width: 36ch; }
.doclink { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color 0.3s var(--ease); }
.doclink:hover { text-decoration-color: currentColor; }
.footer__docs { margin-top: var(--section); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: var(--fs-small); color: var(--muted); }
.footer__docs + .footer__bottom { margin-top: var(--pad); }
.footer__big + .footer__docs { margin-top: var(--pad); }
/* Страница-заглушка брифа */
.stub { min-height: 100vh; display: grid; place-content: center; justify-items: start; gap: var(--pad); padding: var(--gutter); }

/* Боковое меню: ссылки компактнее, Telegram и Pinterest в одну строку, почта капсом */
.side__foot { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem; }
.blink--mail { text-transform: uppercase; letter-spacing: 0.03em; flex: 0 0 auto; }
.side__foot .blink { padding-inline: 1.2rem; }

/* Подпись под фото: имя капсом через тире, остальное обычным шрифтом сайта */
.hero__cap > span:not(:first-child) {
  font-family: var(--f-text);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Поле «О проекте»: компактное, растёт при наборе */
.field__area { min-height: 2.75rem; resize: none; overflow: hidden; line-height: 1.5; }

/* Кнопка «Отправить» всегда залита акцентом, при нажатии чуть темнеет */
.form .btn--wide::before { transform: scaleX(1); transition: background-color 0.2s var(--ease), transform 0.5s var(--ease); }
.form .btn--wide:hover::before { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.form .btn--wide:active::before { background: color-mix(in srgb, var(--accent) 70%, black); }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* ===== Футер: градиент от тёмного вверху к акцентному зелёному внизу, без разделителя ===== */
.footer {
  min-height: clamp(18rem, 55vh, 36rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, var(--accent) 0%, var(--bg) 100%);
}
.footer__inner { padding-top: var(--section); }
.footer__docs, .footer__bottom { color: var(--text); }
.footer__docs { margin-top: 0; }
.footer__bottom { margin-top: var(--pad); padding-top: 0; border-top: 0; }

/* ===== Подсказка «Адрес скопирован» ===== */
.toast {
  position: fixed;
  left: 50%; bottom: 1.5rem;
  translate: -50% 1rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
  z-index: 120;
}
.toast.is-on { opacity: 1; translate: -50% 0; }
.toast::before { content: "[ "; }
.toast::after { content: " ]"; }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* Разделы без линий: только воздух */
.section__head { border-top: 0; padding-top: 0; }

/* Подпись под фото: «— ВЕБ-ДИЗАЙНЕР» капсом, город обычными буквами */
.hero__cap > span:nth-child(2) {
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.caps { text-transform: uppercase; }

/* Боковая колонка чуть шире, чтобы Telegram, Pinterest и Instagram встали в одну строку */
:root { --side-w: clamp(17rem, 30vw, 34rem); }
.side__foot { gap: 0.4rem; }
.side__foot .blink { padding-inline: 0.85rem; letter-spacing: 0.03em; }
.side__foot .blink--mail { padding-inline: 1.1rem; }

/* ===== Появление работ: кадр раскрывается снизу вверх, сайт слегка отъезжает, подписи подъезжают ===== */
.js .card[data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
.js .card .card__media {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease) calc(var(--d, 0) * 1ms);
}
.js .card.is-in .card__media { clip-path: inset(0 0 0 0); }
.js .card .frame {
  transform: translate(-50%, -50%) scale(1.14);
  transition: transform 1.6s var(--ease) calc(var(--d, 0) * 1ms + 150ms), border-color 0.5s var(--ease);
}
.js .card.is-in .frame { transform: translate(-50%, -50%) scale(1); }
.js .card .card__row, .js .card .card__cap {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.9s var(--ease) calc(var(--d, 0) * 1ms + 250ms), transform 0.9s var(--ease) calc(var(--d, 0) * 1ms + 250ms);
}
.js .card.is-in .card__row, .js .card.is-in .card__cap { opacity: 1; transform: none; }
/* Размытый фон едет чуть медленнее страницы: лёгкий параллакс */
.card__media > .bg { transform: translate3d(0, var(--py, 0px), 0) scale(1.25); }
@media (prefers-reduced-motion: reduce) {
  .js .card .card__media { clip-path: none; }
  .js .card .frame { transform: translate(-50%, -50%); }
  .js .card .card__row, .js .card .card__cap { opacity: 1; transform: none; }
}

/* Теги переносятся по косым чертам, а не внутри слов */
.card__tags { overflow-wrap: normal; }

/* ===== Слайдер фото в «Обо мне»: фото сменяют друг друга сами ===== */
.gallery { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.gallery__slide, .gallery__fallback {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1.1s var(--ease), transform 5s linear;
}
.gallery__slide.is-active, .gallery__fallback.is-active { opacity: 1; transform: scale(1); }
.gallery__count {
  position: absolute;
  right: 0.75rem; bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: var(--fs-small);
  line-height: 1.3;
  background: var(--bg);
  z-index: 2;
}
.gallery__count:empty { display: none; }
.gallery__count::before { content: "[ "; }
.gallery__count::after { content: " ]"; }

/* ===== Факты обо мне ===== */
.facts { display: flex; flex-direction: column; gap: 0.75rem; margin-top: var(--pad); }
.facts__label { font-size: var(--fs-small); color: var(--muted); }
.facts__label::before { content: "[ "; }
.facts__label::after { content: " ]"; }
.facts__list { list-style: none; counter-reset: fact; display: flex; flex-direction: column; }
.fact {
  position: relative;
  counter-increment: fact;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 1rem 0;
  transition: padding-left 0.45s var(--ease);
}
.fact::before { content: "0" counter(fact); grid-row: 1 / span 2; font-size: var(--fs-small); color: var(--muted); padding-top: 0.4em; }
.fact::after {
  content: "";
  position: absolute;
  left: 0; top: 1.55rem;
  width: 0.55rem; height: 0.55rem;
  background: var(--accent);
  translate: 0 -50%;
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.fact:hover { padding-left: 1rem; }
.fact:hover::after { transform: scale(1); }
.fact__title { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sub); line-height: 1.25; }
.fact__text { color: var(--muted); max-width: 52ch; }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* Рамка плитки повторяет первый экран сайта: 16:10 по умолчанию, 2:1 у сайтов с первым блоком 720 px */
.frame { aspect-ratio: var(--ar, 16 / 10); }

/* ===== Загрузка: вся страница появляется плавно разом, без поочерёдных анимаций ===== */
html.js body { opacity: 0; }
html.js.is-ready body { opacity: 1; transition: opacity 0.9s var(--ease); }
/* Боковая колонка и первый экран больше не собираются по очереди */
.js .side__bar, .js .side__role, .js .side__foot { opacity: 1; transform: none; transition: none; }
.js .nav__link { opacity: 1; transform: none; transition: color 0.3s var(--ease); }
.js.is-ready .nav__link:nth-child(n), .js.is-ready .side__role, .js.is-ready .side__foot { transition-delay: 0s; }
.js .hero [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
.hero__title .word > span { transform: none; transition: none; }

/* ===== Цены: выделение квадратиком, строка с пружинкой отъезжает вправо ===== */
.price { padding-left: 0.75rem; }
.price:hover { padding-left: 0.75rem; }
.price::before {
  top: 50%; bottom: auto;
  left: 0.6rem;
  width: 0.6rem; height: 0.6rem;
  translate: 0 -50%;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}
.price:hover::before { transform: scale(1); }
.price__num, .price__body { transition: transform 0.6s cubic-bezier(0.34, 1.7, 0.5, 1); }
.price:hover .price__num, .price:hover .price__body { transform: translateX(1.4rem); }

/* ===== Первый экран занят только первым блоком ===== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: var(--pad);
  grid-template-rows: auto 1fr;
}
.hero__text { grid-column: 1; grid-row: 1; }
.hero__figure { grid-column: 2; grid-row: 1 / span 2; }
.hero__lower { grid-column: 1; grid-row: 2; align-self: end; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero__lower .hero__sub { margin-top: 0; }
@media (max-width: 767px) {
  .hero { min-height: calc(100svh - var(--bar-h)); grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .hero__figure { grid-column: 1; grid-row: 1; order: -1; }
  .hero__text { grid-row: 2; }
  .hero__lower { grid-column: 1; grid-row: 3; }
}

/* Слайдер без фото: серая плашка вместо старого портрета */
.gallery.is-empty::after { content: "Фото"; position: absolute; left: 1rem; top: 1rem; font-size: var(--fs-small); color: var(--muted); }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* ===== Факты: компактнее, основным шрифтом сайта (полужирный) ===== */
.fact { grid-template-columns: 3rem minmax(0, 1fr); gap: 0.1rem 0.75rem; padding: 0.7rem 0; }
.fact::after { top: 1.15rem; }
.fact__title { font-family: var(--f-text); font-weight: 600; font-size: var(--fs-text); line-height: 1.35; }
.fact__text { font-size: var(--fs-small); max-width: 46ch; }
.fact::before { padding-top: 0.15em; }

/* Планшет и телефон: первый экран считается без верхней панели */
@media (max-width: 1023px) { .hero { min-height: calc(100svh - var(--bar-h)); } }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* Все рамки одинаковые, 2:1: так в кадр попадает ровно первый экран каждого сайта */
.frame { aspect-ratio: var(--ar, 2 / 1); }

/* Цены без номеров в скобках */
.price { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 767px) {
  .price { grid-template-columns: minmax(0, 1fr); }
  .price__cost { grid-column: 1; }
}

/* ===== Плитка «Здесь может быть ваш сайт»: призыв перейти к заявке ===== */
.ph__free { font-size: var(--fs-text); }
.ph__free span {
  padding: 0.7rem 2rem;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center / 0% 100%;
  transition: background-size 0.5s var(--ease);
}
.ph__free span::before, .ph__free span::after { width: 0.35rem; }
.card--free:hover .ph__free span::before, .card--free:hover .ph__free span::after { width: 0.35rem; }
.card--free:hover .ph__free span, .card--free:focus-visible .ph__free span { background-size: 100% 100%; }
.card--free:hover .card__media { background: color-mix(in srgb, var(--text) 5%, var(--surface)); }

/* Цены: квадратик стоит напротив названия (по центру первой строки), а не по центру всей плашки */
.price { --pp: clamp(1.25rem, 1rem + 1vw, 2rem); padding-top: var(--pp); padding-bottom: var(--pp); }
.price::before { top: calc(var(--pp) + var(--fs-h2) * 0.55); }

/* Факты: без квадратика и сдвига при наведении */
.fact::after { display: none; }
.fact:hover { padding-left: 0; }

/* Контакты: вступление к форме крупно, как заголовок первого экрана */
.contacts__side .lead {
  font-size: var(--fs-h2);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: none;
  text-wrap: balance;
}

/* ===== Левая панель в зелёном. Цвет меняется одной переменной --side-bg ===== */
:root { --side-bg: var(--accent); }
.side { background: var(--side-bg); border-right: 0; --side-soft: color-mix(in srgb, var(--text) 78%, var(--side-bg)); --side-line: color-mix(in srgb, var(--text) 28%, transparent); }
.side::after { background: var(--text); }
.side__role, .side__name span:last-child { color: var(--side-soft); }
.nav__link { color: var(--side-soft); border-top-color: var(--side-line); }
.nav__link:last-child { border-bottom-color: var(--side-line); }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link::before { background: var(--text); }
/* Ссылки-кнопки на зелёном: при наведении заливка светлая, текст тёмный */
.side .blink { background-image: linear-gradient(var(--text), var(--text)); }
.side .blink:hover, .side .blink:focus-visible { color: var(--bg); }
.side__photo { filter: grayscale(1) brightness(1.05); }
@media (max-width: 1023px) { .side { border-bottom-color: var(--side-line); } }

/* ===== Цены: под названием описание, срок и стоимость; значения зелёным ===== */
:root { --accent-text: #3f9669; }   /* тот же зелёный, но светлее: чистый акцент на тёмном читается слабо */
.price {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.6fr) minmax(0, 0.8fr);
  grid-template-areas: "title title title" "desc term cost";
  column-gap: var(--pad);
  row-gap: 0.6rem;
  align-items: start;
}
.price__title { grid-area: title; }
.price__desc { grid-area: desc; margin-top: 0; }
.price__fact:nth-of-type(1) { grid-area: term; }
.price__fact:nth-of-type(2) { grid-area: cost; }
.price__fact { display: flex; flex-direction: column; gap: 0.15rem; }
.price__label { font-size: var(--fs-small); color: var(--muted); }
.price__value { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sub); line-height: 1.2; color: var(--accent-text); white-space: nowrap; }
.price:hover .price__label { color: var(--text); }
.price__title, .price__desc, .price__fact { transition: transform 0.6s cubic-bezier(0.34, 1.7, 0.5, 1); }
.price:hover .price__title, .price:hover .price__desc, .price:hover .price__fact { transform: translateX(1.4rem); }
@media (max-width: 767px) {
  .price { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "title title" "desc desc" "term cost"; row-gap: 0.75rem; }
}

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* ===== Документы: ссылки в подвале капсом, шрифтом кнопок, без подчёркивания; при наведении загораются ярким зелёным ===== */
:root { --accent-bright: #4fbf85; }
.footer__docs .doclink {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.footer__docs .doclink:hover, .footer__docs .doclink:focus-visible { color: var(--accent-bright); }
/* В форме ссылки остаются подчёркнутыми, но тусклее, цветом подсказок */
.check__text .doclink { color: var(--muted); text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent); }
.check__text .doclink:hover { color: var(--text); text-decoration-color: currentColor; }

/* ===== Страницы документов ===== */
.doc { max-width: 2400px; margin-inline: auto; padding: var(--pad) var(--gutter) var(--section); }
.doc__back { margin-bottom: var(--pad); }
.doc__head { max-width: 75ch; margin-bottom: var(--pad); }
.doc__title { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-h2); line-height: 1.1; text-transform: uppercase; text-wrap: balance; }
.doc__sub { margin-top: 0.75rem; color: var(--muted); }
.doc__date { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--muted); }
.doc__body { max-width: 75ch; display: flex; flex-direction: column; gap: 0.9rem; }
.doc__body h2 { margin-top: var(--pad); font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sub); line-height: 1.25; }
.doc__body p, .doc__body li { font-size: var(--fs-text); }
.doc__body ul { padding-left: 1.25rem; list-style: square; display: flex; flex-direction: column; gap: 0.35rem; }
.doc__body li::marker { color: var(--muted); }
.doc__body code { font-family: var(--f-text); background: var(--surface); padding: 0.05rem 0.4rem; }
.doc__body b { font-weight: 600; }

/* Футер на зелёном: «Наверх» при наведении заливается чёрным, а не зелёным */
.footer .blink { background-image: linear-gradient(var(--bg), var(--bg)); }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* Крупная фраза в подвале: две строки капсом, размер подгоняется скриптом под всю ширину */
.footer__big { display: block; margin-top: 0; margin-bottom: var(--section); font-size: clamp(2rem, 0.5rem + 6.2vw, 12rem); line-height: 0.98; letter-spacing: 0; }
.footer__big span { display: block; width: max-content; }

/* Фраза в подвале в одну строку на планшете и десктопе; на телефоне в две, иначе буквы мелкие */
.footer__big { white-space: nowrap; overflow: visible; }
.footer__big span { display: inline; width: auto; }
.footer__big span:first-child::after { content: " "; }
@media (max-width: 699px) {
  .footer__big span { display: block; width: max-content; }
  .footer__big span:first-child::after { content: none; }
}

/* Подвал: справа кнопка «Наверх», под ней документы друг под другом; слева копирайт */
.footer__bottom { align-items: flex-end; flex-wrap: nowrap; }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 1.1rem; }
.footer__docs { flex-direction: column; align-items: flex-end; gap: 0.5rem; margin-top: 0; text-align: right; }
.footer__docs .doclink {
  font-family: var(--f-text);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 599px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__right, .footer__docs { align-items: flex-start; text-align: left; }
}

/* Подвал компактнее: фраза ближе к нижним ссылкам, пустого места меньше */
.footer { min-height: clamp(16rem, 42vh, 28rem); }
.footer__inner { padding-top: calc(var(--section) * 0.5); }
.footer__big { margin-bottom: calc(var(--pad) * 1.2); }

/* Копирайт в подвале: имя сверху, ниже «веб-дизайнер» и ИНН через белый квадратик */
.footer__copy { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.footer__meta .sq { flex: none; display: inline-block; width: 0.5rem; height: 0.5rem; background: var(--text); }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* Подвал: слева имя и ИНН, по центру «Наверх», справа документы; крупная фраза внизу страницы */
.footer__bottom { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 1rem 1.5rem; margin-top: 0; padding-top: 0; flex-wrap: initial; }
.footer__up { justify-self: center; align-self: end; }
.footer__docs { justify-self: end; }
.footer__big { margin-top: calc(var(--section) * 0.7); margin-bottom: 0; }
@media (max-width: 699px) {
  .footer__bottom { grid-template-columns: minmax(0, 1fr); }
  .footer__up, .footer__docs { justify-self: start; }
}

/* Зелёная панель: ссылки при наведении заливаются чёрным, текст остаётся светлым */
.side .blink { background-image: linear-gradient(var(--bg), var(--bg)); }
.side .blink:hover, .side .blink:focus-visible { color: var(--text); }

/* Подвал: «Наверх» ровно посередине между копирайтом и документами, документы без переноса */
.footer__bottom { grid-template-columns: auto minmax(0, 1fr) auto !important; }
.footer__docs .doclink { white-space: nowrap; }
@media (max-width: 699px) { .footer__bottom { grid-template-columns: minmax(0, 1fr) !important; } .footer__docs .doclink { white-space: normal; } }

/* Обо мне: фото растягивается и заканчивается на одной линии с последним фактом; навыки идут отдельной строкой ниже */
@media (min-width: 1100px) {
  .about { grid-template-areas: "photo body" "skills skills"; align-items: stretch; }
  .about .gallery { grid-area: photo; aspect-ratio: auto; height: auto; min-height: 28rem; align-self: stretch; }
  .about__body { grid-area: body; }
  .about .skills { grid-area: skills; margin-top: calc(var(--pad) * 0.5); }
}

/* Последний факт без нижнего отступа: его текст заканчивается ровно на нижней линии фото */
.fact:last-child { padding-bottom: 0; }
.fact:last-child .fact__text { margin-bottom: 0; }
@media (min-width: 1100px) { .about__body { padding-bottom: 0; } .facts { margin-bottom: 0; } }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* Подвал: фраза над нижней строкой, между ней и остальным ровно 40px; подвал чуть выше */
.footer { min-height: clamp(20rem, 52vh, 34rem); }
.footer__inner { padding-top: var(--section); }
.footer__big { margin-top: 0 !important; margin-bottom: 40px !important; }

/* ===== Разделитель между блоками: ряд из пяти квадратиков, левый светлый, дальше тускнее ===== */
.section::before {
  content: "";
  display: block;
  width: 5.4rem;
  height: 0.5rem;
  margin-bottom: var(--pad);
  background:
    linear-gradient(var(--text), var(--text)) 0 0 / 0.5rem 0.5rem no-repeat,
    linear-gradient(var(--muted), var(--muted)) 1.2rem 0 / 0.5rem 0.5rem no-repeat,
    linear-gradient(var(--muted), var(--muted)) 2.4rem 0 / 0.5rem 0.5rem no-repeat,
    linear-gradient(color-mix(in srgb, var(--muted) 55%, transparent), color-mix(in srgb, var(--muted) 55%, transparent)) 3.6rem 0 / 0.5rem 0.5rem no-repeat,
    linear-gradient(color-mix(in srgb, var(--muted) 30%, transparent), color-mix(in srgb, var(--muted) 30%, transparent)) 4.8rem 0 / 0.5rem 0.5rem no-repeat;
}

/* Разделитель: три квадрата лесенкой по диагонали, одного цвета, чтобы не напоминать пагинацию */
.section::before {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: var(--pad);
  background:
    linear-gradient(var(--text), var(--text)) 0 1.9rem / 0.5rem 0.5rem no-repeat,
    linear-gradient(var(--text), var(--text)) 0.95rem 0.95rem / 0.5rem 0.5rem no-repeat,
    linear-gradient(var(--text), var(--text)) 1.9rem 0 / 0.5rem 0.5rem no-repeat;
}

/* ===== Плитка работы: фото с сайта, название по центру; при наведении фото размывается, остаются название и значок ===== */
.card__media--photo { background: var(--surface); }
.card__media--photo .work__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: filter 0.7s var(--ease), transform 1.1s var(--ease);
}
.card__media--photo::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 28%, transparent); transition: background-color 0.6s var(--ease); pointer-events: none; }
.work__logo { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; pointer-events: none; }
.work__name {
  position: relative;
  padding: 0.6rem 1.8rem;
  font-family: var(--f-head); font-weight: 700;
  font-size: var(--fs-text); letter-spacing: 0.05em; text-transform: uppercase; text-align: center;
  color: var(--text);
  text-shadow: 0 1px 12px color-mix(in srgb, var(--bg) 60%, transparent);
}
.work__name::before, .work__name::after { content: ""; position: absolute; top: 0; bottom: 0; width: 0.4rem; border: 1px solid currentColor; }
.work__name::before { left: 0; border-right: 0; }
.work__name::after { right: 0; border-left: 0; }
.work__eye {
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem;
  background: var(--bg); color: var(--text);
  opacity: 0; transform: translateY(0.75rem);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.work__eye svg { width: 1.6rem; height: 1.6rem; }
.card:hover .work__img, .card:focus-visible .work__img { filter: blur(16px); transform: scale(1.08); }
.card:hover .card__media--photo::after, .card:focus-visible .card__media--photo::after { background: color-mix(in srgb, var(--bg) 40%, transparent); }
.card:hover .work__eye, .card:focus-visible .work__eye { opacity: 1; transform: none; }
/* На сенсорных экранах наведения нет: значок глаза виден всегда, фото слегка размыто */
@media (hover: none) { .work__eye { opacity: 1; transform: none; } .work__img { filter: blur(3px); } }

/* ===== Телефон: кнопки на всю ширину экрана (первый экран, контакты, подвал) ===== */
@media (max-width: 767px) {
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn, .contacts__brief .btn, .done__actions .btn { width: 100%; }
  .contacts__brief { width: 100%; }
  .attach__btn { width: 100%; }
  .footer__up { width: 100%; justify-self: stretch; justify-content: center; }
  .side__foot .blink { flex: 1 1 auto; justify-content: center; }
  .types .chip { flex: 1 1 100%; }
  .types .chip span { width: 100%; justify-content: center; }
}

/* Цены на ПК: описание слева, срок и стоимость прижаты к правому краю */
@media (min-width: 768px) {
  .price { grid-template-columns: minmax(0, 1fr) 11rem 13rem; }
  .price__fact:nth-of-type(2) { text-align: right; align-items: flex-end; }
  .price__fact:nth-of-type(1) { align-items: flex-start; }
}

/* Пружинка при наведении двигает только название и описание, срок и стоимость остаются у края */
.price:hover .price__fact { transform: none; }

/* Левая панель снова уже: ~25% ширины; ссылки внизу компактнее, чтобы три в ряд помещались */
:root { --side-w: clamp(16rem, 25vw, 30rem); }
.side { --side-pad: clamp(1rem, 0.8rem + 0.8vw, 1.75rem); padding: var(--side-pad); }
.side__foot { gap: 0.3rem; }
.side__foot .blink { padding-inline: 0.65rem; letter-spacing: 0.02em; min-height: 2.1rem; font-size: clamp(0.75rem, 0.7rem + 0.18vw, 0.9rem); }
.side__foot .blink--mail { padding-inline: 0.85rem; letter-spacing: 0.01em; }
.side__foot .blink::before, .side__foot .blink::after { width: 0.3rem; }
@media (max-width: 1023px) { .side { padding: 0 var(--gutter); } }

/* Панель ещё уже (~22% ширины); три соцссылки всегда в одну строку: шрифт подгоняется под ширину панели */
:root { --side-w: clamp(15rem, 22vw, 27rem); }
@media (min-width: 1024px) {
  .side { container-type: inline-size; }
  .side__foot { display: flex; flex-wrap: wrap; gap: 0.3rem; }
  .side__foot .blink--mail { flex: 1 1 100%; justify-content: center; font-size: clamp(0.65rem, 4.3cqw, 0.9rem); }
  .side__foot .blink:not(.blink--mail) {
    flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap;
    padding-inline: 0.35rem; letter-spacing: 0;
    font-size: clamp(0.6rem, 3.6cqw, 0.85rem);
  }
}

/* Первый экран на ПК и планшете: описание внизу слева, кнопки внизу справа */
@media (min-width: 768px) {
  .hero__figure { grid-row: 1 !important; }
  .hero__lower {
    grid-column: 1 / -1 !important; grid-row: 2 !important;
    flex-direction: row !important; align-items: flex-end !important; justify-content: space-between; gap: var(--pad) var(--gutter);
  }
  .hero__lower .hero__sub { max-width: 46ch; }
  .hero__lower .hero__actions { margin-top: 0; justify-content: flex-end; flex-wrap: nowrap; }
}

/* Левая панель шире ровно на 50px относительно прошлой версии */
:root { --side-w: clamp(17rem, calc(22vw + 50px), 30rem); }

/* Разделитель из квадратиков убран; описание на первом экране шире */
.section::before { display: none !important; }
@media (min-width: 768px) { .hero__lower .hero__sub { max-width: 72ch; } }

/* Первый экран: описание ровно в три строки примерно одной длины */
@media (min-width: 768px) { .hero__lower .hero__sub { max-width: 66ch; text-wrap: balance; } }

/* Плитки: логотип сайта (белый, шрифтом самого сайта) по центру, без глаза и скобок */
.work__eye, .work__name { display: none !important; }
.work__mark { width: min(62%, 17rem); height: auto; filter: drop-shadow(0 1px 14px color-mix(in srgb, var(--bg) 55%, transparent)); }
.card--free .work__mark { display: none; }

/* Заголовки блоков: капсом и зелёным (светлый оттенок нашего зелёного, чтобы читался на тёмном) */
.section__head .h2 { text-transform: uppercase; color: var(--accent-text); }
.section__head .h2 .ch { color: inherit; }

/* Левая панель: ссылки не растягиваются, скобки на том же расстоянии от слова, что и у всех кнопок */
@media (min-width: 1024px) {
  .side__foot .blink, .side__foot .blink--mail { flex: 0 0 auto !important; justify-content: flex-start !important; padding-inline: 1.1rem !important; }
  .side__foot .blink::before, .side__foot .blink::after { width: 0.35rem; }
}

/* Названия услуг в ценах: обычным регистром, не капсом */
.price__title { text-transform: none; }

/* Три соцссылки в панели: размер шрифта ограничен, чтобы помещались в одну строку на широких экранах */
@media (min-width: 1024px) { .side__foot .blink:not(.blink--mail) { font-size: clamp(0.6rem, 2.9cqw, 0.72rem) !important; } }

/* Почта всегда на своей строке, не растягиваясь: остальное переносится под неё */
@media (min-width: 1024px) { .side__foot .blink--mail { margin-right: 100%; } }

/* Исправление: почта на своей строке через разрыв строки, а не через отступ */
@media (min-width: 1024px) {
  .side__foot .blink--mail { margin-right: 0 !important; order: 0; }
  .side__foot::before { content: ""; order: 1; flex: 0 0 100%; height: 0; }
  .side__foot .blink:not(.blink--mail) { order: 2; }
}

/* Кнопки на первом экране не переносятся на две строки; описание уступает им место */
@media (min-width: 768px) {
  .hero__lower .hero__actions { flex: 0 0 auto; }
  .hero__lower .hero__actions .btn { white-space: nowrap; }
  .hero__lower .hero__sub { flex: 1 1 0; min-width: 0; max-width: 62ch; }
}

/* Обо мне: фото снова меньше (4:5), справа вступление; факты ниже в две колонки на всю ширину */
@media (min-width: 1100px) {
  .about { grid-template-areas: "photo intro" "facts facts" "skills skills"; align-items: start; row-gap: calc(var(--pad) * 1.5); }
  .about .gallery { grid-area: photo; aspect-ratio: 4 / 5; height: auto; min-height: 0; align-self: start; }
  .about__body { display: contents; }
  .about__body > .lead { grid-area: intro; align-self: start; }
  .about__body > .text { grid-area: intro; align-self: end; }
  .about__body > .facts { grid-area: facts; margin-top: 0; }
}
@media (min-width: 768px) {
  .facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
}

/* Обо мне: вступление и абзац идут друг за другом справа от фото, без дыры между ними */
@media (min-width: 1100px) {
  .about { grid-template-areas: "photo intro" "photo text" "facts facts" "skills skills"; grid-template-rows: auto 1fr auto auto; row-gap: calc(var(--pad) * 0.75); }
  .about__body > .lead { grid-area: intro; align-self: start; }
  .about__body > .text { grid-area: text; align-self: start; }
  .about .gallery { grid-row: 1 / span 2; }
}

/* Панель слева: почта и три соцссылки одного размера шрифта */
@media (min-width: 1024px) {
  .side__foot .blink, .side__foot .blink--mail, .side__foot .blink:not(.blink--mail) { font-size: clamp(0.6rem, 3.3cqw, 0.75rem) !important; letter-spacing: 0.02em; }
}

/* Панель слева: почта и три соцссылки одного шрифта и размера, идут подряд и переносятся по месту:
   почта + Telegram в первой строке, Pinterest + Instagram во второй */
@media (min-width: 1024px) {
  .side__foot::before { display: none !important; }
  .side__foot .blink, .side__foot .blink--mail, .side__foot .blink:not(.blink--mail) {
    order: 0 !important; flex: 0 0 auto !important; margin: 0 !important;
    font-size: clamp(0.6rem, 3.6cqw, 0.78rem) !important; letter-spacing: 0.03em; padding-inline: 1.1rem !important;
  }
}

/* Обо мне: фото 4:5 слева; справа вступление, абзац и под ними факты в две колонки */
@media (min-width: 1100px) {
  .about { grid-template-areas: "photo body" "skills skills"; grid-template-rows: auto auto; row-gap: calc(var(--pad) * 1.5); align-items: start; }
  .about .gallery { grid-area: photo; grid-row: auto; aspect-ratio: 4 / 5; align-self: start; position: sticky; top: var(--pad); }
  .about__body { display: flex !important; grid-area: body; flex-direction: column; gap: var(--pad); }
  .about__body > .lead, .about__body > .text, .about__body > .facts { grid-area: auto; align-self: auto; }
  .about__body > .facts { margin-top: calc(var(--pad) * 0.5); }
  .about .skills { grid-area: skills; }
  .facts__list { column-gap: clamp(1.25rem, 0.5rem + 2vw, 3rem); }
}
@media (min-width: 1100px) { .about__body .fact { grid-template-columns: 1.8rem minmax(0, 1fr); gap: 0.1rem 0.5rem; } .about__body .facts__list { column-gap: 1.5rem; } }

/* Фото в «Обо мне» стоит на месте вверху блока и не едет за прокруткой */
@media (min-width: 1100px) { .about .gallery { position: relative !important; top: auto !important; } }

/* Цены: у услуг номера без скобок слева от названия; у заголовков блоков номеров нет */
.price__num::before, .price__num::after { content: none !important; }
.price { grid-template-columns: 2.5rem minmax(0, 1fr) 11rem 13rem !important; grid-template-areas: "num title title title" ". desc term cost" !important; }
.price__num { grid-area: num; padding-top: 0.55em; font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.price:hover .price__num { color: var(--text); transform: translateX(1.4rem); transition: transform 0.6s cubic-bezier(0.34, 1.7, 0.5, 1), color 0.3s; }
@media (max-width: 767px) {
  .price { grid-template-columns: 2.25rem minmax(0, 1fr) minmax(0, 1fr) !important; grid-template-areas: "num title title" ". desc desc" ". term cost" !important; }
}

/* Номера в ценах и в фактах: в квадратных скобках */
.price__num::before, .fact::before { content-visibility: visible; }
.price__num::before { content: "[ " !important; }
.price__num::after { content: " ]" !important; }
.fact::before { content: "[ 0" counter(fact) " ]" !important; white-space: nowrap; }
.price { grid-template-columns: 4.2rem minmax(0, 1fr) 11rem 13rem !important; }
@media (max-width: 767px) { .price { grid-template-columns: 4.2rem minmax(0, 1fr) minmax(0, 1fr) !important; } }
.fact, .about__body .fact { grid-template-columns: 4.2rem minmax(0, 1fr) !important; }

/* Факты в узкой колонке: номер в скобках стоит над названием, текст занимает всю ширину колонки */
@media (min-width: 768px) {
  .fact, .about__body .fact { grid-template-columns: minmax(0, 1fr) !important; gap: 0.2rem 0 !important; }
  .fact::before { grid-row: auto !important; padding-top: 0 !important; margin-bottom: 0.15rem; }
}

/* Цены: номер в скобках стоит сразу после названия услуги, как индекс */
.price { grid-template-columns: minmax(0, 1fr) 11rem 13rem !important; grid-template-areas: "title title title" "desc term cost" !important; }
.price__title .price__num {
  display: inline-block; vertical-align: top; margin-left: 0.5rem; margin-top: 0.15em; padding-top: 0 !important;
  font-family: var(--f-text); font-weight: 400; font-size: var(--fs-small); line-height: 1; letter-spacing: 0; color: var(--muted);
  transition: color 0.3s;
}
.price:hover .price__title .price__num { color: var(--text); transform: none; }
@media (max-width: 767px) { .price { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; grid-template-areas: "title title" "desc desc" "term cost" !important; } }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* Форма: от подписи «Что нужно сделать» до кнопок выбора такой же отступ, как от «Как к вам обращаться» до поля (по тексту) */
.types .field__label { margin-bottom: 0.75rem; }
@media (max-width: 1023px) { .types .field__label { margin-bottom: 0.55rem; } }

/* Форма на главной: незаполненные обязательные поля красным, заполненные зелёным */
:root { --bad: #e0675b; --ok: #4fbf85; }
.field.is-invalid .field__input { border-bottom-color: var(--bad) !important; }
.field.is-invalid .field__label, .form__error { color: var(--bad); }
.field.is-invalid::after { background: var(--bad); transform: scaleX(1); }
.field.is-valid::after { background: var(--ok); transform: scaleX(1); }
.check.is-invalid .check__box { border-color: var(--bad); }
.form__error::before { color: var(--bad) !important; }

/* Панель слева: расстояние между кнопками-ссылками такое же, как между кнопками на всём сайте (1rem) */
.side__foot { gap: 1rem !important; }

/* Факты: заголовок «Факты обо мне» без скобок, обычным шрифтом; сами факты обычного размера текста */
.facts__label::before, .facts__label::after { content: none !important; }
.facts__label { font-family: var(--f-text); font-weight: 400; font-size: var(--fs-text); color: var(--text); }
.fact__title { font-size: var(--fs-text) !important; }
.fact__text { font-size: var(--fs-text) !important; max-width: none; }

/* Панель слева: ссылки того же размера, что и все кнопки сайта */
@media (min-width: 1024px) {
  .side__foot .blink, .side__foot .blink--mail, .side__foot .blink:not(.blink--mail) {
    font-size: var(--fs-small) !important; letter-spacing: 0.05em; min-height: 2.25rem; padding-inline: 1.4rem !important;
  }
  .side__foot { gap: 0.75rem 1rem !important; }
}

/* Подсказка у «Прикрепить ТЗ»: тот же шрифт и размер, что у подсказок в полях («Ваше имя», «О проекте») */
.attach__name { font-family: var(--f-text); font-size: var(--fs-text); font-weight: 400; line-height: 1.5; color: var(--muted); }
.attach.has-file .attach__name { color: var(--text); }

/* Описание под «Заполнить бриф»: шрифт обычного текста, ширина ровно по кнопке, края выровнены по границам кнопки */
.contacts__brief { display: grid; width: max-content; max-width: 100%; justify-items: stretch; gap: 0.75rem; }
.contacts__brief .btn { justify-self: stretch; }
.contacts__hint { width: 0; min-width: 100%; max-width: none; font-size: var(--fs-text); line-height: 1.5; text-align: justify; text-align-last: left; hyphens: auto; }

/* Панель слева: «Живу в Санкт-Петербурге…» обычного размера текста */
.side__role { font-size: var(--fs-text); line-height: 1.45; max-width: none; }

/* «Заполнить бриф»: блок шире (кнопка растянута), описание под ней длиннее и заканчивается ровно по границе кнопки */
.contacts__brief { width: min(100%, 28rem); }

/* Факты: одинаковые отступы между номером, названием и текстом в каждой карточке.
   Раньше соседние факты в одной строке растягивались по высоте, и пустое место делилось между номером, названием и текстом по-разному */
.facts__list { align-items: start; row-gap: 1.5rem; }
.fact, .about__body .fact { display: flex !important; flex-direction: column; align-items: flex-start; gap: 0.6rem !important; padding: 0 !important; }
.fact::before { margin: 0 !important; padding: 0 !important; line-height: 1; }
.fact__title, .fact__text { margin: 0; }
.fact__title { line-height: 1.35; }
.fact__text { line-height: 1.5; }

/* Цены: линии между услугами начинаются ровно там, где начинается текст, и заканчиваются там, где он кончается (без боковых отступов) */
.price { padding-inline: 0 !important; }
.price:hover { padding-left: 0 !important; background: transparent; box-shadow: -0.75rem 0 0 color-mix(in srgb, var(--text) 6%, var(--bg)), 0.75rem 0 0 color-mix(in srgb, var(--text) 6%, var(--bg)); background-color: color-mix(in srgb, var(--text) 6%, var(--bg)); }
.price::before { left: -0.75rem; }

/* Факты: без заголовка блока; номер в скобках слева, на одной строке с названием, текст под названием */
.facts__label { display: none !important; }
.facts { margin-top: 0; }
.fact, .about__body .fact { display: grid !important; grid-template-columns: 4.4rem minmax(0, 1fr) !important; grid-template-areas: "num title" ". text"; column-gap: 0.25rem; row-gap: 0.6rem !important; align-items: baseline; }
.fact::before { grid-area: num; align-self: baseline; white-space: nowrap; font-size: var(--fs-small); }
.fact__title { grid-area: title; }
.fact__text { grid-area: text; }
@media (max-width: 1099px) { .fact, .about__body .fact { grid-template-columns: 4.4rem minmax(0, 1fr) !important; } }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* Факты занимают всю ширину под фото и вступлением, в две колонки: номеру слева хватает места, текст не сжимается */
@media (min-width: 1100px) {
  .about { grid-template-areas: "photo intro" "photo text" "facts facts" "skills skills" !important; grid-template-rows: auto 1fr auto auto !important; }
  .about__body { display: contents !important; }
  .about__body > .lead { grid-area: intro; }
  .about__body > .text { grid-area: text; align-self: start; }
  .about__body > .facts { grid-area: facts; margin-top: calc(var(--pad) * 0.5); }
  .about .gallery { grid-row: 1 / span 2 !important; }
  .facts__list { column-gap: var(--gutter); }
}

/* ===== Телефон: кнопки обычной ширины и по центру, а не на всю ширину экрана ===== */
@media (max-width: 767px) {
  .hero__actions { width: 100%; flex-direction: column; align-items: center; }
  .hero__actions .btn, .contacts__brief .btn, .attach__btn, .form .btn--wide, .footer__up,
  .types .chip span, .side__foot .blink { width: auto !important; }
  .hero__actions .btn { flex: 0 0 auto; }
  .contacts__brief { width: 100%; justify-items: center; text-align: center; }
  .contacts__brief .btn { justify-self: center; }
  .contacts__hint { width: auto; min-width: 0; max-width: 32ch; text-align: center; text-align-last: center; }
  .attach { justify-content: center; text-align: center; }
  .attach__btn { margin-inline: auto; }
  .form .btn--wide { align-self: center; }
  .footer__up { justify-self: center; justify-content: center; }
  .types { justify-content: center; }
  .types .chip { flex: 0 0 auto; }
  .side__foot .blink { flex: 0 0 auto; }
  .side__foot { justify-content: center; }
  .hero__lower { align-items: center; }
  .done__actions, .intro__actions { justify-content: center; }
}

/* Подвал: «Веб-дизайнер» обычными буквами, не капсом */
.footer__meta .caps { text-transform: none; }

/* ===== Телефон: подвал компактнее, подсказка в поле «О проекте» видна целиком ===== */
@media (max-width: 599px) {
  .footer__bottom { grid-template-columns: minmax(0, 1fr) auto !important; grid-template-areas: "copy up" "docs docs"; align-items: center; row-gap: 1.25rem; }
  .footer__copy { grid-area: copy; }
  .footer__up { grid-area: up; width: auto !important; justify-self: end !important; }
  .footer__bottom .footer__docs { grid-area: docs; align-items: flex-start !important; justify-self: start !important; }
  .footer__meta { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .footer__meta .sq { display: none; }
}
@media (max-width: 767px) {
  .field__area { min-height: 6rem; }
}

/* Логотип в левой панели: «— веб-дизайнер» зелёным. Сама панель зелёная, поэтому берём светлый оттенок нашего зелёного, иначе надпись не видна */
:root { --accent-mint: #9be3bd; }
.side__name span:last-child { color: var(--accent-mint) !important; }

/* ПК: кнопка «Заполнить бриф» обычной ширины, описание под ней остаётся широким */
@media (min-width: 768px) {
  .contacts__brief { display: flex; flex-direction: column; align-items: flex-start; width: min(100%, 28rem); }
  .contacts__brief .btn { width: auto; justify-self: auto; align-self: flex-start; }
  .contacts__hint { width: 100%; min-width: 0; text-align: left; text-align-last: auto; hyphens: manual; }
}

/* Описание услуг в ценах: стандартный размер текста сайта; колонка описания шире, чтобы укладывалось в три строки */
.price__desc { font-size: var(--fs-text) !important; line-height: 1.45; max-width: none; }
@media (min-width: 768px) { .price { grid-template-columns: minmax(0, 1fr) 9.5rem 11rem !important; } .price__desc { max-width: 46ch; } }

/* Межстрочный интервал обычного текста: 130% на ПК, на планшете и телефоне чуть больше (шрифт мельче, нужен воздух) */
:root { --lh-text: 1.3; }
@media (max-width: 1023px) { :root { --lh-text: 1.38; } }
@media (max-width: 767px) { :root { --lh-text: 1.45; } }
body, .text, .hero__sub, .price__desc, .fact__text, .card__desc, .contacts__hint, .side__role, .check__text,
.attach__name, .field__input, .skills__note, .doc__body p, .doc__body li { line-height: var(--lh-text) !important; }
.field__area { line-height: var(--lh-text) !important; }

/* Факты справа от фото, одним столбцом; список может быть длиннее фото */
@media (min-width: 1100px) {
  .about { grid-template-areas: "photo body" "skills skills" !important; grid-template-rows: auto auto !important; align-items: start !important; }
  .about .gallery { grid-area: photo !important; grid-row: auto !important; align-self: start; }
  .about__body { display: flex !important; grid-area: body !important; flex-direction: column; gap: var(--pad); }
  .about__body > .lead, .about__body > .text, .about__body > .facts { grid-area: auto !important; align-self: auto !important; }
  .about__body > .facts { margin-top: calc(var(--pad) * 0.5); }
}
.facts__list { display: flex !important; flex-direction: column; gap: 1.5rem; }

/* Логотип в левой панели: «— веб-дизайнер» тёмно-зелёным */
:root { --accent-deep: #0b2a1b; }
.side__name span:last-child { color: var(--accent-deep) !important; }

/* Обо мне: вступление, абзац и факты занимают одну и ту же ширину колонки, без искусственного сужения строк */
.about__body > .lead, .about__body > .text, .about__body .fact__text, .about__body .fact__title { max-width: none !important; text-wrap: wrap !important; }
.about__body > .lead { margin: 0; }

/* Названия полей в форме: размер обычного текста сайта */
.field__label, .types .field__label { font-size: var(--fs-text); line-height: var(--lh-text); }

/* Логотип в панели: «— веб-дизайнер» снова белым */
.side__name span:last-child { color: var(--text) !important; }

/* Телефон: две кнопки первого экрана в одну строку на всю ширину, каждая половину */
@media (max-width: 767px) {
  .hero__actions { flex-direction: row !important; width: 100%; gap: 0.75rem; flex-wrap: nowrap; }
  .hero__actions .btn { flex: 1 1 0 !important; width: auto !important; min-width: 0; padding-inline: 0.6rem; }
  .hero__actions .btn__label { font-size: 0.8125rem; letter-spacing: 0.03em; white-space: nowrap; }
}

/* Сенсорные экраны: наведения нет, поэтому главные кнопки сразу залиты акцентом (контурная «Написать мне» остаётся контурной) */
@media (hover: none) {
  .btn:not(.btn--ghost)::before { transform: scaleX(1); }
  .btn:not(.btn--ghost):active::before { background: color-mix(in srgb, var(--accent) 70%, black); }
  .blink.attach__btn, .footer__up { background-size: 100% 100%; }
}

/* Этапы работы вместо списка навыков: название с номером-индексом, под ним описание */
.stages { list-style: none; margin-top: calc(var(--pad) * 0.5); counter-reset: none; }
.stage-row { display: block; padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.75rem) 0; border-top: 1px solid var(--line); position: relative; transition: padding-left 0.45s var(--ease); }
.stage-row:last-child { border-bottom: 1px solid var(--line); }
.stage-row::before { content: none !important; }
.stage-row:hover { padding-left: 0; }
.stage-row__title { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sub); line-height: 1.25; }
.stage-row__num { display: inline-block; vertical-align: top; margin-left: 0.5rem; margin-top: 0.15em; font-family: var(--f-text); font-weight: 400; font-size: var(--fs-small); line-height: 1; color: var(--muted); }
.stage-row__num::before { content: "[ "; } .stage-row__num::after { content: " ]"; }
.stage-row__desc { margin-top: 0.5rem; max-width: 60ch; color: var(--muted); font-size: var(--fs-text); line-height: var(--lh-text); transition: color 0.3s var(--ease); }
.stage-row:hover .stage-row__desc, .stage-row:hover .stage-row__num { color: var(--text); }
@media (min-width: 768px) {
  .stage-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gutter); align-items: start; }
  .stage-row__desc { margin-top: 0.25rem; }
}

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* Логотип: «— веб-дизайнер» приглушённым светлым, как остальной серый текст на зелёной панели */
.side__name span:last-child { color: var(--side-soft) !important; }

/* Телефон и сенсорные экраны: все кнопки залиты (у каждой свой цвет заливки по месту), контурная только «Написать мне» */
/* Планшет до 1023 px: главные кнопки тоже залиты зелёным, как на телефоне («Смотреть работы» и остальные) */
@media (max-width: 1023px) {
  .btn:not(.btn--ghost)::before { transform: scaleX(1) !important; }
  .btn:not(.btn--ghost):active::before { background: color-mix(in srgb, var(--accent) 70%, black); }
  .footer__up { background-size: 100% 100% !important; }
  .footer__up:active { filter: brightness(1.25); }
}
@media (hover: none), (max-width: 767px) {
  .btn:not(.btn--ghost)::before { transform: scaleX(1) !important; }
  .btn:not(.btn--ghost):active::before { background: color-mix(in srgb, var(--accent) 70%, black); }
  .blink { background-size: 100% 100% !important; }
  .blink:active { filter: brightness(1.25); }
}

/* Подвал: политика и согласие того же шрифта, веса и цвета, что копирайт (обычный, светлый); капс сохранён */
.footer__docs .doclink { font-family: var(--f-text) !important; font-weight: 400 !important; font-size: var(--fs-small) !important; color: var(--text) !important; letter-spacing: 0.04em; }
.footer__copy, .footer__copy span { color: var(--text); font-size: var(--fs-small); }

/* Левая панель на ПК: ссылки сразу залиты чёрным; при наведении чуть светлеют */
@media (min-width: 1024px) {
  .side .blink, .side .blink:hover, .side .blink:focus-visible { background-image: none !important; background-color: var(--bg); transition: background-color 0.3s var(--ease); }
  .side .blink:hover, .side .blink:focus-visible { background-color: color-mix(in srgb, var(--text) 16%, var(--bg)); color: var(--text); }
}

/* Факты: номер в скобках стоит справа после названия, приподнят как индекс (как в ценах и этапах) */
.fact::before { content: none !important; display: none !important; }
.fact, .about__body .fact { display: block !important; padding: 0 !important; }
.fact__title::after {
  content: "[ 0" counter(fact) " ]";
  display: inline-block; vertical-align: top; margin-left: 0.5rem; margin-top: 0.15em;
  font-family: var(--f-text); font-weight: 400; font-size: var(--fs-small); line-height: 1; letter-spacing: 0; color: var(--muted);
}
.fact__text { margin-top: 0.5rem !important; }
.facts__list { gap: 1.6rem; }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* ===== Этапы работы: карточки с прямыми углами. Первые четыре обычные, последняя («Проверка и запуск») шире и залита акцентом ===== */
.stages--cards { display: grid; grid-template-columns: 1fr; gap: var(--gap); margin-top: var(--pad); border: 0; }
.stage-card {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem;
  min-height: 11rem; padding: var(--pad);
  border: 1px solid var(--line); background: transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.stage-card__num { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-h2); line-height: 1; color: var(--muted); transition: color 0.4s var(--ease); }
.stage-card__num::before { content: "[ "; font-family: var(--f-text); font-weight: 400; font-size: var(--fs-small); vertical-align: top; }
.stage-card__num::after { content: " ]"; font-family: var(--f-text); font-weight: 400; font-size: var(--fs-small); vertical-align: top; }
.stage-card__title { margin-top: auto; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sub); line-height: 1.2; }
.stage-card__desc { color: var(--muted); font-size: var(--fs-text); line-height: var(--lh-text); transition: color 0.4s var(--ease); }
.stage-card:hover { border-color: var(--muted); background: color-mix(in srgb, var(--text) 4%, transparent); }
.stage-card:hover .stage-card__num { color: var(--accent-text); }
.stage-card:hover .stage-card__desc { color: var(--text); }
.stage-card:last-child { background: var(--accent); border-color: var(--accent); }
.stage-card:last-child .stage-card__num, .stage-card:last-child .stage-card__desc { color: var(--text); }
.stage-card:last-child:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
@media (min-width: 768px) {
  .stages--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-card:last-child { grid-column: 1 / -1; min-height: 9rem; }
}
@media (min-width: 1100px) {
  .stages--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage-card:last-child { grid-column: span 2; }
}
.stage-card__title { margin-top: 1rem; }
.stage-card__desc { text-wrap: wrap; }
.stage-card { min-height: 0; }

/* Эффект прокрутки на фото в «Обо мне» использует transform: даём ему плавность и не ломаем появление */
.about .gallery { will-change: filter; }

/* Холст с эффектом помех поверх фото: скрыт, пока нет прокрутки */
.gallery__fx { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; z-index: 1; transition: none; }
.about .gallery { will-change: auto; }

/* ===== Этапы работы: аккордеон. Открыт один этап, остальные приглушены; значок + превращается в × ===== */
.steps { margin-top: var(--pad); display: block; }
.step-item { border-top: 1px solid var(--line); }
.step-item:last-child { border-bottom: 1px solid var(--line); }
.step-item__h { margin: 0; font: inherit; }
.step-item__head {
  width: 100%; display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) 2rem; align-items: baseline; column-gap: 0.5rem;
  padding: clamp(1rem, 0.8rem + 0.8vw, 1.6rem) 0; text-align: left; color: var(--muted); cursor: pointer;
  transition: color 0.35s var(--ease);
}
.step-item__num { font-family: var(--f-text); font-size: var(--fs-small); }
.step-item__num::before { content: "[ "; } .step-item__num::after { content: " ]"; }
.step-item__title { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sub); line-height: 1.2; text-transform: uppercase; }
.step-item__icon { position: relative; justify-self: end; align-self: center; width: 1rem; height: 1rem; }
.step-item__icon::before, .step-item__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: currentColor; transition: transform 0.45s var(--ease); }
.step-item__icon::after { transform: rotate(90deg); }
.step-item__head:hover, .step-item.is-open .step-item__head { color: var(--text); }
.step-item.is-open .step-item__icon::before { transform: rotate(45deg); }
.step-item.is-open .step-item__icon::after { transform: rotate(-45deg); }
.step-item__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.step-item.is-open .step-item__body { grid-template-rows: 1fr; }
.step-item__inner { overflow: hidden; padding-left: 4.9rem; }
.step-item__inner p { padding-bottom: clamp(1rem, 0.8rem + 0.8vw, 1.6rem); max-width: 60ch; color: var(--text); font-size: var(--fs-text); line-height: var(--lh-text); opacity: 0; transform: translateY(-0.35rem); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.step-item.is-open .step-item__inner p { opacity: 1; transform: none; transition-delay: 0.1s; }
@media (max-width: 767px) { .step-item__head { grid-template-columns: 3.4rem minmax(0, 1fr) 1.5rem; } .step-item__inner { padding-left: 3.9rem; } }
@media (prefers-reduced-motion: reduce) { .step-item__body, .step-item__inner p, .step-item__icon::before, .step-item__icon::after { transition: none; } }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* Сноска про Instagram в панели слева */
.side__note { flex: 1 1 100%; margin: 0.25rem 0 0; font-size: 0.75rem; line-height: 1.35; color: var(--side-soft, var(--muted)); max-width: 40ch; }

/* Телефон: услуги подсвечиваются по очереди по мере прокрутки (то же, что при наведении на компьютере) */
@media (hover: none), (max-width: 1023px) {
  .price.is-active { background: transparent; background-color: color-mix(in srgb, var(--text) 6%, var(--bg)); box-shadow: -0.75rem 0 0 color-mix(in srgb, var(--text) 6%, var(--bg)), 0.75rem 0 0 color-mix(in srgb, var(--text) 6%, var(--bg)); }
  .price.is-active::before { transform: scale(1); }
  .price.is-active .price__title, .price.is-active .price__desc { transform: translateX(0.9rem); }
  .price.is-active .price__num, .price.is-active .price__desc { color: var(--text); }
  .price.is-active .price__label { color: var(--text); }
  .prices.has-active .price:not(.is-active) { opacity: 0.4; }
}

/* Сноска про Instagram: размер подсказок сайта, на всю ширину панели */
.side__note { font-size: var(--fs-small); line-height: var(--lh-text); max-width: none; width: 100%; }

/* Факты: без цифр, у первой строки каждого факта зелёный квадратик, как в меню */
.fact__title::after { content: none !important; }
.fact, .about__body .fact { position: relative; padding-left: 1.4rem !important; }
.fact::before {
  content: "" !important; display: block !important; position: absolute; left: 0; top: calc(var(--fs-text) * 0.675 - 0.275rem);
  width: 0.55rem; height: 0.55rem; margin: 0 !important; padding: 0 !important; background: var(--accent-text);
}

/* Этапы: номер в скобках стоит в степени после названия, как в ценах */
.step-item__head { grid-template-columns: minmax(0, 1fr) 2rem !important; }
.step-item__num { display: inline-block; vertical-align: top; margin-left: 0.5rem; margin-top: 0.15em; font-family: var(--f-text); font-weight: 400; font-size: var(--fs-small); line-height: 1; text-transform: none; }
.step-item__inner { padding-left: 0 !important; }

/* ===== Пиксельные помехи на заголовках при наведении (как на vlad-sn.space): поверх текста вспыхивает его копия, нарезанная полосами и сдвинутая ===== */
@media (min-width: 1100px) and (hover: hover) {
  .glitch { position: relative; }
  .glitch::before {
    content: attr(data-text);
    position: absolute; top: 0; left: 0; width: 100%;
    opacity: 0; pointer-events: none;
    text-transform: inherit; letter-spacing: inherit; line-height: inherit; text-wrap: inherit;
    --move1: inset(50% 50% 50% 50%);
    --move2: inset(31% 0 40% 0);
    --move3: inset(39% 0 15% 0);
    --move4: inset(45% 0 40% 0);
    --move5: inset(10% 0 6% 0);
    --move6: inset(14% 0 61% 0);
  }
  .glitch:hover::before,
  .price:hover .price__title.glitch::before,
  .step-item__head:hover .glitch::before,
  .card:hover .card__title.glitch::before {
    opacity: 1;
    animation: glitch 0.8s ease forwards;
    animation-timing-function: steps(2, end);
  }
  @keyframes glitch {
    0%   { clip-path: var(--move1); transform: translate(0, -0.2em); }
    10%  { clip-path: var(--move2); transform: translate(-0.2em, 0.2em); }
    20%  { clip-path: var(--move3); transform: translate(0.2em, 0); }
    30%  { clip-path: var(--move4); transform: translate(-0.2em, 0.2em); }
    40%  { clip-path: var(--move5); transform: translate(0.2em, -0.2em); }
    50%  { clip-path: var(--move6); transform: translate(-0.2em, 0.2em); }
    60%  { clip-path: var(--move1); transform: translate(0.2em, -0.2em); }
    70%  { clip-path: var(--move3); transform: translate(-0.2em, 0.2em); }
    80%  { clip-path: var(--move2); transform: translate(0.2em, -0.2em); }
    90%  { clip-path: var(--move4); transform: translate(-0.2em, 0.2em); }
    100% { clip-path: var(--move1); transform: translate(0); }
  }
}

/* Этапы в общем виде с ценами: название обычными буквами, тот же размер, номер в степени */
.step-item__title { font-size: var(--fs-h2) !important; line-height: 1.1 !important; text-transform: none !important; }
.step-item__head { padding-block: clamp(1rem, 0.8rem + 0.9vw, 1.75rem); }
.step-item__icon { align-self: start; margin-top: 0.7em; }
.step-item__inner p { font-size: var(--fs-text); }

/* Помехи только на заголовках блоков, первом экране, фразе в подвале и вступлении к форме */
@media (min-width: 1100px) and (hover: hover) {
  .price:hover .price__title.glitch::before, .step-item__head:hover .glitch::before, .card:hover .card__title.glitch::before { animation: none; opacity: 0; }
  .glitch::before { white-space: inherit; }
  .footer__big.glitch::before { white-space: nowrap; font-size: inherit; }
}

/* Плитки работ: вместо размытия при наведении помехи на фото (холст с шейдером), логотип остаётся поверх */
.work__fx { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; z-index: 1; }
.card:hover .work__img, .card:focus-visible .work__img { filter: none !important; transform: scale(1.001) !important; }
@media (hover: none) { .work__img { filter: none !important; } }
.card__media--photo::after { z-index: 1; }
.work__logo { z-index: 3; }

/* ===== Печать текста: буквы появляются по очереди ===== */
.tw { display: inline-block; white-space: nowrap; }
.js .typing .tc { opacity: 0; }
.js .typing.is-typed .tc { opacity: 1; transition: opacity 0.01s linear calc(var(--i) * var(--ts, 0.014s)); }
@media (prefers-reduced-motion: reduce) { .js .typing .tc { opacity: 1; } }

/* Звёздочка у Instagram крупнее */
.star { font-size: 1.5em; line-height: 0.5; vertical-align: -0.12em; display: inline-block; margin-left: 0.1em; }
.side__note .star { margin-left: 0; margin-right: 0.15em; }

/* Фото без эффекта появления: стоят на месте, помехи только при прокрутке (и при наведении на плитки) */
.js .card .card__media { clip-path: none !important; transition: background-color 0.5s var(--ease) !important; }
.js .card .frame { transform: translate(-50%, -50%) !important; transition: none !important; }
.hero__fx { position: absolute; opacity: 0; pointer-events: none; z-index: 1; filter: grayscale(1) contrast(1.05); transition: filter 0.6s var(--ease); }
.hero__figure { position: relative; }
.hero__figure:hover .hero__fx { filter: none; }
.js .hero__figure, .js .gallery { opacity: 1 !important; transform: none !important; filter: none; }

/* Ссылки в тексте (политика, согласие и др.): обычное подчёркивание самих слов, без отступа от текста */
.doclink, .check__text .doclink, .doc__body a { text-decoration: underline; text-decoration-thickness: auto; text-underline-offset: auto; text-decoration-color: currentColor; }
.check__text .doclink { color: var(--text); }
.check__text .doclink:hover { color: var(--accent-text); }

/* Телефон: подсвеченная услуга целиком внутри верхней и нижней линии, не выходит за их края; квадратик внутри плашки, заголовок сдвигается */
@media (hover: none), (max-width: 1023px) {
  .price.is-active { box-shadow: none !important; }
  .price::before { left: 0.3rem; }
  .price.is-active .price__title, .price.is-active .price__desc { transform: translateX(1.1rem); }
  .price.is-active .price__fact { transform: translateX(0.55rem); }
  .price.is-active .price__fact:nth-of-type(2) { transform: translateX(-0.55rem); }
}
@media (hover: none), (max-width: 1023px) {
  .price.is-active .price__title, .price.is-active .price__desc { width: calc(100% - 1.4rem); }
}

/* Факты: один абзац, начало фразы ярче, продолжение приглушённым цветом */
.fact__p { margin: 0; font-size: var(--fs-text); line-height: var(--lh-text); }
.fact__lead { color: var(--text); font-weight: 600; }
.fact__rest { color: var(--muted); }
.fact__p, .fact__p * { max-width: none; }

/* ===== Типографика: ровные переносы, без висячих предлогов ===== */
h1, h2, h3, .lead, .hero__title, .price__title { text-wrap: balance; }
p, .price__desc, .card__desc, .check__text { text-wrap: pretty; }

/* Обо мне по сетке: те же 12 колонок и тот же зазор, что у сетки-подсказки. Фото занимает колонки 1–5 до их края, текст начинается с 6-й колонки и стоит вровень с верхом фото */
@media (min-width: 1100px) {
  .about { grid-template-areas: none !important; grid-template-columns: repeat(12, minmax(0, 1fr)) !important; column-gap: var(--gap) !important; }
  .about .gallery { grid-area: auto !important; grid-column: 1 / span 5 !important; grid-row: 1 !important; }
  .about__body { grid-area: auto !important; grid-column: 6 / -1 !important; grid-row: 1 !important; margin-top: 0; padding-top: 0; }
  .about__body > :first-child { margin-top: 0; padding-top: 0; }
  .about .skills { grid-area: auto !important; grid-column: 1 / -1 !important; grid-row: 2 !important; }
}

/* Контакты по той же сетке: слева колонки 1–5, форма с 6-й колонки до правого края сетки */
@media (min-width: 1100px) {
  .contacts { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .contacts__side { grid-column: 1 / span 5; }
  .contacts > .form { grid-column: 6 / -1; }
}

/* Подвал: «Наверх» начинается с 6-й колонки сетки, документы заканчиваются у правого края */
@media (min-width: 700px) {
  .footer__bottom { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; column-gap: var(--gap) !important; }
  .footer__copy { grid-column: 1 / span 5; }
  .footer__up { grid-column: 6 / span 2; justify-self: start !important; }
  .footer__docs { grid-column: 8 / -1; justify-self: end; }
}

/* Помехи на заголовках один раз по мере прокрутки, на любом экране; после этого на ПК только по наведению */
.glitch { position: relative; }
.glitch.is-glitching::before {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%;
  pointer-events: none;
  text-transform: inherit; letter-spacing: inherit; line-height: inherit; text-wrap: inherit; white-space: inherit;
  --move1: inset(50% 50% 50% 50%);
  --move2: inset(31% 0 40% 0);
  --move3: inset(39% 0 15% 0);
  --move4: inset(45% 0 40% 0);
  --move5: inset(10% 0 6% 0);
  --move6: inset(14% 0 61% 0);
  opacity: 1;
  animation: glitch-scroll 0.8s steps(2, end) 2 forwards;
}
.footer__big.glitch.is-glitching::before { white-space: nowrap; font-size: inherit; }
@keyframes glitch-scroll {
  0%   { clip-path: var(--move1); transform: translate(0, -0.2em); }
  10%  { clip-path: var(--move2); transform: translate(-0.2em, 0.2em); }
  20%  { clip-path: var(--move3); transform: translate(0.2em, 0); }
  30%  { clip-path: var(--move4); transform: translate(-0.2em, 0.2em); }
  40%  { clip-path: var(--move5); transform: translate(0.2em, -0.2em); }
  50%  { clip-path: var(--move6); transform: translate(-0.2em, 0.2em); }
  60%  { clip-path: var(--move1); transform: translate(0.2em, -0.2em); }
  70%  { clip-path: var(--move3); transform: translate(-0.2em, 0.2em); }
  80%  { clip-path: var(--move2); transform: translate(0.2em, -0.2em); }
  90%  { clip-path: var(--move4); transform: translate(-0.2em, 0.2em); }
  100% { clip-path: var(--move1); transform: translate(0); opacity: 0; }
}

/* Квадратики: одинаковый размер и отступ до слова, как в фактах (0.55rem квадрат, 0.85rem до текста) — в ценах при наведении и на телефоне */
:root { --sq: 9px; --sq-gap: 0.85rem; }
.price::before { width: var(--sq); height: var(--sq); }
@media (hover: hover) and (min-width: 768px) {
  /* квадрат стоит на left: -0.75rem, текст отъезжает ровно на «квадрат + отступ» */
  .price:hover .price__num, .price:hover .price__body,
  .price:hover .price__title, .price:hover .price__desc { transform: translateX(calc(var(--sq) + var(--sq-gap) - 0.75rem)); }
  .price:hover .price__fact { transform: none; }
  .price:hover .price__title .price__num { transform: none; }
}
@media (hover: none), (max-width: 1023px) {
  .price.is-active .price__title, .price.is-active .price__desc { transform: translateX(calc(0.3rem + var(--sq) + var(--sq-gap))); width: calc(100% - 0.3rem - var(--sq) - var(--sq-gap)); }
}

/* Ссылки в галочке согласия: подчёркнуты и приглушённого цвета проекта; при наведении светлеют */
.check__text .doclink { color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: currentColor; }
.check__text .doclink:hover, .check__text .doclink:focus-visible { color: var(--text); }

/* Цены: подсветка — контейнер строго между верхней и нижней линиями (линии остаются снаружи и не закрашиваются), квадратик внутри контейнера с отступом от его края; на ПК и на телефоне */
:root { --sq-left: -0.25rem; }
.price { isolation: isolate; }
.price::after {
  content: ""; position: absolute; inset: 0 -0.75rem; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.price:hover::after, .price.is-active::after { opacity: 1; }
.price:hover, .price.is-active { background: none !important; background-color: transparent !important; box-shadow: none !important; }
.price::before { left: var(--sq-left); }
@media (hover: hover) and (min-width: 768px) {
  .price:hover .price__num, .price:hover .price__body,
  .price:hover .price__title, .price:hover .price__desc { transform: translateX(calc(var(--sq-left) + var(--sq) + var(--sq-gap))); }
  .price:hover .price__fact, .price:hover .price__title .price__num { transform: none; }
}
@media (hover: none), (max-width: 1023px) {
  .price.is-active .price__title, .price.is-active .price__desc { transform: translateX(calc(var(--sq-left) + var(--sq) + var(--sq-gap))); width: calc(100% - var(--sq-left) - var(--sq) - var(--sq-gap)); }
}

/* Меню-бургер (телефон и планшет): ссылки и сноска про Meta прижаты к низу экрана */
@media (max-width: 1023px) {
  .side__panel { min-height: min-content; padding-bottom: max(var(--gutter), env(safe-area-inset-bottom)); }
  .side__foot { margin-top: auto; }
}

/* «Другое»: срок и цена словами, поэтому обычным размером текста и с переносом, чтобы не налезали друг на друга */
.price--custom .price__value { font-size: var(--fs-text); line-height: 1.2; white-space: normal; overflow-wrap: break-word; hyphens: manual; }

/* Заголовки блоков не печатаются по буквам: стоят сразу, а помехи играют сразу при появлении */
.js .ch { opacity: 1 !important; transition: none !important; }

/* Обо мне: верх букв вступления на уровне верха фото (убираем пустое место над строкой: половина интерлиньяжа и запас шрифта) */
@media (min-width: 1100px) {
  .about__body > .lead { margin-top: -0.25em; }
}

/* Ссылки в галочке: слова печатаются отдельными блоками, подчёркивание ставим на каждое слово, а не только на пробелы между ними */
.check__text .doclink .tw { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: currentColor; }

/* Галочка: квадратик стоит по центру первой строки текста, а не по центру всей фразы */
.check { align-items: flex-start; }
.check__box { margin-top: calc((var(--fs-text) * var(--lh-text) - 1.5rem) / 2); }

/* Телефон: сначала заголовок, ниже фото (подписи под ним), затем описание и кнопки */
@media (max-width: 767px) {
  .hero { grid-template-rows: auto auto 1fr; }
  .hero__text { grid-column: 1; grid-row: 1; }
  .hero__figure { grid-column: 1; grid-row: 2; order: 0; }
  .hero__lower { grid-column: 1; grid-row: 3; }
}

/* Фото на главном экране по ширине колонок сетки: на ПК две колонки (11–12), на планшете и телефоне одна (из четырёх). Подпись остаётся под фото своей ширины, у правого края */
.hero { container-type: inline-size; }
.hero__figure { width: auto; align-items: flex-end; justify-self: end; }
.hero__photo { width: calc((100cqw - 3 * var(--gap)) / 4); }
@media (min-width: 1024px) {
  .hero__photo { width: calc((100cqw - 11 * var(--gap)) / 6 + var(--gap)); }
}

/* Контакты: вступление к форме тем же шрифтом и размером, что вступление в «Обо мне» («Я Полина Гусева, веб-дизайнер…») — на всех экранах */
.contacts__side .lead {
  font-family: var(--f-head); font-weight: 700;
  font-size: var(--fs-sub); line-height: 1.25;
  text-transform: none; letter-spacing: normal;
  text-wrap: wrap;
}

/* Телефон: «Что нужно сделать» — выпадающий список; кнопка видна только здесь */
.types__toggle { display: none; }
.types__list { display: contents; }
@media (max-width: 767px) {
  .types { display: block; }
  .types__toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    width: 100%; min-height: 2.75rem; padding: 0.5rem 0; text-align: left;
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    color: var(--text); font: inherit; font-size: var(--fs-text);
    transition: border-color 0.3s var(--ease);
  }
  .types__toggle:hover, .types.is-open .types__toggle { border-bottom-color: var(--muted); }
  .types__icon { position: relative; flex: none; width: 0.9rem; height: 0.9rem; }
  .types__icon::before, .types__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 0.9rem; height: 1px; background: currentColor; transition: transform 0.35s var(--ease); }
  .types__icon::before { transform: translate(-50%, -50%); }
  .types__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
  .types.is-open .types__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
  .types__list { display: none; flex-direction: column; gap: 0.5rem; padding-top: 0.75rem; }
  .types.is-open .types__list { display: flex; }
  .types .chip { flex: 0 0 auto; }
  .types .chip span { width: 100% !important; justify-content: flex-start; }

  /* Кнопка «Отправить» на всю ширину сетки */
  .form .btn--wide { width: 100% !important; align-self: stretch; }
}

/* Подчёркнуты только ссылки в галочке согласия; в футере ссылки на документы без подчёркивания (в том числе отдельные слова) */
.footer__docs .doclink, .footer__docs .doclink .tw, .footer__docs a { text-decoration: none !important; }

/* Телефон: раскрытый список «Что нужно сделать» — единый блок на том же фоне, что подсвеченная строка в ценах */
@media (max-width: 767px) {
  .types.is-open .types__toggle, .types.is-open .types__list { background: color-mix(in srgb, var(--text) 6%, var(--bg)); margin-inline: -0.75rem; padding-inline: 0.75rem; width: calc(100% + 1.5rem); }
  .types.is-open .types__toggle { border-bottom-color: transparent; }
  .types.is-open .types__list { padding-top: 0.25rem; padding-bottom: 0.75rem; }
}

/* Вместо звёздочки — наш квадратик: в ссылке Instagram белый, в сноске про Meta чёрный; от текста на том же расстоянии, что у остальных квадратиков, и по центру высоты букв */
.mark { display: inline-block; width: var(--sq); height: var(--sq); vertical-align: calc(0.36em - var(--sq) / 2); background: currentColor; }
.blink .mark { margin-left: var(--sq-gap); background: var(--text); }
.side__note .mark { margin-right: var(--sq-gap); background: var(--bg); }

/* Пиксельная улыбка у главного заголовка: зелёные квадраты, глаза сверху, улыбка снизу; стоит через пробел от последнего слова и чуть ниже строки, будто сползла */
.hero__tail { white-space: nowrap; }
.hero__title .smile {
  /* квадрат улыбки = толщина штриха букв заголовка (0.16em): смайлик как будто нарисован шрифтом заголовка, 7×5 квадратов, высота почти как у заглавных */
  display: inline-block; width: calc(7 * 0.16em); height: calc(5 * 0.16em); margin-left: 0.3em; vertical-align: baseline; position: relative; top: 0.56em; /* глаза чуть выше нижней грани букв, улыбка свисает под строку, а высота строки не растёт */
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%207%205%22%20shape-rendering%3D%22crispEdges%22%20fill%3D%22%233f9669%22%3E%3Crect%20x%3D%221%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
  image-rendering: pixelated;
}

/* Все квадратики на сайте одного размера (--sq): маркеры меню, цен, фактов, футера, галочки, ссылок в подвале и сноски */
.nav__link::before, .skills__row::before, .card__title::before, .check__box::after, .flink::before, .fact::before, .fact::after,
.price::before, .footer__meta .sq, .mark { width: var(--sq) !important; height: var(--sq) !important; }

/* Улыбка у заголовка: помехи с тем же поведением, что у самого заголовка (один раз при появлении, дальше на ПК по наведению) */
.hero__title .smile { position: relative; }
.hero__title .smile::before {
  content: ""; position: absolute; inset: 0; background: inherit; image-rendering: pixelated; pointer-events: none; opacity: 0;
  --move1: inset(50% 50% 50% 50%);
  --move2: inset(31% 0 40% 0);
  --move3: inset(39% 0 15% 0);
  --move4: inset(45% 0 40% 0);
  --move5: inset(10% 0 6% 0);
  --move6: inset(14% 0 61% 0);
}
.hero__title.is-glitching .smile::before { opacity: 1; animation: glitch-scroll 0.8s steps(2, end) 2 forwards; }
@media (min-width: 1100px) and (hover: hover) {
  .hero__title:hover .smile::before { opacity: 1; animation: glitch-scroll 0.8s steps(2, end) forwards; }
}

/* Цены: при наведении (и у активной услуги на телефоне) верхняя и нижняя линии дорисовываются до ширины подсвеченной области, потом снова становятся обычными */
.price::after { top: -1px; bottom: -1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Пиксельный «палец вверх» после фразы в футере: сплошной зелёный, квадрат такой же, как у смайлика у заголовка (0.16 от размера шрифта главного заголовка). Помехи как у смайлика */
.footer__big .ok {
  display: inline-block; position: relative; vertical-align: baseline; top: -0.5em; margin-left: 0.25em;
  width: calc(7 * 0.16 * var(--fs-h1)); height: calc(7 * 0.16 * var(--fs-h1));
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%207%207%22%20shape-rendering%3D%22crispEdges%22%20fill%3D%22%233f9669%22%3E%3Crect%20x%3D%223%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; image-rendering: pixelated;
}
.footer__big .ok::before {
  content: ""; position: absolute; inset: 0; background: inherit; image-rendering: pixelated; pointer-events: none; opacity: 0;
  --move1: inset(50% 50% 50% 50%);
  --move2: inset(31% 0 40% 0);
  --move3: inset(39% 0 15% 0);
  --move4: inset(45% 0 40% 0);
  --move5: inset(10% 0 6% 0);
  --move6: inset(14% 0 61% 0);
}
.footer__big.is-glitching .ok::before { opacity: 1; animation: glitch-scroll 0.8s steps(2, end) 2 forwards; }
@media (min-width: 1100px) and (hover: hover) {
  .footer__big:hover .ok::before { opacity: 1; animation: glitch-scroll 0.8s steps(2, end) forwards; }
}
/* Телефон: палец над всем заголовком (справа), чтобы не разъединять строки */
@media (max-width: 699px) {
  .footer__big { position: relative; margin-top: calc(7 * 0.16 * var(--fs-h1) + 0.65em) !important; }
  .footer__big .ok { position: absolute; top: calc(-7 * 0.16 * var(--fs-h1) - 0.65em); right: 0; margin-left: 0; }
}

/* Телефон, список «Что нужно сделать»: значок рядом со словом; сами варианты — обычные кнопки-плашки (скобки по краям, зелёная заливка у выбранного), по ширине слова; подсвеченное поле вокруг списка остаётся на всю ширину */
@media (max-width: 767px) {
  .types__toggle { justify-content: flex-start; gap: 0.75rem; }
  .types.is-open .types__list { align-items: flex-start; gap: 0.5rem; padding-inline: 0.75rem; padding-top: 0.25rem; padding-bottom: 0.75rem; }
  .types__list .chip { display: inline-block; flex: 0 0 auto; }
  .types__list .chip span { display: inline-flex; width: auto !important; justify-content: flex-start; }
}

/* Квадратики появляются вместе с текстом, к которому относятся, а не висят заранее */
.js .fact::before, .js .side__note .mark, .js .footer__meta .sq { transition: opacity 0.25s var(--ease); }
.js .fact:not(.is-typed)::before { opacity: 0; }
.js .side__note.typing:not(.is-typed) .mark { opacity: 0; }
.js .footer__meta.typing:not(.is-typed) .sq { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .fact::before, .js .side__note .mark, .js .footer__meta .sq { opacity: 1 !important; }
}

/* Всё, что раньше стояло на месте с самого начала (ссылки меню, кнопки первого экрана, фото, «Наверх»), теперь проявляется в общей очереди вместе с печатью */
.js .hero [data-reveal]:not(.is-in), .js .nav__link[data-reveal]:not(.is-in), .js .side__foot .blink[data-reveal]:not(.is-in),
.js .hero__figure[data-reveal]:not(.is-in), .js .gallery[data-reveal]:not(.is-in), .js .footer__up[data-reveal]:not(.is-in) { opacity: 0 !important; }
.js .hero [data-reveal].is-in, .js .nav__link[data-reveal].is-in, .js .side__foot .blink[data-reveal].is-in,
.js .hero__figure[data-reveal].is-in, .js .gallery[data-reveal].is-in, .js .footer__up[data-reveal].is-in { animation: qfade 0.4s var(--ease) both; }
@keyframes qfade { from { opacity: 0; } to { opacity: 1; } }

/* Левое меню не печатается и не проявляется: стоит на месте сразу, как есть */
.js .side__bar, .js .side__role, .js .side__foot, .js .nav__link, .js .side__foot .blink {
  opacity: 1 !important; transform: none !important; animation: none !important;
}
.js .side__bar, .js .side__role, .js .side__foot { transition: none !important; }

/* «Отправить»: проявляется последней, так же, как кнопки первого экрана */
.js .form .btn--wide[data-reveal]:not(.is-in) { opacity: 0 !important; pointer-events: none; }
.js .form .btn--wide[data-reveal].is-in { animation: qfade 0.4s var(--ease) both; }

/* Согласие на обработку персональных данных: размер шрифта как у остального текста */
.check, .check__text { font-size: var(--fs-text); line-height: var(--lh-text); }

/* Этапы работы: у раскрытого пункта заголовок и крестик зелёные, у остальных обычные */
.step-item.is-open .step-item__head, .step-item.is-open .step-item__head:hover { color: var(--accent-text); }
.step-item.is-open .step-item__num { color: var(--muted); }

/* Меню-бургер (телефон и планшет): ссылки почты, Telegram, Pinterest, Instagram такого же размера и шрифта, как остальные кнопки сайта на телефоне */
@media (max-width: 1023px) {
  .side__foot .blink, .side__foot .blink--mail, .side__foot .blink:not(.blink--mail) {
    font-size: var(--fs-small) !important; letter-spacing: 0.05em !important;
    min-height: 2.75rem !important; padding-inline: 1.4rem !important;
  }
  .side__foot { gap: 0.5rem !important; }
}

/* Подвал, планшет и малый ноутбук: длинные названия документов переносятся на две строки и не налезают на «Наверх» */
@media (min-width: 700px) {
  .footer__docs .doclink { white-space: normal; }
  .footer__docs { text-align: right; }
}

/* «Наверх» никогда не переносит буквы: слово в одну строку, под него отведено три колонки там, где две узкие */
@media (min-width: 700px) {
  .footer__up { white-space: nowrap; word-break: keep-all; overflow-wrap: normal; min-width: max-content; }
}
@media (min-width: 700px) and (max-width: 1279px) {
  .footer__up { grid-column: 6 / span 3; }
  .footer__docs { grid-column: 9 / -1; }
}

/* Подвал на узких экранах (до 699 px): «Наверх» справа над всем, под крупной фразой;
   ниже в одну линию копирайт слева и документы справа, слова документов переносятся на строку ниже */
@media (max-width: 699px) {
  .footer__bottom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas: "up up" "copy docs" !important;
    align-items: start !important; row-gap: 1.25rem !important; column-gap: 1.5rem !important;
  }
  .footer__up { grid-area: up !important; justify-self: end !important; width: auto !important; }
  .footer__copy { grid-area: copy !important; }
  .footer__bottom .footer__docs { grid-area: docs !important; justify-self: end !important; align-items: flex-end !important; text-align: right; }
  .footer__docs .doclink { white-space: normal; }
}
/* Совсем узкий телефон: два столбца уже не помещаются, документы встают под копирайт слева */
@media (max-width: 479px) {
  .footer__bottom { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "up" "copy" "docs" !important; }
  .footer__bottom .footer__docs { justify-self: start !important; align-items: flex-start !important; text-align: left; }
}
