/* NKDL — единая таблица стилей для главной и страниц проектов.
   Палитра: светло-серый фон, белые карточки, графитовые блоки. Цвета заданы в :root. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos";
  src: url("../fonts/golos-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos";
  src: url("../fonts/golos-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f1f1f1;          /* фон страницы */
  --card: #ffffff;        /* карточки */
  --soft: #e6e6e6;        /* подложки внутри карточек */
  --ink: #0e0e0e;         /* текст, кнопки */
  --graphite: #161616;    /* тёмные блоки */
  --graphite-2: #222222;
  --muted: #6d6d6d;
  --line: #d9d9d9;
  --line-strong: #bdbdbd;

  --on-dark: #f1f1f1;
  --on-dark-muted: #9a9a9a;
  --on-dark-line: rgba(255, 255, 255, 0.12);

  --ok: #1f9d55;
  --warn: #d98a06;
  --info: #8a8a8a;

  --head: "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --body: "Golos", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1440px;
  --gutter: clamp(16px, 2.2vw, 30px);
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: #0e0e0e; color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Типографика ---------- */
.display, .h2, .h3, h1, h2, h3, h4 { font-family: var(--head); }
.display {
  font-size: clamp(2.1rem, 4.3vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0;
}
.h2 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
}
.h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
}
.lead { font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.55; color: var(--muted); max-width: 46ch; margin: 0; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: lowercase;
  color: var(--ink);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-accent { background: var(--ink); color: #fff; }
.btn-accent:hover { background: #333; }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-ghost:hover { background: #fafafa; border-color: var(--line); }
.btn-ink { background: #fff; color: var(--ink); }
.btn-ink:hover { background: #dedede; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: #dedede;
  color: #9d9d9d;
  border-color: #dedede;
  cursor: not-allowed;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  transition: text-decoration-color .2s;
}
.link-arrow:hover { text-decoration-color: var(--ink); }
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(241, 241, 241, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo img { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.93rem; font-weight: 500; text-transform: lowercase; }
.nav-links a:not(.btn) { color: var(--ink); position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 0.75rem; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 0;
  background: var(--card);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .3s, top .3s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease);
  }
  .nav-links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 18px; min-height: 54px; font-size: 0.85rem; }
  .nav.is-open { background: var(--bg); }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.on-soft { border-top: 1px solid var(--line); }
.on-brand {
  background: var(--graphite);
  color: var(--on-dark);
  border-radius: 32px;
  margin: 0 clamp(8px, 1vw, 14px);
}
.on-brand .muted, .on-brand .lead { color: var(--on-dark-muted); }
.on-brand .eyebrow { color: var(--on-dark); }
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 22px 64px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head p { margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding-top: 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: clamp(440px, 62vh, 580px);
}
.hero-main {
  padding: clamp(40px, 6vw, 72px) clamp(0px, 3vw, 48px) clamp(40px, 5vw, 64px) 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.hero .display { max-width: 17ch; }
.h-pill {
  display: inline-block;
  vertical-align: middle;
  width: 1.9em;
  height: 0.95em;
  border-radius: 999px;
  overflow: hidden;
  margin: -0.12em 0.04em 0;
  background: var(--soft);
}
.h-pill img { width: 100%; height: 100%; object-fit: cover; }
.hero-side {
  padding: clamp(40px, 6vw, 72px) 0 32px clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-side > small { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
.hs-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: center;
  gap: 14px;
  padding: 6px;
  border-radius: 16px;
  transition: background .2s;
}
.hs-item:hover { background: var(--card); }
.hs-item b { display: block; font-family: var(--head); font-weight: 500; font-size: 0.8rem; letter-spacing: -0.02em; line-height: 1.3; }
.hs-item span { display: block; color: var(--muted); font-size: 0.8rem; }
.hs-thumb { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--card); }
.hs-thumb img { width: 100%; height: 100%; object-fit: cover; }

.hero-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-bar > * { padding: 22px clamp(0px, 2.5vw, 32px); display: flex; align-items: center; gap: 18px; }
.hero-bar > :first-child { padding-left: 0; }
.hero-bar > :last-child { padding-right: 0; border-left: 1px solid var(--line); }
.hero-bar > :nth-child(2) { border-left: 1px solid var(--line); }
.hb-contact small { display: block; color: var(--muted); font-size: 0.85rem; }
.hb-contact a { font-family: var(--head); font-weight: 500; font-size: 0.95rem; letter-spacing: -0.02em; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hb-ico { flex: none; width: 58px; height: 58px; border-radius: 14px; background: var(--card); display: inline-flex; align-items: center; justify-content: center; }
.hb-ico svg { width: 24px; height: 24px; }
.hb-text { font-size: 0.9rem; line-height: 1.35; color: var(--ink); }
.hero-bar .btn { width: 100%; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-main { border-right: 0; padding-right: 0; }
  .hero-side { padding: 0 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-side > small { grid-column: 1 / -1; }
  .hs-item { grid-template-columns: 1fr; background: var(--card); padding: 12px; }
  .hs-thumb { order: -1; width: 100%; height: auto; aspect-ratio: 16/10; }
  .hero-bar { grid-template-columns: 1fr; }
  .hero-bar > * { padding: 18px 0 !important; border-left: 0 !important; }
  .hero-bar > :nth-child(2) { border-top: 1px solid var(--line) !important; }
  .hero-bar > :last-child { padding-top: 0 !important; }
}
@media (max-width: 560px) {
  .h-pill { display: none; }
  .hero-side { grid-template-columns: 1fr; }
  .hs-item { grid-template-columns: minmax(0, 1fr) 56px; padding: 8px 8px 8px 14px; }
  .hs-thumb { order: 0; width: 56px; height: 56px; aspect-ratio: auto; }
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.hv-main { grid-column: 1 / span 8; position: relative; aspect-ratio: 16 / 10; }
.hv-side { grid-column: 9 / span 4; display: grid; gap: 16px; grid-template-rows: 1fr 1fr; }
.hv-main > .ph, .hv-side > .ph { height: 100%; }
.hv-float { position: absolute; right: 4%; bottom: 6%; width: 54%; z-index: 2; }
@media (max-width: 860px) {
  .hero-visual { grid-template-columns: 1fr; }
  .hv-main, .hv-side { grid-column: auto; }
  .hv-main { aspect-ratio: 4 / 3; }
  .hv-float { right: 12px; bottom: 12px; width: 72%; }
  .hv-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .hv-side > .ph { aspect-ratio: 1; }
}

.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph-cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: lowercase;
}

.browser {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  background: #f4f4f4;
  border-bottom: 1px solid #e6e6e6;
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d2d2d2; }
.browser-bar b {
  margin-left: 10px;
  flex: 1;
  max-width: 260px;
  height: 16px;
  border-radius: 5px;
  background: #fff;
  font: 500 10px/16px var(--body);
  color: #858585;
  padding: 0 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser img { width: 100%; height: auto; }

/* ---------- Факты ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.fact {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}
.fact b {
  display: block;
  font-family: var(--head);
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin-bottom: 18px;
}
.fact b small { font-size: 0.45em; letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: 0.93rem; display: block; max-width: 28ch; }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .fact { min-height: 0; } }

/* ---------- Проекты ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project { display: flex; flex-direction: column; }
.project-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; background: var(--soft); }
.project-media .ph { position: absolute; inset: 0; border-radius: 0; }
.project-media .ph > img { transition: transform 0.8s var(--ease); }
.project:hover .project-media .ph > img { transform: scale(1.04); }
.project-media .float { position: absolute; width: 80%; right: 16px; bottom: 16px; z-index: 2; }
.project-body { padding: 24px 20px 0; display: flex; flex-direction: column; flex: 1; }
.project-num { font-size: 0.85rem; color: var(--muted); font-weight: 500; text-transform: lowercase; }
.project-body .h3 { margin: 10px 0 12px; }
.project-body p { color: var(--muted); margin: 0 0 20px; font-size: 0.95rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: auto 0 22px; }
.project-body .link-arrow { align-self: flex-start; }
@media (max-width: 1100px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .projects { grid-template-columns: 1fr; gap: 40px; }
  .project-body { padding: 20px 4px 0; }
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag {
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--card);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--card);
  color: var(--ink);
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.15); }
.status.is-prep i { background: var(--warn); box-shadow: 0 0 0 3px rgba(217, 138, 6, 0.15); }
.status.is-done i { background: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1); }

/* Мини-отчёт аудита (HTML-макет, демо-данные) */
.mini-report {
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.mini-report header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.mini-report header b { font-size: 12px; font-family: var(--head); font-weight: 500; letter-spacing: -0.02em; }
.mini-report header span { color: #8d8d8d; font-size: 10.5px; }
.mr-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.mr-kpi { background: #f1f1f1; border-radius: 8px; padding: 8px 10px; }
.mr-kpi small { display: block; color: #777; font-size: 10px; margin-bottom: 3px; }
.mr-kpi b { font-size: 15px; font-family: var(--head); font-weight: 500; letter-spacing: -0.03em; }
.mr-row { display: grid; grid-template-columns: 1fr 70px 58px; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid #ececec; }
.mr-bar { height: 6px; border-radius: 3px; background: #e8e8e8; overflow: hidden; }
.mr-bar i { display: block; height: 100%; background: var(--ink); }
.mr-badge { justify-self: end; font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 5px; background: #fde6e1; color: #b3321b; }
.mr-badge.mid { background: #fdf1dc; color: #92600a; }
.mr-badge.ok { background: #e6f5ec; color: #16723f; }
.mr-note { margin-top: 8px; color: #8d8d8d; font-size: 10px; }

.avatars { display: flex; }
.avatars img { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; margin-left: -12px; object-fit: cover; }
.avatars img:first-child { margin-left: 0; }
.floating-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
}
.floating-chip .avatars img { width: 30px; height: 30px; border-width: 2px; margin-left: -8px; }
.floating-chip .avatars img:first-child { margin-left: 0; }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 28px 28px;
  min-height: 330px;
}
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 64px; }
.service-ico { width: 40px; height: 40px; color: var(--ink); }
.service-num { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.service h3 { font-size: 1.15rem; letter-spacing: -0.035em; line-height: 1.25; font-weight: 500; margin: 0 0 12px; }
.service p { margin: 0 0 20px; color: var(--muted); font-size: 0.93rem; }
.service .tags { margin-top: auto; }
.service .tag { background: var(--bg); }
.service.is-featured { background: var(--graphite); color: var(--on-dark); }
.service.is-featured p, .service.is-featured .service-num { color: var(--on-dark-muted); }
.service.is-featured .service-ico { color: #fff; }
.service.is-featured .tag { background: var(--graphite-2); color: var(--on-dark); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }

/* ---------- MVP ---------- */
.mvp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.mvp .h2 { margin: 20px 0 24px; }
.mvp-lead { font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 44ch; margin: 0 0 36px; color: var(--on-dark-muted); }
.weeks { border-top: 1px solid var(--on-dark-line); }
.week { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--on-dark-line); }
.week b { font-family: var(--head); font-weight: 500; font-size: 0.9rem; letter-spacing: -0.02em; }
.week p { margin: 0; color: var(--on-dark-muted); }
.mvp-card { background: var(--graphite-2); color: var(--on-dark); border-radius: var(--radius-lg); overflow: hidden; }
.mvp-card .ph { border-radius: 0; aspect-ratio: 16 / 10; }
.mvp-card-body { padding: 28px 30px 32px; }
.mvp-card-body h3 { margin: 0 0 18px; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.03em; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.mvp-card .checks li { color: var(--on-dark); }
@media (max-width: 960px) { .mvp { grid-template-columns: 1fr; } .week { grid-template-columns: 110px 1fr; } }

/* ---------- Процесс ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--card); border-radius: var(--radius-lg); padding: 28px 26px 30px; display: flex; flex-direction: column; }
.on-brand .step { background: var(--graphite-2); }
.step-n { font-family: var(--head); font-size: 2.2rem; font-weight: 400; letter-spacing: -0.06em; line-height: 1; margin-bottom: 40px; display: block; }
.step h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.on-brand .step p { color: var(--on-dark-muted); }
.step small { align-self: flex-start; margin-top: auto; padding-top: 18px; font-size: 0.8rem; font-weight: 500; }
.step small::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 2px; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .steps, .steps-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps, .steps-3, .steps-5 { grid-template-columns: 1fr; } }

/* ---------- Принципы ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principle { background: var(--card); border-radius: var(--radius-lg); padding: 28px 26px 30px; }
.principle svg { width: 32px; height: 32px; color: var(--ink); }
.principle h3 { margin: 40px 0 10px; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.03em; }
.principle p { margin: 0; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 960px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Команда ---------- */
.team { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.founder-photo { aspect-ratio: 4 / 5; }
.founder-photo img { object-position: 50% 20%; }
.quote { font-family: var(--head); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.22; letter-spacing: -0.04em; font-weight: 500; margin: 20px 0 32px; }
.person { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.person b { font-family: var(--head); font-weight: 500; font-size: 1rem; letter-spacing: -0.03em; display: block; }
.person span { color: var(--muted); font-size: 0.93rem; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role { background: var(--card); border-radius: var(--radius); padding: 22px 22px 24px; }
.role h4 { margin: 0 0 8px; font-size: 0.9rem; font-weight: 500; letter-spacing: -0.03em; }
.role p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } .founder-photo { max-width: 420px; } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: var(--radius); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  font-family: var(--head);
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font: 400 1.3rem/1 var(--body);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 86px 24px 24px; color: var(--muted); max-width: 84ch; }
.faq .answer p { margin: 0; }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact .display { font-size: clamp(2rem, 4.2vw, 3.8rem); }
.contact-ways { display: grid; gap: 12px; margin-top: 36px; }
.contact-way {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--card);
  border-radius: var(--radius);
  transition: background .2s;
}
.contact-way small { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 2px; }
.contact-way b { font-family: var(--head); font-weight: 500; font-size: 1rem; letter-spacing: -0.03em; }
.contact-way.is-primary { background: var(--ink); color: #fff; }
.contact-way.is-primary small { color: var(--on-dark-muted); }
.contact-way.is-primary:hover { background: #2a2a2a; }

.form { background: var(--card); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.form-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9rem;
  margin: 0 0 22px;
}
.form-notice::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 11px/1 var(--body); margin-top: 1px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:disabled, .field textarea:disabled { cursor: not-allowed; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { padding: 8px 14px; border-radius: 10px; background: var(--bg); font-size: 0.88rem; color: #a0a0a0; cursor: not-allowed; }
.consent { display: flex; gap: 10px; font-size: 0.83rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 3px; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form .btn { width: 100%; margin-top: 4px; }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.footer { padding: 72px 0 32px; background: var(--ink); color: var(--on-dark); margin-top: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer .muted { color: var(--on-dark-muted); }
.footer h4, .footer-h { margin: 0 0 16px; font-family: var(--body); font-size: 0.85rem; color: var(--on-dark-muted); font-weight: 500; text-transform: lowercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--on-dark-line); color: var(--on-dark-muted); font-size: 0.85rem; margin-top: 56px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Страница проекта ---------- */
.case-hero { padding: clamp(108px, 12vw, 148px) 0 0; }
.crumbs { display: flex; gap: 10px; color: var(--muted); font-size: 0.88rem; margin-bottom: 30px; flex-wrap: wrap; text-transform: lowercase; }
.crumbs a:hover { color: var(--ink); }
.case-title { max-width: 20ch; }
.case-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 64px; margin-top: 28px; align-items: end; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.meta div { background: var(--card); border-radius: var(--radius); padding: 18px 20px; min-width: 0; hyphens: auto; overflow-wrap: break-word; }
.meta small { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 6px; }
.meta b { font-family: var(--head); font-weight: 500; font-size: 0.88rem; letter-spacing: -0.03em; }
.case-cover { margin-top: 12px; }
.case-cover .ph { aspect-ratio: 21 / 9; }
@media (max-width: 860px) {
  .case-intro { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr 1fr; }
  .meta div { padding: 16px; }
  .meta b { font-size: 0.8rem; }
  .case-cover .ph { aspect-ratio: 4 / 3; }
}

.split { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 24px clamp(40px, 6vw, 88px); }
.split .h3 { position: sticky; top: 96px; align-self: start; }
.prose p { margin: 0 0 16px; font-size: 1.05rem; color: var(--muted); max-width: 64ch; }
.prose p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .h3 { position: static; } }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.feature { background: var(--card); border-radius: var(--radius-lg); padding: 26px 24px 28px; }
.feature span { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.feature h4 { margin: 28px 0 8px; font-size: 1rem; font-weight: 500; letter-spacing: -0.03em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.gallery > * { grid-column: span 12; }
.gallery .g-7 { grid-column: span 7; }
.gallery .g-5 { grid-column: span 5; }
.gallery .g-6 { grid-column: span 6; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.gallery .ph { width: 100%; }
@media (max-width: 860px) { .gallery .g-7, .gallery .g-5, .gallery .g-6 { grid-column: span 12; } }

.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { padding: 10px 16px; border-radius: 10px; background: var(--card); font-size: 0.9rem; font-weight: 500; }

.next-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.next-case .ph { aspect-ratio: 16 / 9; }
.next-case a.h2 { transition: opacity .2s; }
.next-case a.h2:hover { opacity: .6; }
@media (max-width: 860px) { .next-case { grid-template-columns: 1fr; } }

/* Большой макет отчёта на странице аудита */
.report {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 34px);
  font-size: 14px;
}
.report-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid #ececec; margin-bottom: 20px; }
.report-head b { font-family: var(--head); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.03em; }
.report-head span { color: #8d8d8d; font-size: 0.85rem; }
.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.report-kpis div { background: #f1f1f1; border-radius: 12px; padding: 16px; }
.report-kpis small { display: block; color: #777; font-size: 0.8rem; margin-bottom: 6px; }
.report-kpis b { font-family: var(--head); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.05em; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th { text-align: left; font-weight: 500; color: #8d8d8d; font-size: 0.8rem; padding: 10px 8px; border-bottom: 1px solid #ececec; }
.report-table td { padding: 13px 8px; border-bottom: 1px solid #f1f1f1; vertical-align: middle; }
.report-table td:nth-child(3), .report-table td:nth-child(4) { white-space: nowrap; }
.report-table .mr-bar { width: 100%; min-width: 60px; }
.report-wrap { overflow-x: auto; }
.report-foot { margin: 16px 0 0; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) {
  .report-kpis { grid-template-columns: 1fr 1fr; }
  .report-table { min-width: 560px; }
}

/* ---------- Небольшие проекты (концепты) ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work { display: flex; flex-direction: column; }
.work-media { border-radius: 18px; transition: transform 0.5s var(--ease); }
.work-media img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work:hover .work-media { transform: translateY(-6px); }
.work-body { padding: 22px 6px 0; }
.work-body .h3 { margin: 10px 0 10px; }
.work-body p { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; }
.work-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.work-meta span { padding: 6px 12px; border-radius: 8px; background: var(--card); font-size: 0.82rem; font-weight: 500; }
.work-meta span:last-child { background: var(--ink); color: #fff; }
@media (max-width: 1000px) { .works { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .works { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review { margin: 0; background: var(--card); border-radius: var(--radius-lg); padding: 30px 28px 28px; display: flex; flex-direction: column; min-height: 300px; }
.review-mark { width: 34px; height: 28px; color: var(--ink); margin-bottom: 28px; }
.review blockquote { margin: 0 0 28px; font-family: var(--head); font-weight: 400; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.35; letter-spacing: -0.035em; }
.review figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
.review figcaption b { font-weight: 600; }
.review figcaption span { color: var(--muted); }
.review.is-dark { background: var(--graphite); color: var(--on-dark); }
.review.is-dark .review-mark { color: #fff; }
.review.is-dark figcaption { border-color: var(--on-dark-line); }
.review.is-dark figcaption span { color: var(--on-dark-muted); }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; } .review { min-height: 0; } }

/* ---------- Цены ---------- */
.prices { background: var(--card); border-radius: var(--radius-lg); padding: 8px clamp(16px, 2.5vw, 32px); }
.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 220px;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.price:last-child { border-bottom: 0; }
.price::before { content: ""; position: absolute; inset: 0 calc(-1 * clamp(16px, 2.5vw, 32px)); background: var(--bg); opacity: 0; transition: opacity .25s; z-index: 0; }
.price:hover::before { opacity: 1; }
.price > * { position: relative; z-index: 1; }
.price b { display: block; font-family: var(--head); font-weight: 500; font-size: 1.02rem; letter-spacing: -0.035em; margin-bottom: 4px; }
.price span { color: var(--muted); font-size: 0.92rem; }
.price small { color: var(--muted); font-size: 0.9rem; }
.price strong { justify-self: end; font-family: var(--head); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.4rem); letter-spacing: -0.045em; white-space: nowrap; }
.price.is-accent strong { background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
@media (max-width: 760px) {
  .price { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .price > div { grid-column: 1 / -1; }
  .price strong { font-size: 1rem; }
}

/* ---------- Документы ---------- */
.doc-hero { padding: clamp(108px, 12vw, 148px) 0 clamp(32px, 4vw, 48px); }
.doc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.doc-tabs a { padding: 9px 16px; border-radius: 10px; background: var(--card); font-size: 0.9rem; font-weight: 500; transition: background .2s, color .2s; }
.doc-tabs a:hover { background: #fafafa; }
.doc-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.doc-title { font-size: clamp(1.5rem, 3.8vw, 3.4rem); max-width: 20ch; hyphens: auto; overflow-wrap: break-word; }
.doc-meta { color: var(--muted); font-size: 0.9rem; margin: 18px 0 0; }
.doc-lead { margin-top: 18px; }
.doc-body { padding-bottom: clamp(72px, 9vw, 120px); }
.doc { background: var(--card); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 56px); max-width: 980px; }
.doc h2 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -0.035em; margin: 40px 0 14px; }
.doc h2:first-child, .doc .doc-note + h2, .doc .doc-note + p { margin-top: 0; }
.doc h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; margin: 22px 0 8px; }
.doc p, .doc li { color: #3d3d3d; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc code { font-size: 0.88em; background: var(--bg); padding: 2px 6px; border-radius: 5px; }
.doc-note { background: var(--bg); border-radius: 14px; padding: 16px 18px; margin-bottom: 32px; color: var(--ink); }
.doc-note b { font-weight: 600; }
.doc-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 0.93rem; display: block; overflow-x: auto; }
.doc-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.82rem; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid #ededed; vertical-align: top; color: #3d3d3d; min-width: 140px; }

.footer-legal { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.footer-legal button, .footer button[data-cookie-settings] { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.footer-legal button:hover, .footer button[data-cookie-settings]:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 404 ---------- */
.nf { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.nf .hero-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.nf-in { position: relative; z-index: 1; }
.nf-code { font-family: var(--head); font-weight: 500; font-size: clamp(5rem, 16vw, 13rem); line-height: 0.9; letter-spacing: -0.07em; margin: 0 0 24px; }
.nf .lead { margin: 20px 0 32px; }
.nf-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Квиз ---------- */
.quiz { background: var(--card); border-radius: var(--radius-lg); padding: clamp(20px, 3.5vw, 44px); scroll-margin-top: 90px; }
.quiz-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quiz-steps li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); padding-top: 12px; border-top: 2px solid var(--line); }
.quiz-steps li span { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; color: var(--ink); }
.quiz-steps li.is-done { border-color: var(--ink); }
.quiz-steps li.is-now { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.quiz-steps li.is-now span, .quiz-steps li.is-done span { background: var(--ink); color: #fff; }
.quiz-q { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.035em; margin: 0 0 20px; }
.quiz-hint { color: var(--muted); margin: -8px 0 18px; font-size: 0.93rem; }
.quiz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quiz-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quiz-opt { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; color: var(--ink); transition: border-color .2s, background .2s, transform .2s; min-height: 96px; }
.quiz-opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.quiz-opt b { font-family: var(--head); font-weight: 500; font-size: 0.92rem; letter-spacing: -0.03em; line-height: 1.25; }
.quiz-opt small { color: var(--muted); font-size: 0.85rem; margin-top: auto; }
.quiz-opt.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.quiz-opt.is-on small { color: var(--on-dark-muted); }
.quiz-opt-alt { background: var(--bg); border-style: dashed; }
.quiz-list { display: grid; gap: 8px; }
.quiz-check { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; position: relative; transition: border-color .2s; }
.quiz-check:hover { border-color: var(--line-strong); }
.quiz-check input { position: absolute; opacity: 0; }
.quiz-box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; transition: .2s; }
.quiz-check input:checked ~ .quiz-box { background: var(--ink); border-color: var(--ink); }
.quiz-check input:checked ~ .quiz-box::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.quiz-check:has(input:checked) { border-color: var(--ink); }
.quiz-check input:focus-visible ~ .quiz-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.quiz-check em { font-style: normal; font-weight: 500; color: var(--muted); white-space: nowrap; font-size: 0.93rem; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.quiz-back { background: none; border: 0; padding: 8px 0; cursor: pointer; font: inherit; color: var(--muted); }
.quiz-back:hover { color: var(--ink); }
.quiz-result { display: grid; gap: 18px; }
.quiz-sum { background: var(--ink); color: #fff; border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.quiz-sum small { color: var(--on-dark-muted); font-size: 0.88rem; }
.quiz-sum b { display: block; font-family: var(--head); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: -0.05em; line-height: 1.1; margin: 8px 0 10px; }
.quiz-sum span { color: var(--on-dark-muted); }
.quiz-lines { list-style: none; margin: 0; padding: 0; }
.quiz-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.quiz-lines li span:last-child { white-space: nowrap; font-weight: 500; }
.quiz-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.quiz-msg-label { font-size: 0.85rem; color: var(--muted); margin-bottom: -10px; }
.quiz-msg { width: 100%; border: 0; border-radius: 12px; background: var(--bg); padding: 14px 16px; font: inherit; font-size: 0.95rem; color: var(--ink); resize: vertical; }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-actions .btn { flex: 1 1 220px; }
.estimate { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.estimate-side .h2 { margin: 18px 0 18px; }
.estimate-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.estimate-side li { display: flex; gap: 12px; color: var(--muted); font-size: 0.95rem; }
.estimate-side li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
@media (max-width: 1000px) { .estimate { grid-template-columns: 1fr; } .quiz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .quiz-steps li { font-size: 0; gap: 0; }
  .quiz-grid, .quiz-grid-3 { grid-template-columns: 1fr; }
  .quiz-opt { min-height: 0; }
  .quiz-check { grid-template-columns: 24px minmax(0, 1fr); }
  .quiz-check em { grid-column: 2; }
}

/* ---------- Страницы услуг ---------- */
.svc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.use-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.use-case { background: var(--card); border-radius: var(--radius-lg); padding: 26px 24px 28px; }
.use-case h3 { font-size: 1rem; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 10px; }
.use-case p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.checks-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.checks-grid li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checks-grid li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pack { background: var(--card); border-radius: var(--radius-lg); padding: 28px 26px 30px; display: flex; flex-direction: column; }
.pack-name { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.pack-price { font-family: var(--head); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.05em; margin: 18px 0 4px; }
.pack-term { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.pack ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.95rem; }
.pack li { display: flex; gap: 10px; }
.pack li::before { content: "+"; font-weight: 600; }
.pack.is-dark { background: var(--graphite); color: var(--on-dark); }
.pack.is-dark .pack-name, .pack.is-dark .pack-term { color: var(--on-dark-muted); }
.pack.is-dark ul { border-color: var(--on-dark-line); }
.packs-more { margin: 24px 0 0; }
.svc-example { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.svc-ex-card .browser { transition: transform .5s var(--ease); }
.svc-ex-card:hover .browser { transform: translateY(-6px); }
.svc-ex-card img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.svc-article { display: grid; gap: 6px; margin-top: 28px; padding: 20px 22px; background: var(--card); border-radius: 16px; transition: background .2s; }
.svc-article:hover { background: #fafafa; }
.svc-article small { color: var(--muted); }
.svc-article b { font-family: var(--head); font-weight: 500; letter-spacing: -0.03em; font-size: 0.98rem; }
.svc-article span { font-weight: 500; font-size: 0.9rem; }
.service-more { margin-top: 16px; font-weight: 500; font-size: 0.92rem; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.service-more:hover { text-decoration-color: currentColor; }
.service.is-featured .service-more { text-decoration-color: var(--on-dark-line); }
.cta-block { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-outline-light:hover { border-color: #fff; }
@media (max-width: 1000px) { .use-cases { grid-template-columns: 1fr 1fr; } .packs { grid-template-columns: 1fr; } .svc-example, .cta-block { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .use-cases, .checks-grid { grid-template-columns: 1fr; } }

/* ---------- Статьи ---------- */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 12px; background: var(--card); border-radius: var(--radius-lg); padding: 28px; transition: transform .4s var(--ease); }
.post-card:hover { transform: translateY(-4px); }
.post-card small { color: var(--muted); font-size: 0.85rem; }
.post-card b { font-family: var(--head); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -0.035em; line-height: 1.25; }
.post-card span { color: var(--muted); font-size: 0.95rem; }
.post-card em { font-style: normal; font-weight: 500; margin-top: auto; padding-top: 8px; }
.post-card-lg { min-height: 280px; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

.art-head { padding: clamp(108px, 12vw, 148px) 0 clamp(28px, 4vw, 44px); }
.art-tag { display: inline-block; background: var(--card); border-radius: 8px; padding: 6px 12px; font-size: 0.85rem; font-weight: 500; margin-bottom: 20px; }
.art-title { font-size: clamp(1.7rem, 3.6vw, 3.2rem); max-width: 22ch; hyphens: auto; overflow-wrap: break-word; }
.art-meta { color: var(--muted); font-size: 0.9rem; margin: 18px 0 0; }
.art-body { background: var(--card); border-radius: var(--radius-lg); padding: clamp(22px, 4.5vw, 64px); max-width: 920px; margin-bottom: clamp(56px, 8vw, 100px); font-size: 1.05rem; line-height: 1.7; }
.art-body > p, .art-body li { color: #2e2e2e; }
.art-body > p { margin: 0 0 18px; }
.art-body h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.2; margin: 48px 0 16px; }
.art-body h3 { font-family: var(--body); font-size: 1.1rem; font-weight: 600; margin: 32px 0 10px; }
.art-body ul, .art-body ol { margin: 0 0 18px; padding-left: 22px; }
.art-body li { margin-bottom: 8px; }
.art-body a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.art-body a:hover { text-decoration-color: var(--ink); }
.art-tldr { background: var(--bg); border-radius: 16px; padding: 20px 24px 8px; margin-bottom: 32px; }
.art-tldr b { font-family: var(--head); font-weight: 500; letter-spacing: -0.03em; }
.art-tldr ul { margin-top: 10px; }
.art-table { overflow-x: auto; margin: 8px 0 24px; }
.art-table table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.45; min-width: 520px; }
.art-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.82rem; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.art-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid #ececec; vertical-align: top; }
.art-table td:last-child { white-space: nowrap; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 32px; }
.stat { background: var(--bg); border-radius: 14px; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.stat small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.stat b { font-family: var(--head); font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing: -0.05em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Графики ---------- */
.chart {
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a;
  margin: 28px 0 32px; padding: 22px 22px 16px; border: 1px solid var(--line); border-radius: 18px; font-size: 0.9rem; line-height: 1.4;
}
.chart figcaption { display: grid; gap: 4px; margin-bottom: 18px; }
.chart figcaption b { font-family: var(--head); font-weight: 500; font-size: 1rem; letter-spacing: -0.03em; }
.chart figcaption span { color: var(--muted); font-size: 0.87rem; }
.chart-note { margin: 10px 0 0; color: var(--muted); font-size: 0.83rem; }
.chart-plot { position: relative; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -4px 0 12px; font-size: 0.85rem; color: #2e2e2e; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; }
.hbar { display: grid; gap: 8px; }
.hbar-row { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 14px; align-items: center; padding: 2px 0; border-radius: 6px; outline: none; }
.hbar-row:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.hbar-label { color: #2e2e2e; font-size: 0.88rem; }
.hbar-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hbar-track i { display: block; height: 20px; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; transition: opacity .2s; }
.hbar-row:hover i { opacity: .8; }
.hbar-track b { font-weight: 500; font-size: 0.85rem; white-space: nowrap; color: var(--ink); }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: #ececec; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: #fff; stroke-width: 2; }
.chart .note { fill: var(--ink); font-size: 11px; font-weight: 600; font-family: var(--body); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.chart .end { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--body); }
.chart .end-sub { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart .cross { stroke: var(--line-strong); stroke-width: 1; }
.chart-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 9px 12px; font-size: 0.82rem; line-height: 1.45; white-space: nowrap; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5); }
.chart-tip span { color: #c9c9c9; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 8px; color: #fff; }
.chart-tip .tip-row i { width: 10px; height: 3px; border-radius: 2px; }
.chart-table { margin-top: 14px; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; }
.chart-table summary:hover { color: var(--ink); }
.chart-table-wrap { overflow-x: auto; max-height: 320px; margin-top: 10px; }
.chart-table table { border-collapse: collapse; font-size: 0.85rem; width: 100%; }
.chart-table th, .chart-table td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid #ececec; white-space: nowrap; }
.chart-table th { color: var(--muted); font-weight: 500; }
@media (max-width: 560px) { .hbar-row { grid-template-columns: 1fr; gap: 4px; } .chart { padding: 16px 14px 12px; } }

/* ---------- Схемы и списки в статьях ---------- */
.diagram { margin: 28px 0 32px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; }
.diagram figcaption { display: grid; gap: 4px; margin-bottom: 16px; font-size: 0.9rem; line-height: 1.4; }
.diagram figcaption b { font-family: var(--head); font-weight: 500; font-size: 1rem; letter-spacing: -0.03em; }
.diagram figcaption span { color: var(--muted); font-size: 0.87rem; }
.diagram-scroll { overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 640px; height: auto; }
.art-table-wide table { min-width: 760px; font-size: 0.88rem; }
.art-table-wide td:last-child { white-space: normal; font-weight: 400; }
.art-table-wide td:first-child { white-space: nowrap; color: var(--muted); font-size: 0.8rem; }
.art-body code { font-size: 0.85em; background: var(--bg); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.art-body em { font-style: italic; }
.checklist { list-style: none; padding: 0 !important; counter-reset: ck; display: grid; gap: 8px; }
.checklist li { counter-increment: ck; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 12px 14px; background: var(--bg); border-radius: 12px; margin: 0 !important; }
.checklist li::before { content: counter(ck); width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; }
.sources li { font-size: 0.9rem; color: var(--muted); }
.posts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .posts-3 { grid-template-columns: 1fr; } }

/* ---------- Фильтр статей ---------- */
.blog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.blog-filter { position: sticky; top: 88px; background: var(--card); border-radius: var(--radius-lg); padding: 20px 16px 16px; display: grid; gap: 4px; }
.blog-filter-title { margin: 0 6px 8px; font-family: var(--head); font-weight: 500; font-size: 0.9rem; letter-spacing: -0.03em; }
.topic { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; cursor: pointer; position: relative; transition: background .2s; }
.topic:hover { background: var(--bg); }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic-box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; transition: .2s; }
.topic input:checked ~ .topic-box { background: var(--ink); border-color: var(--ink); }
.topic input:checked ~ .topic-box::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.topic input:focus-visible ~ .topic-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.topic-name { font-weight: 500; }
.topic-count { color: var(--muted); font-size: 0.85rem; min-width: 22px; text-align: center; background: var(--bg); border-radius: 6px; padding: 1px 6px; }
.blog-filter-reset { margin-top: 8px; background: none; border: 0; padding: 6px 8px; text-align: left; cursor: pointer; font: inherit; font-size: 0.88rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.blog-filter-reset:hover { color: var(--ink); }
.post-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.post-topics i { font-style: normal; font-size: 0.78rem; font-weight: 500; color: var(--ink); background: var(--bg); border-radius: 7px; padding: 3px 9px; }
.blog-empty { background: var(--card); border-radius: var(--radius-lg); padding: 28px; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-filter { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px; }
  .blog-filter-title { width: 100%; margin: 0 4px 4px; }
  .topic { grid-template-columns: 20px auto auto; gap: 8px; background: var(--bg); padding: 8px 10px; }
  .blog-filter-reset { margin: 0 0 0 4px; }
}

/* ---------- Услуга «в разработке», обложки ---------- */
.service.is-soon { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; min-height: 0; background: transparent; border: 1.5px dashed var(--line-strong); color: #8a8a8a; }
.service.is-soon:hover { transform: none; }
.service.is-soon .service-top { margin: 0; flex-direction: column; gap: 14px; align-items: flex-start; }
.service.is-soon .service-ico { color: #a3a3a3; }
.service.is-soon:hover .service-ico { transform: none; }
.service.is-soon h3 { color: #6f6f6f; margin: 6px 0 8px; }
.service.is-soon p { margin: 0; color: #8f8f8f; max-width: 70ch; }
.service.is-soon .service-num { color: #9a9a9a; }
.service.is-soon .service-more { margin: 0; color: #6f6f6f; white-space: nowrap; }
.soon-badge { display: inline-block; padding: 5px 10px; border-radius: 8px; background: #e2e2e2; color: #6f6f6f; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) { .service.is-soon { grid-template-columns: 1fr; gap: 16px; } .service.is-soon .service-top { flex-direction: row; align-items: center; } }

.art-cover { max-width: 920px; margin-bottom: 16px; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); aspect-ratio: 21 / 9; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb { display: block; margin: -28px -28px 6px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }

/* Подписи плиток первого экрана: название проекта + что это */
.hero-visual a { display: block; color: inherit; }
.hero-visual .ph-cap { text-transform: none; display: flex; flex-direction: column; gap: 1px; max-width: calc(100% - 28px); font-weight: 400; color: var(--muted); line-height: 1.3; padding: 9px 14px 10px; }
.hero-visual .ph-cap b { font-family: var(--head); font-weight: 500; font-size: 0.85rem; letter-spacing: -0.03em; color: var(--ink); }
.hero-visual .ph-cap b::after { content: " →"; font-family: var(--body); transition: margin .3s var(--ease); }
.hero-visual a:hover .ph-cap b::after { margin-left: 4px; }
.hero-visual a .ph > img, .hero-visual a.ph > img { transition: transform .8s var(--ease); }
.hero-visual a:hover .ph > img, .hero-visual a.ph:hover > img { transform: scale(1.03); }
.hv-main .ph-cap { top: 14px; bottom: auto; }
/* Фото в правой колонке витрины не растягивают её: высоту задаёт большая плитка */
.hv-side > .ph { min-height: 0; }
.hv-side > .ph > img { position: absolute; inset: 0; }
@media (max-width: 860px) { .hv-main { aspect-ratio: 1 / 1; } .hv-float { width: 70%; right: 12px; bottom: 12px; } .hero-visual .ph-cap b { font-size: 0.8rem; } }

/* Капсула со знаком NKDL в заголовке */
.h-pill-mark { background: var(--ink); display: inline-flex; align-items: center; justify-content: center; width: 1.7em; }
.h-pill-mark img { width: auto; height: 56%; object-fit: contain; }

/* Карточка заявки «Строчки» на первом экране */
.order-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 20px 16px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06); width: min(400px, 46%); right: 4%; bottom: 6%; }
.oc-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.oc-head em { font-style: normal; font-size: 0.72rem; background: var(--bg); border-radius: 6px; padding: 2px 8px; }
.oc-title { display: block; font-family: var(--head); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.035em; margin-bottom: 12px; }
.oc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.oc-grid div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.oc-grid dt { font-size: 0.72rem; color: var(--muted); }
.oc-grid dd { margin: 2px 0 0; font-weight: 600; font-size: 0.88rem; line-height: 1.25; }
.oc-status { display: flex; gap: 8px; align-items: flex-start; font-size: 0.78rem; line-height: 1.35; color: #6b4a00; background: #fdf1dc; border-radius: 10px; padding: 8px 10px; }
.oc-status i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-top: 5px; }
@media (max-width: 860px) {
  .order-card { width: auto; left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }
  .oc-title { font-size: 1rem; margin-bottom: 8px; }
  .oc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
  .oc-grid div { padding: 6px 8px; }
  .oc-grid dd { font-size: 0.78rem; }
}
@media (max-width: 520px) { .oc-grid { grid-template-columns: 1fr 1fr; } .oc-status { display: none; } }

/* Сданные проекты */
.done-head { display: flex; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin: clamp(48px, 6vw, 72px) 0 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.done-head p { margin: 0; font-size: 0.93rem; }
.projects-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects-2 .project-media { aspect-ratio: 16 / 11; }
.flow-mini { display: grid; gap: 8px; }
.flow-mini div { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #ececec; }
.flow-mini i { width: 16px; height: 16px; border-radius: 50%; background: #e6f5ec; position: relative; }
.flow-mini i::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid #16723f; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.flow-mini em { font-style: normal; font-weight: 600; white-space: nowrap; }
.case-note { margin: 12px 0 0; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 700px) { .projects-2 { grid-template-columns: 1fr; } }

/* ---------- Интерактив ---------- */
.hero-grid { position: relative; }
.hero-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero-main, .hero-side { position: relative; z-index: 1; }
.hero-clock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
}
.hero-clock span { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-muted); }
.hero-clock i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 2s steps(1) infinite; }
.hero-clock time { font-family: var(--head); font-weight: 500; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: 0.2; } }
@media (max-width: 960px) { .hero-clock { grid-column: 1 / -1; } }

.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.tilt { transition: transform 0.35s var(--ease); will-change: transform; }
.tilt:hover { transition-duration: 0.12s; }

.service { transition: transform 0.4s var(--ease); }
.service:hover { transform: translateY(-4px); }
.service-ico { transition: transform 0.7s var(--ease); }
.service:hover .service-ico { transform: rotate(90deg); }
.principle svg { transition: transform 0.5s var(--ease); }
.principle:hover svg { transform: scale(1.15); }
.hs-thumb img { transition: transform 0.5s var(--ease); }
.hs-item:hover .hs-thumb img { transform: scale(1.12); }

.weeks.is-live .week { position: relative; opacity: 0.35; transition: opacity 0.6s var(--ease); }
.weeks.is-live .week::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--on-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}
.weeks.is-live .week.is-on { opacity: 1; }
.weeks.is-live .week.is-on::after { transform: scaleX(1); }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.06s; }
.js .reveal-d2 { transition-delay: 0.12s; }
.js .reveal-d3 { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
