/* ==========================================================================
   PROTOTYPE-IT.STUDIO — стили сайта
   Wappler styleFile: /css/style.css (подключается после Bootstrap 5)

   Палитра и шрифты — в :root. Акцентный цвет один: --accent.
   Анимации отключаются автоматически при prefers-reduced-motion.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #0e0e0e;
  --muted: #6b6b6b;
  --line: #e8e8e6;
  --soft: #f5f5f3;
  --accent: #ff4d1a;
  --night: #0d0d0d;

  --font: 'Inter Tight', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: 56px;
  --header-h: 84px;

  /* Bootstrap 5.3 */
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-heading-color: inherit;
  --bs-link-color-rgb: 14, 14, 14;
  --bs-link-hover-color-rgb: 14, 14, 14;
}

/* ---------- Base ---------- */

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* разделы получают фокус при переходе по якорю — рамка им не нужна */
[tabindex="-1"]:focus {
  outline: none;
}

.container {
  max-width: calc(1340px + var(--gutter) * 2);
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 2000;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.h-section {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.04em;
}

/* Правило: оранжевый акцент всегда квадратный (как квадрат в логотипе).
   Финальная «точка» заголовка — квадрат на базовой линии, чуть меньше круглой точки шрифта
   (квадрат той же ширины выглядит крупнее). */
.accent-dot {
  display: inline-block;
  width: .15em;
  height: .15em;
  margin-left: .05em;
  vertical-align: baseline;
  background: var(--accent);
}

/* Диагональная стрелка: при наведении «пролетает» и возвращается */
.arr {
  position: relative;
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  overflow: hidden;
}

.arr svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ease-out);
}

.arr svg + svg {
  transform: translate(-115%, 115%);
}

a:hover .arr svg:first-child,
button:hover .arr svg:first-child {
  transform: translate(115%, -115%);
}

a:hover .arr svg + svg,
button:hover .arr svg + svg {
  transform: none;
}

.arr--down {
  transform: rotate(135deg);
}

.arr--up {
  transform: rotate(-45deg);
}

/* ---------- Buttons (Bootstrap .btn + своя тема) ---------- */

.btn {
  --bs-btn-font-family: var(--font);
  --bs-btn-font-weight: 600;
  --bs-btn-font-size: 14px;
  --bs-btn-line-height: 1.2;
  --bs-btn-padding-x: 22px;
  --bs-btn-padding-y: 14px;
  --bs-btn-border-radius: 10px;
  --bs-btn-focus-box-shadow: 0 0 0 3px rgba(255, 77, 26, .35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.btn.btn-sm {
  --bs-btn-padding-x: 16px;
  --bs-btn-padding-y: 11px;
  --bs-btn-font-size: 13px;
  --bs-btn-border-radius: 9px;
  gap: 10px;
}

.btn.btn-lg {
  --bs-btn-padding-x: 28px;
  --bs-btn-padding-y: 19px;
  --bs-btn-font-size: 15px;
  --bs-btn-border-radius: 12px;
  gap: 14px;
}

.btn-ink {
  --bs-btn-color: var(--bg);
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-color: #0e0e0e;
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-active-color: #0e0e0e;
  --bs-btn-active-bg: var(--accent);
  --bs-btn-active-border-color: var(--accent);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* заливка акцентом снизу вверх */
.btn-ink::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}

.btn-ink:hover::before,
.btn-ink:focus-visible::before {
  transform: none;
}

.magnetic {
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform .4s var(--ease-out), color .3s, background-color .3s, border-color .3s, box-shadow .2s;
}

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.link-arrow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform-origin: 100% 50%;
}

.link-arrow:hover::after {
  animation: sweep .8s var(--ease-out);
}

@keyframes sweep {
  0% { transform: scaleX(1); transform-origin: 100% 50%; }
  45% { transform: scaleX(0); transform-origin: 100% 50%; }
  46% { transform: scaleX(0); transform-origin: 0 50%; }
  100% { transform: scaleX(1); transform-origin: 0 50%; }
}

.icon-btn {
  display: inline-grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .3s;
}

.icon-btn:hover {
  border-color: var(--ink);
}

.icon-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .45s var(--ease-out);
}

.burger:hover span:first-child { transform: translateX(3px); }
.burger:hover span:last-child { transform: translateX(-3px); }
.close-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.close-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.close-btn:hover span:first-child { transform: translateY(3.25px) rotate(135deg); }
.close-btn:hover span:last-child { transform: translateY(-3.25px) rotate(45deg); }

/* ---------- Header ---------- */

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1035;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--header-h);
  transition: transform .5s var(--ease);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .35s;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header.is-hidden:not(:focus-within) {
  transform: translateY(-100%);
}

.site-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.brand__mark {
  flex: none;
  width: 22px;
  height: 22px;
  overflow: visible;
}

.brand__mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

.brand__sq {
  fill: var(--accent);
  transition: transform .6s var(--ease-out);
}

.brand:hover .brand__sq {
  transform: translate(-4px, -4px);
}

.brand__tld {
  color: var(--muted);
  font-weight: 600;
}

.site-nav {
  gap: 34px;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .5s var(--ease-out), background-color .3s;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.site-nav a.is-active::after {
  background: var(--accent);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Переключатель языка с «плавающей» подложкой */
.lang {
  position: relative;
  display: inline-flex;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang a {
  position: relative;
  z-index: 1;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--muted);
  border-radius: 999px;
  transition: color .35s;
}

.lang a:hover {
  color: var(--ink);
}

.lang a.is-active {
  color: var(--bg);
}

.lang__pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: var(--w, 0);
  background: var(--ink);
  border-radius: 999px;
  transform: translateX(var(--x, 0));
}

.lang.is-ready .lang__pill {
  transition: transform .55s var(--ease-out), width .55s var(--ease-out);
}

/* ---------- Mobile menu (Bootstrap Offcanvas) ---------- */

.menu.offcanvas {
  --bs-offcanvas-height: 100%;
  --bs-offcanvas-bg: var(--bg);
  --bs-offcanvas-color: var(--ink);
  --bs-offcanvas-transition: transform .6s var(--ease-out);
  border: 0;
}

.menu__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.menu__top {
  flex: none;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: clamp(16px, 7vh, 72px);
}

.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(36px, 10vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.045em;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .5s var(--ease), transform .8s var(--ease-out);
}

.menu.showing .menu__nav a,
.menu.show .menu__nav a {
  opacity: 1;
  transform: none;
}

.menu__nav a:nth-child(1) { transition-delay: .12s; }
.menu__nav a:nth-child(2) { transition-delay: .18s; }
.menu__nav a:nth-child(3) { transition-delay: .24s; }

.menu__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted);
  transform: translateY(-1.4em);
}

.menu__foot {
  margin-top: auto;
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu__mail {
  font-family: var(--mono);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(600px, calc(100vh - var(--header-h)), 980px);
  min-height: clamp(600px, calc(100svh - var(--header-h)), 980px);
  padding-block: clamp(40px, 6vh, 96px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  /* текстовый блок (вместе с лентой за ним) — по центру свободной высоты */
  margin-block: auto;
}

/* на вертикальных экранах первый экран — по высоте контента, без пустоты снизу */
@media (max-width: 991.98px) and (orientation: portrait) {
  .hero {
    min-height: 0;
  }
}

.hero__title {
  margin: 0 0 30px;
  /* самая длинная строка («от прототипа до готового решения.») ≈ 15.4em:
     шрифт подстраивается под ширину контейнера, чтобы на десктопе было 3 строки.
     Если меняете текст заголовка — проверьте этот делитель. */
  font-size: clamp(40px, min(6vw, calc((min(100vw - 2 * var(--gutter), 1340px) - 16px) / 15.6)), 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero .lead {
  max-width: 520px;
  margin: 0 0 40px;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.hero__lines {
  position: absolute;
  z-index: 1;
  /* SVG накрывает весь hero; положение ленты считает site.js от текста */
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hero__lines path {
  fill: none;
  stroke: #9b9b98;
  stroke-width: 1;
  opacity: .7;
}

.hero__dots .halo {
  fill: var(--accent);
  opacity: .16;
}

.hero__dots .core {
  fill: var(--accent);
}

/* «Листайте» — в ряду кнопок, прижато вправо: горизонтальная ось «действия слева — подпись справа» */
.hero__actions .scroll-cue {
  margin-left: auto;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: row-reverse; /* линия-индикатор — по правому краю */
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 40%;
  background: var(--ink);
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
  from { transform: translateY(-100%); }
  to { transform: translateY(260%); }
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee__group li {
  display: inline-flex;
  align-items: center;
  font-size: clamp(28px, 3.8vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.marquee__group li::after {
  content: '';
  flex: none;
  width: .2em;
  height: .2em;
  margin-inline: .7em;
  background: var(--accent);
  transform: rotate(45deg);
}

.marquee__group li:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(84px, 10vw, 150px);
}

.section-head {
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-intro {
  max-width: 360px;
  margin: 0 0 6px auto;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Services ---------- */

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.service-list > li {
  border-top: 1px solid var(--line);
}

.service {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 44px 56px minmax(0, 1.05fr) minmax(0, 1fr) 28px;
  grid-template-areas: "num icon title desc arrow";
  align-items: center;
  column-gap: 24px;
  padding: 30px 0;
}

.service::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -18px;
  background: var(--soft);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .55s var(--ease-out);
}

.service::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .8s var(--ease-out);
}

.service:hover::before,
.service:focus-visible::before {
  transform: none;
}

.service:hover::after,
.service:focus-visible::after {
  transform: none;
}

.service__num {
  grid-area: num;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  transition: color .3s;
}

.service:hover .service__num {
  color: var(--accent);
}

.service__icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
}

.service__icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service__icon .ac {
  stroke: var(--accent);
}

.service__icon .ac-fill {
  fill: var(--accent);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
}

.service:hover .service__icon .ac-fill {
  animation: pop .6s var(--ease-out);
}

@keyframes pop {
  40% { transform: scale(1.8); }
}

.service__title {
  grid-area: title;
  margin: 0;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.03em;
  transition: transform .6s var(--ease-out);
}

.service:hover .service__title {
  transform: translateX(8px);
}

.service__desc {
  grid-area: desc;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
}

.service__arrow {
  grid-area: arrow;
  justify-self: end;
}

.service__arrow .arr {
  width: 18px;
  height: 18px;
  display: block;
}

/* ---------- Process ---------- */

.steps {
  margin-bottom: 0;
}

.step {
  position: relative;
  padding-top: 30px;
}

.step__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}

.step__bar i {
  position: absolute;
  left: 0;
  right: 0;
  top: -.5px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

.step__bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: -3.5px;
  width: 8px;
  height: 8px;
  background: var(--line);
  transition: background-color .4s;
}

.step.is-active .step__bar::before {
  background: var(--accent);
}

.step__num {
  display: block;
  font-size: clamp(44px, 4.4vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px #bdbdba;
  transition: color .7s var(--ease), -webkit-text-stroke-color .7s var(--ease);
}

.step.is-active .step__num,
html:not(.js) .step__num {
  color: var(--ink);
  -webkit-text-stroke-color: var(--ink);
}

.step__title {
  margin: 24px 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.step__text {
  max-width: 260px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Footer / contact (тёмная панель) ---------- */

.site-footer {
  --ink: #f2f2ef;
  --bg: var(--night);
  --muted: #8f8f8b;
  --line: #272727;
  --soft: #171717;
  color: var(--ink);
}

.site-footer__panel {
  padding-top: clamp(96px, 11vw, 168px);
  overflow: hidden;
  background: var(--night);
  clip-path: inset(0 var(--inset, 0px) round var(--radius, 0px));
}

.contact__title {
  max-width: 11em;
  margin: 0 0 clamp(40px, 5vw, 72px);
  font-size: clamp(44px, 7.4vw, 120px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.05em;
}

.contact__grid {
  padding-bottom: 0;
}

.contact__text {
  max-width: 440px;
  margin: 0 0 clamp(28px, 3vw, 44px);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Почта в блоке контактов ---------- */

.contact__mail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.mail-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  max-width: 100%;
  padding-bottom: 8px;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--ink);
}

.mail-link__text {
  overflow-wrap: anywhere;
}

.mail-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.mail-link::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .7s var(--ease-out);
}

.mail-link:hover::before,
.mail-link:focus-visible::before {
  transform: none;
}

.mail-link .arr {
  width: .5em;
  height: .5em;
}

.mail-link .arr svg {
  stroke-width: 1.6;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-top: 14px;
}

/* Колонки «почта» и «бриф» одной высоты: верх текста = верх карточки,
   низ блока почты = низ карточки (на любой ширине ≥ 992px). */
@media (min-width: 992px) {
  .contact__main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .brief {
    height: 100%;
    align-items: stretch;
  }

  .brief__doc {
    align-self: start;
  }

  .brief__cta {
    margin-top: auto;
  }
}

.contact__note {
  max-width: 380px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Карточка брифа ---------- */

.brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 2.2vw, 32px);
  padding: clamp(24px, 2.6vw, 36px);
  color: var(--ink);
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color .4s, background-color .4s;
}

.brief:hover,
.brief:focus-visible {
  background: #161616;
  border-color: #3a3a38;
}

.brief__doc {
  width: clamp(72px, 7vw, 96px);
  transition: transform .7s var(--ease-out);
}

.brief:hover .brief__doc {
  transform: translateY(-4px) rotate(-2deg);
}

.brief__doc svg {
  display: block;
  width: 100%;
  height: auto;
}

.brief__doc .page { fill: #1b1b1b; stroke: #3a3a38; stroke-width: 1.5; }
.brief__doc .fold { fill: none; stroke: #3a3a38; stroke-width: 1.5; }
.brief__doc .mark { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.brief__doc .sq { fill: var(--accent); }
.brief__doc .ttl { fill: var(--ink); }
.brief__doc .txt { stroke: #4a4a48; stroke-width: 2; stroke-linecap: round; }
.brief__doc .box { fill: #2a2a28; }

/* «заполнение» полей брифа: при появлении и при наведении */
.brief__doc .fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.js .brief .fill {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s var(--ease-out) .5s;
}

.js .brief .fill + .fill {
  transition-delay: .8s;
}

.js .brief.is-in .fill {
  stroke-dashoffset: 0;
}

.js .brief:hover .fill {
  animation: redraw 1s var(--ease-out);
}

.js .brief:hover .fill + .fill {
  animation-delay: .2s;
  animation-fill-mode: backwards;
}

.brief__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.brief__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.brief__title {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.brief__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.brief__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-bottom: 5px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}

/* ---------- «Как мы начинаем» ---------- */

.start {
  margin-top: clamp(64px, 7vw, 104px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.start__list {
  margin-bottom: 0;
}

.start__item {
  position: relative;
  height: 100%;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.start__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 56px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + 300ms);
}

.start__item.is-in::before,
html:not(.js) .start__item::before {
  transform: none;
}

.start__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--accent);
}

.start__title {
  margin: 14px 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}

.start__text {
  max-width: 320px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.copy {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.copy__hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}

.copy.is-done .copy__hint {
  color: var(--accent);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 26px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.to-top .arr {
  width: 12px;
  height: 12px;
}

.wordmark-wrap {
  overflow: hidden;
  padding-top: clamp(8px, 2vw, 24px);
  padding-bottom: clamp(10px, 1.2vw, 18px);
}

/* Крупный логотип: «прожектор» следует за курсором (site.js) */
.wordmark {
  display: inline-block;
  padding-bottom: .02em;
  font-size: 15vw;
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: radial-gradient(circle at var(--mx, 30%) var(--my, 50%), #fff 0, rgba(255, 255, 255, .85) 7%, rgba(255, 255, 255, .13) 30%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* квадратная «точка» в конце крупного логотипа — перекличка с квадратом в логотипе шапки */
.wordmark .dot {
  display: inline-block;
  width: .15em;
  height: .15em;
  margin-left: .05em;
  vertical-align: baseline;
  background: var(--accent);
}

/* ---------- Reveal-анимации (только когда JS доступен) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.ln {
  display: block;
  overflow: hidden;
  padding: .05em 0 .14em;
  margin: -.05em 0 -.14em;
}

.ln__in {
  display: inline-block;
}

.js [data-split] .ln__in {
  transform: translateY(115%);
  transition: transform 1.15s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
}

.js [data-split].is-in .ln__in {
  transform: none;
}

.js [data-scramble] {
  opacity: 0;
  transition: opacity .4s;
}

.js [data-scramble].is-in {
  opacity: 1;
}

.hero__title { --d: 120ms; }
.hero .lead { --d: 420ms; }
.hero__actions { --d: 560ms; }

.js .hero__lines path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms + 300ms);
}

.js .hero__lines.is-drawn path {
  stroke-dashoffset: 0;
}

.js .hero__dots {
  opacity: 0;
  transition: opacity 1.2s 1.8s;
}

.js .hero__lines.is-drawn .hero__dots {
  opacity: 1;
}

.js .service__icon svg > :not(.ac-fill) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + 250ms);
}

.js .is-in .service__icon svg > :not(.ac-fill) {
  stroke-dashoffset: 0;
}

.js .service:hover .service__icon svg > :not(.ac-fill) {
  animation: redraw 1.1s var(--ease-out);
}

@keyframes redraw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.js .wordmark {
  transform: translateY(105%);
  transition: transform 1.4s var(--ease-out);
}

.js .wordmark-wrap.is-in .wordmark {
  transform: none;
}

/* плавная смена текста при переключении языка */
.i18n-in {
  animation: i18nIn .6s var(--ease-out) both;
}

@keyframes i18nIn {
  from { opacity: 0; filter: blur(4px); }
  to { opacity: 1; filter: none; }
}

/* ---------- Китайский: без отрицательного трекинга ---------- */

html[lang^="zh"] .hero__title,
html[lang^="zh"] .h-section,
html[lang^="zh"] .contact__title,
html[lang^="zh"] .menu__nav a {
  letter-spacing: 0;
  line-height: 1.16;
}

html[lang^="zh"] .service__title,
html[lang^="zh"] .step__title,
html[lang^="zh"] .marquee__group li {
  letter-spacing: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
  :root { --gutter: 40px; }
}

@media (max-width: 991.98px) {
  :root { --gutter: 28px; --header-h: 76px; }

  .hero__lines {
    opacity: .8;
  }

  .section-intro {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .service {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    grid-template-areas:
      "icon title arrow"
      "icon desc arrow";
    column-gap: 16px;
    row-gap: 4px;
    padding: 22px 0;
  }

  .service::before {
    inset: 0 -10px;
  }

  .service__num {
    display: none;
  }

  .service__icon {
    width: 40px;
    height: 40px;
  }

  .service__desc {
    font-size: 14px;
  }
}

@media (max-width: 575.98px) {
  :root { --gutter: 18px; --header-h: 68px; }

  .brand { font-size: 14px; gap: 8px; }
  .brand__mark { width: 18px; height: 18px; }

  .hero__title {
    /* первая строка («Бизнес-приложения») помещается целиком */
    font-size: clamp(30px, calc((100vw - 2 * var(--gutter)) / 9.3), 52px);
    letter-spacing: -.04em;
  }

  .hero__lines {
    opacity: .7;
  }

  .eyebrow {
    font-size: 10.5px;
    letter-spacing: .14em;
    margin-bottom: 24px;
  }

  .step__title { font-size: 17px; margin-top: 20px; }
  .step__text { font-size: 14px; }

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

  /* карточка брифа: мини-документ над текстом, чтобы тексту хватало ширины */
  .brief { grid-template-columns: 1fr; }
  .brief__doc { width: 64px; }
}

/* ---------- Reduced motion ---------- */

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