/* ============ tokens ============ */

:root {
  --bg: #fafaf8;
  --paper: #ffffff;
  --ink: #16181d;
  --body: #3b4048;
  --muted: #6b727c;
  --line: #e4e6ea;
  --accent: #177a55;
  --accent-ink: #0e4d36;
  --accent-soft: #e6f4ec;
  --dust-ink: #6a5b47;
  --max: 880px;
  --r: 20px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", var(--sans);
}

html:lang(zh) {
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --display: var(--sans);
}

/* ============ base ============ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--body);
  background:
    radial-gradient(1100px 600px at 85% -20%, #e2f0e8 0%, rgba(226,240,232,0) 60%),
    radial-gradient(800px 500px at -10% 5%, #eceef2 0%, rgba(236,238,242,0) 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

html:lang(zh) body { line-height: 1.85; letter-spacing: .01em; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

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

.wrap, .top__in, main, .foot {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 640px) {
  .wrap, .top__in, main, .foot { padding-left: 32px; padding-right: 32px; }
}

/* ============ header ============ */

.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250,250,248,.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.top__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 20px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 14px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--ink); letter-spacing: -.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* сегментированный переключатель — три равных сегмента */
.lang {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.lang a {
  display: grid; place-items: center;
  min-width: 54px; padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; line-height: 1.2;
  color: var(--muted);
  transition: color .15s, background .15s;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: #fff; }

/* ============ hero ============ */

.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(24px, 4vw, 48px); }

h1 {
  margin: 0 0 .6em;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
html:lang(zh) h1 { letter-spacing: 0; line-height: 1.25; }

.wants {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  font-weight: 700; line-height: 1.35; letter-spacing: -.015em;
  color: var(--ink);
  max-width: 30em;
}
.wants span { display: inline; }
.wants span:not(:last-child)::after { content: " · "; color: var(--accent); font-weight: 800; }
html:lang(zh) .wants { letter-spacing: 0; line-height: 1.6; }

.lead {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--body);
  max-width: 36em;
}

/* ============ blocks ============ */

.block { padding: clamp(28px, 4.5vw, 52px) 0; }

.label {
  margin-bottom: 22px;
  font-size: 1.05rem; font-weight: 500;
  color: var(--ink);
}

/* цепочка технологий */
.chain {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px;
}
.chain li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.chain li span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600; font-size: .98rem;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(22,24,29,.04);
}
.chain li:not(:last-child)::after {
  content: "↓";
  color: var(--muted);
  font-size: 1rem;
  padding-left: 18px;
}
.chain__final span {
  border-radius: 16px;
  background: var(--ink); border-color: var(--ink);
  color: #fff;
  line-height: 1.4;
}

@media (min-width: 720px) {
  .chain { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 10px; }
  .chain li { flex-direction: row; align-items: center; }
  .chain li:not(:last-child)::after { content: "→"; padding-left: 0; }
}

/* развилка */
.forks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}
.fork {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 190px;
  padding: 26px 28px;
  border-radius: var(--r);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
}
html:lang(zh) .fork { letter-spacing: 0; line-height: 1.6; }
.fork--green {
  background: linear-gradient(165deg, #edf7f1 0%, #d5ebde 100%);
  color: var(--accent-ink);
}
.fork--dust {
  background: linear-gradient(165deg, #f4f1eb 0%, #e3dcd0 100%);
  color: var(--dust-ink);
}
.or {
  justify-self: center; align-self: center;
  display: grid; place-items: center;
  min-width: 52px; height: 52px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .9rem; font-weight: 600; color: var(--muted);
}

@media (min-width: 640px) {
  .forks { grid-template-columns: 1fr auto 1fr; gap: 16px; }
  .fork { min-height: 240px; }
}

.statement {
  margin-top: clamp(36px, 6vw, 64px);
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
}
html:lang(zh) .statement { letter-spacing: 0; line-height: 1.4; }
.statement__soft { color: var(--muted); }

/* разделитель */
.cut {
  margin: clamp(40px, 7vw, 80px) 0;
  border: 0; height: 1px;
  background: var(--line);
}

/* ============ about ============ */

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.about__media { align-self: start; }
.portrait {
  width: 100%; max-width: 220px;
  aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 48px -24px rgba(22,24,29,.35);
}
.about__text > p + p { margin-top: 1.1em; }
.about__intro {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700; line-height: 1.25; letter-spacing: -.02em;
  color: var(--ink);
}
html:lang(zh) .about__intro { letter-spacing: 0; line-height: 1.5; }
.about__text em { font-style: normal; color: var(--ink); font-weight: 600; }
.pull {
  margin-top: 1.6em !important;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700; line-height: 1.35; letter-spacing: -.015em;
  color: var(--ink);
}
html:lang(zh) .pull { letter-spacing: 0; line-height: 1.6; }

@media (min-width: 760px) {
  .about { grid-template-columns: 280px 1fr; gap: 56px; }
  .about__media { position: sticky; top: 92px; }
  .portrait { max-width: 100%; }
}

/* ============ cta ============ */

.cta {
  margin-top: clamp(56px, 9vw, 104px);
  padding: clamp(28px, 6vw, 56px);
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
}
.cta__q {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.62);
  margin-bottom: 14px;
}
.cta__big {
  font-family: var(--display);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
}
html:lang(zh) .cta__big { letter-spacing: 0; line-height: 1.3; }

.contacts {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(28px, 4vw, 40px);
}
.contacts a {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-weight: 500; font-size: .98rem;
  transition: background .15s, color .15s, border-color .15s;
}
.contacts a:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cta :focus-visible { outline-color: #fff; }

/* ============ footer ============ */

.foot {
  padding-top: 36px; padding-bottom: 40px;
  font-size: .9rem; color: var(--muted);
}

/* ============ gate (корневая) ============ */

.gate {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 24px;
}
.gate__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.gate__nav a {
  display: inline-block;
  padding: 18px 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600; font-size: 1.1rem;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(22,24,29,.04);
  transition: background .15s, color .15s, border-color .15s;
}
.gate__nav a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.gate__nav a:lang(zh) { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* ============ motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============ ventures cards ============ */

.ventures {
  padding-top: clamp(24px, 4vw, 40px);
}

.ventures__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 720px) {
  .ventures__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.venture-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: 0 4px 16px -6px rgba(22, 24, 29, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.venture-card:hover {
  transform: translateY(-2px);
  border-color: #d0d4dc;
  box-shadow: 0 12px 28px -10px rgba(22, 24, 29, 0.09);
}

.venture-card__tag {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.venture-card__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.venture-card__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--body);
}

.venture-card__body {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  flex-grow: 1;
}

.venture-card__subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 8px;
}

.venture-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.venture-card__list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--body);
}

.venture-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.venture-card__list strong {
  color: var(--ink);
  font-weight: 600;
}

.venture-card__foot {
  margin-top: 22px;
}

.venture-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.venture-card__btn--primary {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #ffffff;
}

.venture-card__btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.venture-card__btn--outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.venture-card__btn--outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}