/* Общая продуктовая оболочка: кабинетная геометрия в теме «квартирника». */
:root {
  color-scheme: light;
  --canvas: #eaf0ed;
  --paper: #f8fbf9;
  --paper-strong: #ffffff;
  --ink: #17211f;
  --ink-soft: #52615c;
  --muted: #60706a;
  --fill: #e2ebe7;
  --fill-deep: #d6e2dd;
  --hairline: rgb(35 63 56 / 13%);
  --acid: #79a69d;
  --panel: #172520;
  --panel-soft: #22352f;
  --panel-ink: #f7fbf9;
  --teal: #315f58;
  --teal-soft: #dce9e5;
  --accent: #315f58;
  --accent-deep: #21463f;
  --accent-soft: rgb(49 95 88 / 12%);
  --danger: #985044;
  --ok: #2f7258;
  --status-done: var(--ok);
  --status-doing: #79a69d;
  --status-blocked: var(--danger);
  --status-planned: var(--fill);
  --status-conditional: var(--ink-soft);
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Segoe UI Mono", Consolas, monospace;
  --fs-display: clamp(3.25rem, 7vw, 6.6rem);
  --fs-h2: clamp(2rem, 4vw, 4rem);
  --fs-h3: clamp(1.15rem, 1.7vw, 1.55rem);
  --page: clamp(1rem, 2.2vw, 2rem);
  --section: clamp(3.5rem, 7vw, 7rem);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --shadow-control: 0 8px 22px rgb(37 62 55 / 8%);
  --shadow-soft: 0 20px 54px rgb(37 62 55 / 9%);
  --shadow-panel: 0 28px 72px rgb(37 62 55 / 12%);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -5%, rgb(103 149 139 / 24%), transparent 34rem),
    radial-gradient(circle at 96% 1%, rgb(111 146 169 / 17%), transparent 30rem),
    linear-gradient(180deg, #f6f9f7 0%, var(--canvas) 48%, #e4ebe7 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 78% 62%, rgb(131 171 162 / 12%), transparent 25rem),
    radial-gradient(circle at 18% 76%, rgb(102 140 158 / 9%), transparent 28rem);
  content: "";
  pointer-events: none;
}

.wrap {
  width: min(calc(100% - 32px), 1400px);
  max-width: 1400px;
  padding-inline: 0;
}

h1,
h2,
h3 {
  font-variation-settings: "wght" 690;
  letter-spacing: -0.055em;
}

h1 { line-height: 0.95; }
h2 { line-height: 1; }

.eyebrow,
.badge,
.micro,
.visual-kicker {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.07em;
}

.lead { color: var(--ink-soft); }

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 4px;
  border-radius: 8px;
}

.topbar {
  position: relative;
  top: auto;
  padding-top: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar .nav {
  display: grid;
  min-height: 68px;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 18px;
  padding: 10px 12px 10px 22px;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 28px;
  background: rgb(255 255 255 / 64%);
  box-shadow: var(--shadow-control), inset 0 1px 0 rgb(255 255 255 / 86%);
  backdrop-filter: blur(24px) saturate(1.35);
}

.brand-logo {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.brand-logo strong {
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-variation-settings: "wght" 720;
  letter-spacing: -0.055em;
}

.brand-logo .identity-divider {
  width: 1px;
  height: 28px;
  flex: 0 0 auto;
  background: rgb(35 63 56 / 22%);
}

.studio-signature {
  width: clamp(126px, 11vw, 160px);
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  opacity: 0.72;
}

.studio-signature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

.site-menu { justify-self: end; }

.links {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 999px;
  background: rgb(239 244 241 / 66%);
}

.links > a {
  min-height: 38px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.links > a + a::before,
.links > a::after {
  content: none;
  display: none;
}

.links > a:hover,
.links > a[aria-current] {
  border: 0;
  background: rgb(255 255 255 / 88%);
  box-shadow: var(--shadow-control);
  color: var(--ink);
}

.links > .cabinet-link {
  min-height: 32px;
  margin-left: 6px;
  padding: 0 10px 0 16px;
  border: 0;
  border-left: 1px solid rgb(35 63 56 / 20%);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.cabinet-wordmark strong {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-variation-settings: "wght" 690;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.links > .cabinet-link:hover,
.links > .cabinet-link:focus-visible {
  background: transparent;
  box-shadow: none;
  color: var(--accent-deep);
}

.section-nav {
  margin-top: 10px;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  background: rgb(255 255 255 / 52%);
  box-shadow: var(--shadow-control);
  backdrop-filter: blur(18px);
}

.section-nav a {
  border-radius: 999px;
  color: var(--ink-soft);
}

.section-nav a:hover,
.section-nav a[aria-current] {
  background: var(--paper-strong);
  color: var(--ink);
}

.manager-hero {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: clamp(2.3rem, 5vw, 5rem);
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 42px;
  background:
    radial-gradient(circle at 88% 18%, rgb(76 126 116 / 17%), transparent 27rem),
    linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(241 247 244 / 70%));
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgb(255 255 255 / 88%);
}

.manager-hero::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(49 95 88 / 4%);
  content: "";
  pointer-events: none;
}

.manager-hero h1 {
  width: 100%;
  max-width: 100%;
  font-size: clamp(3.4rem, 5vw, 4.75rem);
  letter-spacing: -0.075em;
  line-height: 0.94;
  text-wrap: balance;
}

.manager-hero__copy { align-content: center; gap: 1.3rem; }

.landing-cta a,
.cta-primary,
.text-cta,
.manager-text-link,
.evidence-links a {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgb(49 95 88 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  color: var(--accent-deep);
  text-decoration: none;
  box-shadow: var(--shadow-control);
}

.landing-cta .cta-primary {
  border-color: var(--accent-deep);
  background: linear-gradient(145deg, #477a70, #315f58);
  color: #f8fffc;
}

.result-proof {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 34px;
  background: rgb(255 255 255 / 70%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgb(255 255 255 / 90%);
}

.result-proof__frame { border: 0; border-radius: 0; box-shadow: none; }
.result-proof__canvas { height: clamp(360px, 39vw, 540px); }
.result-proof__label { border-color: var(--accent); color: var(--accent-deep); }

.manager-snapshot {
  overflow: hidden;
  border-color: rgb(49 95 88 / 12%);
  border-radius: 24px;
  background: rgb(255 255 255 / 68%);
  box-shadow: none;
}

.manager-snapshot article + article { border-left-color: rgb(49 95 88 / 11%); }
.manager-snapshot span { color: var(--accent-deep); }

.landing-work,
.evidence-section,
.product-boundary,
.compact-plan,
.manager-section {
  margin-top: clamp(2rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 4rem);
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 34px;
  background: rgb(255 255 255 / 68%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgb(255 255 255 / 88%);
}

.landing-work__next,
.evidence-board,
.boundary-grid,
.manager-milestones > span,
[data-accent-panel] {
  border-color: rgb(49 95 88 / 13%);
  border-radius: 22px;
  background: rgb(248 252 250 / 78%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 82%);
}

.evidence-board,
.boundary-grid { overflow: hidden; }

.boundary-grid article + article { border-left-color: rgb(49 95 88 / 12%); background: var(--accent-soft); }

.manager-milestones { gap: 10px; }
.manager-milestones > span { border: 1px solid rgb(49 95 88 / 12%); border-left: 4px solid var(--accent); }
.manager-milestones [data-milestone-kind="prototype"] { background: rgb(47 114 88 / 10%); }

.project-pulse-shell,
.status-now,
.section-hero,
.roadmap-progress,
.roadmap-filter,
.load-error {
  border-color: rgb(49 95 88 / 13%);
  border-radius: 28px;
  background: rgb(255 255 255 / 68%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgb(255 255 255 / 86%);
}

.project-pulse-shell { margin-top: 20px; }
.page-head,
.status-now { margin-top: 24px; padding: clamp(1.8rem, 4vw, 3.5rem); }
.number-provenance { color: var(--ink-soft); }

article,
.card,
.module-node,
.quality-gate,
.data-card,
.roadmap-card,
.evidence-card {
  border-color: rgb(49 95 88 / 12%);
}

footer { margin-top: clamp(3rem, 7vw, 7rem); padding: 16px 0 24px; border: 0; background: transparent; }

.manager-footer,
.footer-inner {
  padding: 24px 28px;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 28px;
  background: rgb(255 255 255 / 62%);
  box-shadow: var(--shadow-control);
  backdrop-filter: blur(20px);
}

@media (max-width: 1100px) {
  .topbar .nav { grid-template-columns: 1fr; }
  .site-menu { width: 100%; justify-self: stretch; }
  .links { width: 100%; justify-content: center; }
  .manager-hero h1 { font-size: clamp(3rem, 5vw, 3.5rem); }
}

@media (max-width: 960px) {
  .manager-hero { border-radius: 34px; }
  .manager-hero h1 { font-size: clamp(3rem, 7.5vw, 4.15rem); }
  .result-proof { border-radius: 28px; }
  .manager-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-snapshot article:nth-child(3) { border-left: 0; border-top: 1px solid rgb(49 95 88 / 11%); }
  .manager-snapshot article:nth-child(4) { border-top: 1px solid rgb(49 95 88 / 11%); }
}

@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 24px), 1400px); }
  .topbar { padding-top: 10px; }
  .topbar .nav { gap: 10px; padding: 11px; border-radius: 24px; }
  .brand-logo { padding-inline: 6px; }
  .links { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .links::-webkit-scrollbar { display: none; }
  .links > a { flex: 0 0 auto; }
  .manager-hero { margin-top: 14px; padding: 32px 20px; }
  .manager-hero h1 { font-size: clamp(2.75rem, 10vw, 3.6rem); }
  .landing-work,
  .evidence-section,
  .product-boundary,
  .compact-plan,
  .manager-section { padding: 26px 20px; border-radius: 28px; }
  .manager-snapshot { grid-template-columns: 1fr; }
  .manager-snapshot article + article { border-top: 1px solid rgb(49 95 88 / 11%); border-left: 0; }
  .manager-footer,
  .footer-inner { padding: 22px 20px; }
}

@media (max-width: 430px) {
  .brand-logo { gap: 10px; }
  .brand-logo strong { font-size: 1.15rem; }
  .brand-logo .identity-divider { height: 23px; }
  .studio-signature { width: 90px; height: 26px; }
  .manager-hero { border-radius: 26px; }
  .manager-hero h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.5vw, 2.55rem);
  }
  .result-proof { border-radius: 22px; }
  .section-nav { overflow-x: auto; }
}

@media (prefers-contrast: more) {
  .topbar .nav,
  .manager-hero,
  .landing-work,
  .evidence-section,
  .product-boundary,
  .compact-plan,
  .manager-footer,
  .footer-inner { border-color: rgb(23 33 31 / 36%); background: #fff; }
}

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