:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5d6975;
  --soft: #eef4f8;
  --paper: #fbfcfd;
  --line: rgba(12, 36, 58, 0.14);
  --gold: #b8904f;
  --copper: #6c8faf;
  --green: #173f5f;
  --blue: #0c2d48;
  --navy: #071c30;
  --sky: #8fb7d3;
  --white: #ffffff;
  --shadow: 0 22px 58px rgba(7, 28, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 253, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.topbar.is-elevated {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 28px rgba(7, 28, 48, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(143, 183, 211, 0.5);
  color: var(--sky);
  background: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.brand-copy small,
.nav,
.eyebrow,
.section-kicker,
.case-label,
.footer,
.card-top {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand-copy small,
.nav a,
.footer,
.card-top {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  padding: 8px 0;
}

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

.hero {
  position: relative;
  min-height: calc(92vh - 77px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 28, 48, 0.92), rgba(17, 58, 92, 0.82)),
    url("data:image/svg+xml,%3Csvg width='1600' height='1000' viewBox='0 0 1600 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1600' height='1000' fill='%23dbe8f0'/%3E%3Cg fill='none' stroke='%234d7898' stroke-opacity='.46'%3E%3Cpath d='M0 702c157-47 267-124 468-103 232 24 348 160 559 122 223-40 300-225 573-203'/%3E%3Cpath d='M0 548c181-82 348-92 504-49 216 58 308 161 531 96 232-67 288-220 565-204'/%3E%3Cpath d='M0 844c181-14 295-85 482-64 206 23 320 112 520 96 245-20 358-124 598-128'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.22'%3E%3Crect x='1010' y='130' width='340' height='460' rx='2'/%3E%3Crect x='1048' y='168' width='88' height='380'/%3E%3Crect x='1168' y='168' width='140' height='24'/%3E%3Crect x='1168' y='226' width='116' height='24'/%3E%3Crect x='1168' y='284' width='132' height='24'/%3E%3Crect x='1168' y='342' width='86' height='24'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 28, 48, 0.76), rgba(7, 28, 48, 0.22) 58%, rgba(7, 28, 48, 0.58));
}

.hero-bg span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-bg span:nth-child(1) {
  right: 9vw;
  top: 14vh;
  width: 28vw;
  height: 44vh;
}

.hero-bg span:nth-child(2) {
  right: 17vw;
  top: 25vh;
  width: 18vw;
  height: 31vh;
}

.hero-bg span:nth-child(3) {
  right: 5vw;
  bottom: 12vh;
  width: 22vw;
  height: 16vh;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(92vh - 77px);
  padding: clamp(56px, 7vw, 104px) clamp(20px, 5vw, 72px) clamp(42px, 6vw, 76px);
  color: var(--white);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--sky);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.8vw, 76px);
}

h2 {
  font-size: clamp(30px, 3.8vw, 50px);
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

p {
  line-height: 1.65;
}

.lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.4vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  border-color: var(--sky);
  background: var(--sky);
  color: var(--navy);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.button:hover {
  transform: translateY(-1px);
}

.founder-card {
  align-self: end;
  padding: 28px;
  background: rgba(251, 252, 253, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.signal {
  width: 8px;
  height: 8px;
  background: var(--sky);
}

.quote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.35;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.metrics strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.section {
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.text-stack {
  color: var(--muted);
  font-size: 17px;
}

.principles,
.cases {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.principle-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle-grid article,
.case-grid article {
  min-height: 260px;
  padding: 24px;
  background: var(--paper);
}

.principle-grid span {
  display: block;
  margin-bottom: 38px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.principle-grid p,
.case-grid p,
.contact-card p,
.legal {
  color: var(--muted);
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(30px, 6vw, 88px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 34px;
}

.timeline-item:not(:last-child) {
  border-left: 1px solid var(--line);
  margin-left: 11px;
  padding-left: 22px;
}

.timeline-item > span {
  grid-column: 1;
  width: 23px;
  height: 23px;
  border: 5px solid var(--paper);
  background: var(--blue);
  outline: 1px solid var(--line);
  transform: translateX(-22px);
}

.timeline-item > div {
  grid-column: 2;
}

.check-panel {
  position: sticky;
  top: 98px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(7, 28, 48, 0.08);
}

.check-panel label {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  color: var(--ink);
  line-height: 1.45;
}

.check-panel input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.check-result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  background: var(--soft);
  border-left: 4px solid var(--blue);
}

.check-result strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid article {
  min-height: 290px;
}

.case-label {
  display: block;
  margin-bottom: 46px;
  color: var(--copper);
  font-weight: 700;
}

.audience {
  background: var(--navy);
  color: var(--white);
}

.audience-inner {
  max-width: 1120px;
}

.audience h2 {
  margin-bottom: 34px;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audience-list span {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.82);
}

.person {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.person-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.person-card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.person-card h2 {
  margin-bottom: 20px;
}

.person-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.person-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid currentColor;
  color: var(--blue);
  font-weight: 700;
}

.person-links a {
  color: var(--sky);
}

.person-links a:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.person-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.person-notes article {
  min-height: 290px;
  padding: 24px;
  background: var(--paper);
}

.person-notes span {
  display: block;
  margin-bottom: 38px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.person-notes p {
  color: var(--muted);
}

.contact {
  padding-bottom: 34px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: clamp(32px, 7vw, 96px);
  padding: clamp(28px, 5vw, 58px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.telegram-panel {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--soft);
  border: 1px solid var(--line);
}

.telegram-panel p {
  margin-bottom: 0;
  font-size: 18px;
}

.telegram-button {
  width: fit-content;
}

.channel-link {
  color: var(--blue);
  font-weight: 700;
}

.channel-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal {
  max-width: 980px;
  margin: 22px 0 0;
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

@media (max-width: 1000px) {
  .hero-inner,
  .split,
  .work-layout,
  .contact-card,
  .person-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: start;
  }

  .founder-card,
  .check-panel {
    position: relative;
    top: auto;
  }

  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .person-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .metrics,
  .principle-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid article,
  .case-grid article,
  .person-notes article {
    min-height: 0;
  }

  .principle-grid span,
  .case-label,
  .person-notes span {
    margin-bottom: 30px;
  }
}
