/* ==========================================================
   WebPhantom — Webdesign-Studio
   Дизайн-система Monoform v2 · тёмный монохром
   ========================================================== */

:root {
  --bg: #060606;
  --bg-2: #0d0d0d;
  --ink: #f2f2f0;
  --paper: #f4f3f0;
  --paper-ink: #0a0a0a;
  --grey: #8a8a86;
  --grey-dark: #55554f;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-dark: rgba(10, 10, 10, 0.14);

  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 84px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-power: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: fixed; left: -9999px; top: 14px; z-index: 2000;
  background: var(--ink); color: var(--bg);
  padding: 12px 22px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { left: 14px; }

/* ---------- зерно плёнки ---------- */

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- кастомный курсор ---------- */

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 1200;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--ink); }
.cursor-ring {
  width: 42px; height: 42px;
  border: 1px solid rgba(242, 242, 240, 0.45);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- прелоадер и переходы страниц ---------- */

.preloader {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: clamp(24px, 4vw, 56px);
  transition: transform 0.9s var(--ease-power);
}
.preloader__brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 2vw, 26px); letter-spacing: 0.04em;
}
.preloader__count {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(64px, 14vw, 180px); line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1px rgba(242,242,240,0.7);
}
body.is-ready .preloader { transform: translateY(-101%); }

.curtain {
  position: fixed; inset: 0; z-index: 1050;
  background: var(--bg);
  transform: scaleY(0); transform-origin: top;
  pointer-events: none;
  will-change: transform; backface-visibility: hidden;
  animation: curtainOpen 0.65s var(--ease-power) both;
}
@keyframes curtainOpen { from { transform: scaleY(1); } to { transform: scaleY(0); } }

.curtain.curtain--enter {
  transform-origin: bottom;
  pointer-events: all;
  animation: curtainClose 0.5s var(--ease-power) both;
}
@keyframes curtainClose { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- шапка ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  transition: transform 0.5s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 6, 6, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header.hidden { transform: translateY(-100%); }
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}

.logo {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: 0.02em; z-index: 1001; position: relative;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 11px;
}
.logo .logo-mark { width: 30px; height: 30px; flex: none; }
.logo em {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

.main-nav { display: flex; gap: clamp(14px, 2vw, 34px); }
.main-nav a {
  position: relative; font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; padding: 6px 0; color: var(--grey);
  transition: color 0.3s; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after {
  transform: scaleX(1); transform-origin: left;
}

.header-right { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-family: var(--font-mono); font-size: 13px; color: var(--grey);
  transition: color 0.3s; white-space: nowrap;
}
.header-phone:hover { color: var(--ink); }

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

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 34px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  border: 1px solid var(--ink); color: var(--ink);
  overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease-out);
  text-align: center;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease-power);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn .arr { transition: transform 0.4s var(--ease-out); }
.btn:hover .arr { transform: translate(3px, -3px); }

.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid::before { background: transparent; }
.btn--solid:hover { color: var(--ink); background: transparent; }

.btn--sm { padding: 12px 24px; font-size: 13.5px; }

.sec--light .btn { border-color: var(--paper-ink); color: var(--paper-ink); }
.sec--light .btn::before { background: var(--paper-ink); }
.sec--light .btn:hover { color: var(--paper); }

.btn-burger {
  display: none; z-index: 1001; position: relative;
  width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 50%; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
}
.btn-burger span {
  width: 18px; height: 1.6px; background: var(--ink); display: block;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
body.menu-open .btn-burger span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
body.menu-open .btn-burger span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

/* ---------- мобильное меню ---------- */

.menu-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-power);
  visibility: hidden;
}
body.menu-open .menu-overlay { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-overlay nav { display: flex; flex-direction: column; gap: 4px; }
.menu-overlay nav a {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 7.5vw, 52px); line-height: 1.3;
  transform: translateY(40px); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
}
body.menu-open .menu-overlay nav a { transform: none; opacity: 1; }
body.menu-open .menu-overlay nav a:nth-child(1) { transition-delay: 0.15s; }
body.menu-open .menu-overlay nav a:nth-child(2) { transition-delay: 0.21s; }
body.menu-open .menu-overlay nav a:nth-child(3) { transition-delay: 0.27s; }
body.menu-open .menu-overlay nav a:nth-child(4) { transition-delay: 0.33s; }
.menu-overlay__contacts {
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  font-family: var(--font-mono); font-size: 14px; color: var(--grey);
}

/* ---------- общие секции / типографика ---------- */

main { position: relative; display: block; }

.sec { padding: clamp(90px, 11vw, 160px) 0; position: relative; }
.sec--light { background: var(--paper); color: var(--paper-ink); }
.sec--light ::selection { background: var(--paper-ink); color: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; opacity: 0.85;
}

.h-sec {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08;
  letter-spacing: -0.01em; margin: 22px 0 0;
}
.h-sec .ol, .ol { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.sec--light .ol { -webkit-text-stroke-color: var(--paper-ink); }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: clamp(48px, 6vw, 84px);
}
.sec-head p { max-width: 400px; color: var(--grey); font-size: 16px; }
.sec--light .sec-head p { color: var(--grey-dark); }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 6vh, 72px);
  position: relative; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 75% 20%, rgba(255,255,255,0.055), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(255,255,255,0.035), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent);
}

.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 6.6vw, 104px);
  line-height: 1.02; letter-spacing: -0.015em;
  text-transform: uppercase;
  position: relative; z-index: 2;
}
.hero__title .row { display: block; }
.hero__title .row--indent { padding-left: clamp(30px, 9vw, 170px); }
.hero__title .ol { -webkit-text-stroke: 1.5px var(--ink); }

.hero__bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; margin-top: clamp(36px, 5vh, 60px);
  position: relative; z-index: 2;
}
.hero__lead { max-width: 440px; color: var(--grey); font-size: 17px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.badge-rotate {
  position: absolute;
  top: calc(var(--header-h) + 30px); right: var(--gutter);
  width: 128px; height: 128px; z-index: 1;
}
.badge-rotate svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge-rotate svg text {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase; fill: var(--grey);
}
.badge-rotate::after {
  content: "↓"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* карточка прямого контакта в hero */
.contact-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 40px);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  width: min(440px, 100%);
  flex: none;
  container-type: inline-size;
}
.card-tag {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey);
}
.contact-card .big-link {
  font-size: clamp(15px, 1.45vw, 21px);
  margin-top: 20px; max-width: 100%; overflow-wrap: anywhere;
}
.contact-card .big-link--mail {
  white-space: nowrap;
  font-size: clamp(11px, 4.8cqw, 21px); /* авто-подгонка под ширину карточки: всегда одна строка */
}
.contact-card-note { font-size: 14px; color: var(--grey); margin-top: 24px; }

/* ---------- бегущая строка ---------- */

.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0; overflow: hidden;
  background: var(--bg);
}
.marquee__track {
  display: flex; gap: clamp(40px, 6vw, 80px); width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(16px, 2vw, 24px);
  text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap; color: var(--grey);
}
.marquee__track .dot { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- услуги: стопка липких карточек ---------- */

.stack { display: flex; flex-direction: column; }
.stack-card {
  position: sticky;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: clamp(32px, 4.5vw, 64px);
  margin-bottom: 28px;
  min-height: clamp(280px, 34vh, 380px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  box-shadow: 0 -18px 50px rgba(10, 10, 10, 0.07);
}
.stack-card:nth-child(1) { top: calc(var(--header-h) + 24px); }
.stack-card:nth-child(2) { top: calc(var(--header-h) + 42px); }
.stack-card:nth-child(3) { top: calc(var(--header-h) + 60px); }

.stack-card__num {
  font-family: var(--font-mono); font-size: 14px; color: var(--grey-dark);
  letter-spacing: 0.14em;
}
.stack-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3.2vw, 42px); line-height: 1.1;
  margin: 20px 0 22px; letter-spacing: -0.01em;
}
.stack-card > div > p { color: var(--grey-dark); max-width: 540px; font-size: 18.5px; line-height: 1.7; }
.stack-card__side {
  display: flex; flex-direction: column; justify-content: flex-start;
  align-items: flex-start; gap: 26px;
}
.stack-card__tags {
  display: flex; flex-direction: column; width: 100%;
  border-top: 1px solid var(--line-dark);
}
.stack-card__tags li {
  font-family: var(--font-body); font-size: 17.5px; font-weight: 500;
  line-height: 1.45; color: var(--paper-ink);
  padding: 15px 2px; border-bottom: 1px solid var(--line-dark);
  display: flex; gap: 14px; align-items: baseline;
}
.stack-card__tags li::before {
  content: "→"; color: var(--grey-dark); font-size: 14px; flex: none;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: gap 0.3s var(--ease-out), opacity 0.3s;
}
.link-arrow:hover { gap: 16px; opacity: 0.75; }

/* ---------- заголовок внутренней страницы ---------- */

.page-head {
  padding: calc(var(--header-h) + clamp(70px, 12vh, 130px)) 0 clamp(56px, 8vh, 96px);
  border-bottom: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.page-head__bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 80% 0%, rgba(255,255,255,0.05), transparent 70%);
}
.page-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6.4vw, 92px); line-height: 1.02;
  text-transform: uppercase; letter-spacing: -0.015em;
  max-width: 1200px;
}
.page-head h1 .ol { -webkit-text-stroke: 1.4px var(--ink); }
.page-head .lead {
  margin-top: 30px; max-width: 620px; color: var(--grey); font-size: 18px;
}

/* ---------- аккордеон ---------- */

.acc { border-top: 1px solid var(--line-dark); }
.acc-item { border-bottom: 1px solid var(--line-dark); }
.acc-head {
  width: 100%; display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 52px;
  align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 3.4vw, 40px) 0; text-align: left;
}
.acc-head .num { font-family: var(--font-mono); font-size: 13px; color: var(--grey-dark); }
.acc-head h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(19px, 2.6vw, 32px); letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease-out);
}
.acc-item:hover .acc-head h3 { transform: translateX(10px); }
.acc-head .ic {
  width: 52px; height: 52px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative;
  flex: none;
  transition: background 0.35s, transform 0.5s var(--ease-out);
}
.acc-head .ic::before, .acc-head .ic::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform 0.4s var(--ease-out), background 0.35s;
}
.acc-head .ic::before { width: 16px; height: 1.6px; }
.acc-head .ic::after { width: 1.6px; height: 16px; }
.acc-item.open .ic { transform: rotate(90deg); background: var(--paper-ink); }
.acc-item.open .ic::before, .acc-item.open .ic::after { background: var(--paper); }
.acc-item.open .ic::after { transform: scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease-power); }
.acc-body__in {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  padding: 6px 0 clamp(30px, 4vw, 48px) clamp(0px, 7vw, 104px);
}
.acc-body__in--single { grid-template-columns: 1fr; }
.acc-body p { color: var(--grey-dark); max-width: 640px; }

/* тёмный вариант аккордеона */
.acc--dark, .acc--dark .acc-item { border-color: var(--line-soft); }
.acc--dark .acc-head .num { color: var(--grey); }
.acc--dark .acc-head .ic { border-color: var(--line); }
.acc--dark .acc-item.open .ic { background: var(--ink); }
.acc--dark .acc-item.open .ic::before, .acc--dark .acc-item.open .ic::after { background: var(--bg); }
.acc--dark .acc-body p { color: var(--grey); }

/* ---------- процесс ---------- */

.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 3.6vw, 44px) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.step:first-child { border-top: 1px solid var(--line-soft); }
.step__num {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 4vw, 52px);
  color: transparent; -webkit-text-stroke: 1px rgba(242,242,240,0.55);
}
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 2.2vw, 26px); }
.step p { color: var(--grey); font-size: 16px; }

/* ---------- пакеты ---------- */

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 32px); align-items: stretch;
}
.plan {
  border: 1px solid var(--line-dark); border-radius: 20px;
  padding: clamp(28px, 3.5vw, 44px);
  display: flex; flex-direction: column;
  background: var(--paper);
  transition: transform 0.45s var(--ease-out);
}
.plan:hover { transform: translateY(-6px); }
.plan .card-tag { color: var(--grey-dark); }
.plan-price {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 2.8vw, 38px); margin: 16px 0 24px;
  letter-spacing: -0.01em;
}
.plan ul { flex: 1; margin-bottom: 28px; }
.plan ul li {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--grey-dark);
  padding: 11px 0; border-bottom: 1px solid var(--line-dark);
  display: flex; gap: 12px;
}
.plan ul li::before { content: "→"; color: var(--paper-ink); flex: none; }
.plan .btn { justify-content: center; }

.plan--featured {
  background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink);
}
.plan--featured .card-tag { color: rgba(244, 243, 240, 0.6); }
.plan--featured ul li { color: rgba(244, 243, 240, 0.66); border-color: rgba(255, 255, 255, 0.14); }
.plan--featured ul li::before { color: var(--paper); }
.sec--light .plan--featured .btn { border-color: var(--paper); color: var(--paper); }
.sec--light .plan--featured .btn::before { background: var(--paper); }
.sec--light .plan--featured .btn:hover { color: var(--paper-ink); }

/* ---------- команда ---------- */

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.person__img { overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 5; background: var(--bg-2); }
.person__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.7s var(--ease-out);
}
.person:hover .person__img img { transform: scale(1.06); }
.person h3 { font-family: var(--font-display); font-weight: 500; font-size: 17px; margin: 18px 0 6px; }
.person span {
  font-family: var(--font-mono); font-size: 12px; color: var(--grey);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* ---------- карточки принципов / инструментов ---------- */

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 32px); }
.principle {
  border: 1px solid var(--line-dark); border-radius: 18px;
  padding: clamp(28px, 3.5vw, 44px);
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.principle:hover { background: var(--paper-ink); color: var(--paper); transform: translateY(-6px); }
.principle .num, .principle .card-tag { font-family: var(--font-mono); font-size: 12.5px; opacity: 0.55; letter-spacing: 0.14em; text-transform: uppercase; }
.principle h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.1vw, 25px); margin: 22px 0 14px; }
.principle p { font-size: 16.5px; opacity: 0.66; }
.principle ul { margin-top: 4px; }
.principle ul li {
  font-family: var(--font-mono); font-size: 14px; opacity: 0.66;
  padding: 10px 0; border-bottom: 1px solid currentColor;
  display: flex; gap: 12px;
}
.principle ul li::before { content: "→"; opacity: 1; }
.principle ul li:last-child { border-bottom: 0; }
.principle:hover ul li { border-color: rgba(255,255,255,0.2); }

/* ---------- контакты ---------- */

.contact-hero-links { margin-top: clamp(40px, 6vh, 70px); display: flex; flex-direction: column; gap: 8px; }
.big-link {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 4vw, 52px); letter-spacing: -0.01em;
  overflow-wrap: anywhere; max-width: 100%;
  width: fit-content; position: relative; line-height: 1.3;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px; background-repeat: no-repeat; background-position: left 96%;
  transition: background-size 0.55s var(--ease-out);
  display: block;
}
.big-link:hover { background-size: 100% 2px; }
.big-link--static:hover { background-size: 0% 2px; }
.big-link .sm, .big-link small {
  display: block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey);
  margin-bottom: 6px;
}

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(48px, 7vw, 110px); align-items: start;
}
.contact-info-item { padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item .eyebrow { color: var(--grey-dark); }
.contact-info-item p, .contact-info-item a {
  font-family: var(--font-body); font-size: 19px; font-weight: 500;
  line-height: 1.55; margin-top: 12px;
  display: block; width: fit-content;
}
.contact-info-item a:hover { text-decoration: underline; }

/* ---------- форма ---------- */

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.f-field { position: relative; margin-bottom: 30px; }
.f-field label {
  display: block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-dark);
  margin-bottom: 8px;
}
.f-field label.check {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  letter-spacing: 0; text-transform: none; line-height: 1.6;
  color: var(--grey-dark); margin-bottom: 0;
}
.f-field input, .f-field select, .f-field textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 12px 2px; font: inherit; font-size: 18px; color: inherit;
  border-radius: 0; transition: border-color 0.3s;
}
.f-field textarea { min-height: 120px; resize: vertical; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  outline: none; border-color: var(--paper-ink);
}
.f-field ::placeholder { color: rgba(85, 85, 79, 0.55); }
.f-field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
  padding-right: 26px;
}

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--grey-dark); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--paper-ink); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; color: var(--paper-ink); }

.hp { position: absolute; left: -5000px; top: 0; height: 1px; width: 1px; opacity: 0; }

.form-note { font-size: 13px; color: var(--grey-dark); margin-top: 18px; max-width: 520px; }
.form-status {
  margin-top: 16px; font-family: var(--font-mono); font-size: 13.5px;
  opacity: 0; transition: opacity 0.3s; max-width: 520px;
}
.form-status.is-visible { opacity: 1; }
.form-status--error { color: #9c2b2b; }

/* ---------- юридические страницы ---------- */

.prose h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px); margin: 46px 0 16px;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin: 30px 0 10px; }
.prose p { color: var(--grey-dark); margin-bottom: 14px; max-width: 80ch; }
.prose ul { margin: 0 0 18px; max-width: 80ch; }
.prose ul li {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--grey-dark);
  padding: 9px 0; border-bottom: 1px solid var(--line-dark);
  display: flex; gap: 12px;
}
.prose ul li::before { content: "→"; color: var(--paper-ink); flex: none; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.fill {
  font-family: var(--font-mono); font-size: 0.82em;
  background: rgba(10, 10, 10, 0.06);
  padding: 2px 8px; border-radius: 6px; color: var(--grey-dark);
}
.stand { margin-top: 40px; font-family: var(--font-mono); font-size: 13px; color: var(--grey-dark); }

/* ---------- футер ---------- */

.site-footer {
  background: var(--bg); border-top: 1px solid var(--line-soft);
  padding-top: clamp(80px, 10vw, 140px);
  overflow: hidden; position: relative;
}
.footer-cta { margin-bottom: clamp(56px, 7vw, 90px); }
.footer-cta .eyebrow { margin-bottom: 24px; }
.footer-cta h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 5.6vw, 80px); line-height: 1.02;
  text-transform: uppercase; letter-spacing: -0.015em;
}
.footer-cta h2 .ol { -webkit-text-stroke: 1.4px var(--ink); }
.footer-cta__lede { color: var(--grey); max-width: 560px; margin-top: 22px; font-size: 16px; }
.footer-cta__row {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 16px; margin-top: clamp(30px, 4vw, 44px);
}

.footer-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; padding: 44px 0;
  border-top: 1px solid var(--line-soft);
}
.footer-cols h4 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--grey); margin-bottom: 18px;
}
.footer-cols p { color: var(--grey); font-size: 15px; max-width: 36ch; }
.footer-cols li { margin-bottom: 10px; font-size: 15px; color: var(--grey); }
.footer-cols a { transition: color 0.3s; }
.footer-cols a:hover { color: var(--ink); }
.footer-cols .link-arrow { color: var(--ink); margin-top: 18px; font-size: 14px; }

.footer-nav {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px; color: var(--grey);
}
.footer-nav a { transition: color 0.3s; }
.footer-nav a:hover { color: var(--ink); }

.footer-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 12.6vw, 216px); line-height: 0.78;
  text-align: center; text-transform: uppercase; letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 242, 240, 0.16);
  transform: translateY(0.14em);
  user-select: none; pointer-events: none;
  white-space: nowrap;
}

/* ---------- анимации появления ---------- */

.reveal {
  opacity: 0; transform: translateY(46px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

[data-reveal="words"] .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
[data-reveal="words"] .wi {
  display: inline-block; transform: translateY(115%);
  transition: transform 1s var(--ease-power);
  transition-delay: calc(var(--i) * 55ms + var(--d, 0s));
}
[data-reveal="words"].visible .wi { transform: translateY(0); }

.img-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-power); }
.img-reveal img { transform: scale(1.18); transition: transform 1.4s var(--ease-out); }
.img-reveal.visible { clip-path: inset(0 0 0% 0); }
.img-reveal.visible img { transform: scale(1); }

/* ---------- полноэкранное подтверждение отправки ---------- */

.modal {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
  background: rgba(6, 6, 6, 0.88);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.modal.open { opacity: 1; visibility: visible; }

.modal__inner {
  width: min(620px, 100%); text-align: center; color: var(--ink);
  transform: translateY(28px) scale(0.97);
  transition: transform 0.6s var(--ease-out);
}
.modal.open .modal__inner { transform: none; }

.modal__icon {
  width: 84px; height: 84px; margin: 0 auto 34px;
  border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal__icon svg { width: 34px; height: 34px; }
.modal__icon svg path, .modal__icon svg line {
  stroke: var(--ink); stroke-width: 2.2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60;
}
.modal.open .modal__icon svg path,
.modal.open .modal__icon svg line {
  animation: draw 0.7s var(--ease-out) 0.25s forwards;
}
.modal.open .modal__icon svg line:nth-of-type(2) { animation-delay: 0.45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.modal__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey);
  margin-bottom: 22px;
}
.modal h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 5vw, 54px); line-height: 1.06;
  letter-spacing: -0.01em;
}
.modal p {
  color: var(--grey); font-size: 17px; line-height: 1.65;
  max-width: 460px; margin: 22px auto 0;
}
.modal p a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.modal__actions {
  margin-top: 40px; display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .modal__icon svg path, .modal__icon svg line { stroke-dashoffset: 0; }
}

/* ---------- режим превью ---------- */



/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, [data-reveal="words"] .wi, .img-reveal, .img-reveal img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .preloader, .curtain { display: none; }
  .cursor-dot, .cursor-ring, .grain { display: none; }
}

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

@media (max-width: 1100px) {
  .badge-rotate { display: none; }
}

@media (max-width: 1024px) {
  .stack-card { grid-template-columns: 1fr; min-height: 0; }
  .plans { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .acc-body__in { grid-template-columns: 1fr; padding-left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
}

@media (max-width: 860px) {
  .main-nav, .header-phone { display: none; }
  .btn-burger { display: flex; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .contact-card { width: 100%; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .step { grid-template-columns: 64px 1fr; }
  .step p { grid-column: 2; }
  .field-row { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .acc-head { grid-template-columns: minmax(0, 1fr) 44px; }
  .acc-head .num { display: none; }
  .acc-head .ic { width: 44px; height: 44px; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- производительность ---------- */
.grain { will-change: transform; backface-visibility: hidden; contain: strict; }
@media (prefers-reduced-motion: reduce) {
  .curtain, .grain { will-change: auto; animation: none !important; }
}
