:root {
  --paper: #f8eadf;
  --paper-soft: #fbf1e9;
  --paper-quiet: #efe1d6;
  --ink: #151313;
  --muted: #71635e;
  --line: rgba(21, 19, 19, 0.14);
  --line-strong: rgba(21, 19, 19, 0.28);
  --clay: #bb806c;
  --sage: #dfe7dc;
  --cream: #fff8f2;
  --display: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
}

::selection {
  background: rgba(187, 128, 108, 0.28);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 234, 223, 0.88);
  backdrop-filter: blur(14px);
  font-family: var(--display);
  font-size: 14px;
}

.brand,
.nav-links a,
.nav-cta {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.brand {
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
}

.nav-links a {
  border-bottom: 1px solid transparent;
}

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

.nav-cta,
.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
}

.nav-cta {
  padding: 0 18px;
}

.nav-cta:hover,
.main-button:hover {
  background: var(--paper-quiet);
}

main {
  overflow: hidden;
}

#requests,
#approach,
#education,
#consultations,
#club,
#science {
  scroll-margin-top: 92px;
}

.hero,
.intro-section,
.requests-section,
.approach-section,
.education-section,
.consultations-section,
.club-section,
.telegram-section,
.science-section,
.final-section,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero,
.intro-section,
.requests-section,
.approach-section,
.education-section,
.consultations-section,
.club-section,
.telegram-section,
.science-section,
.final-section {
  position: relative;
  isolation: isolate;
}

.hero::before,
.intro-section::before,
.requests-section::before,
.approach-section::before,
.education-section::before,
.consultations-section::before,
.club-section::before,
.telegram-section::before,
.science-section::before,
.final-section::before {
  position: absolute;
  z-index: -1;
  width: min(540px, 48vw);
  aspect-ratio: 760 / 420;
  background: url("assets/existential-line.svg") center / contain no-repeat;
  content: "";
  opacity: 0.08;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(36px, 8vw, 118px);
  align-items: center;
  min-height: calc(100svh - 84px);
  padding: 58px 0 72px;
}

.hero::before {
  top: 92px;
  left: min(420px, 34vw);
  opacity: 0.06;
}

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

.overline,
.section-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.4;
}

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

h1,
h2,
.hero-name {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 34px;
  font-size: clamp(39px, 5.5vw, 74px);
  line-height: 1.12;
}

.hero-name {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(32px, 4.5vw, 62px);
  line-height: 1.1;
}

h1 span {
  display: block;
}

.main-button {
  min-height: 52px;
  padding: 0 24px;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.secondary-button {
  background: transparent;
  color: var(--muted);
}

.secondary-button:hover {
  background: var(--paper-soft);
  color: var(--ink);
}

.hero-portrait {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  border: 1px solid var(--line);
  border-radius: 18px 18px 2px 2px;
  filter: saturate(0.92) brightness(1.03);
}

.intro-section {
  padding: 74px 0 84px;
  border-top: 1px solid var(--line);
}

.intro-section::before {
  top: 50%;
  right: max(-70px, -6vw);
  width: min(620px, 58vw);
  opacity: 0.18;
  transform: translateY(-50%);
}

.intro-section p {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1.45;
  text-align: center;
}

.requests-section {
  padding: 84px 0 76px;
  border-top: 1px solid var(--line);
}

.requests-section::before {
  top: 92px;
  right: -96px;
}

.requests-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.requests-list article {
  min-height: 245px;
  padding: 30px 34px 32px 0;
  border-bottom: 1px solid var(--line);
}

.requests-list article:nth-child(odd) {
  padding-right: 48px;
  border-right: 1px solid var(--line);
}

.requests-list article:nth-child(even) {
  padding-left: 48px;
}

.requests-list h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.16;
}

.requests-list p,
.approach-copy p,
.club-section > p,
.telegram-section > p,
.final-section p,
.consultation-card dd {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.safety-note {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.approach-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 92px);
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.approach-section::before {
  bottom: 54px;
  left: -118px;
}

.approach-section h2,
.education-section h2,
.consultation-card h2,
.club-section h2,
.telegram-section h2,
.final-section h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.1;
}

.approach-copy p {
  margin-bottom: 24px;
}

.approach-copy p:last-child {
  margin-bottom: 0;
}

.education-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 92px);
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.education-section::before {
  top: 78px;
  right: -112px;
  opacity: 0.07;
}

.education-list {
  border-top: 1px solid var(--line);
}

.education-list article {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.education-list span {
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.45;
}

.education-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.consultations-section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.consultations-section::before {
  bottom: 24px;
  left: -104px;
  opacity: 0.07;
}

.consultation-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.72fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px 24px 4px 4px;
  background: var(--paper-soft);
}

.consultation-card .section-kicker,
.consultation-card h2 {
  grid-column: 1;
}

.consultation-card dl {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin-bottom: 0;
}

.consultation-card dl div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.consultation-card dl div + div {
  padding-top: 22px;
}

.consultation-card dt {
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
}

.consultation-card dd {
  margin: 0;
}

.consultation-card .main-button {
  justify-self: start;
  margin-top: 34px;
}

.club-section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.club-section::before {
  top: 74px;
  right: -90px;
}

.club-section h2 {
  max-width: 900px;
  margin-bottom: 28px;
}

.club-section > p {
  max-width: 860px;
  margin-bottom: 42px;
}

.club-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.club-points span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
}

.telegram-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 92px);
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.telegram-section::before {
  bottom: 32px;
  left: -114px;
  opacity: 0.07;
}

.telegram-section > p {
  margin-bottom: 0;
}

.telegram-section a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
}

.telegram-section a:hover {
  color: var(--clay);
}

.science-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 92px);
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.science-section::before {
  top: 66px;
  right: -112px;
  opacity: 0.07;
}

.science-section h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.1;
}

.science-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.science-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 2px 2px;
  background: rgba(251, 241, 233, 0.62);
}

.science-card span {
  margin-bottom: 16px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.4;
}

.science-copy p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.science-card p {
  margin-bottom: 28px;
}

.science-card .main-button {
  margin-top: auto;
}

.linkedin-button {
  background: var(--paper-soft);
}

.newsletter-button {
  background: var(--cream);
}

.final-section {
  padding: 88px 0 92px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.final-section::before {
  top: 50%;
  left: 50%;
  opacity: 0.06;
  transform: translate(-50%, -50%);
}

.final-section h2 {
  max-width: 920px;
  margin: 0 auto 22px;
}

.final-section p {
  max-width: 660px;
  margin: 0 auto 34px;
}

.final-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .approach-section,
  .education-section,
  .telegram-section,
  .science-section {
    grid-template-columns: 1fr;
  }

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

  .hero-copy {
    max-width: none;
  }

  .hero-portrait {
    max-width: 560px;
    justify-self: start;
  }

  .requests-list {
    grid-template-columns: 1fr;
  }

  .requests-list article,
  .requests-list article:nth-child(odd),
  .requests-list article:nth-child(even) {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
  }

  .consultation-card {
    grid-template-columns: 1fr;
  }

  .consultation-card .section-kicker,
  .consultation-card h2,
  .consultation-card dl {
    grid-column: auto;
    grid-row: auto;
  }

  .consultation-card .main-button {
    margin-top: 0;
  }

  .science-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .intro-section,
  .requests-section,
  .approach-section,
  .education-section,
  .consultations-section,
  .club-section,
  .telegram-section,
  .science-section,
  .final-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding-top: 16px;
    font-size: 13px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .hero {
    padding: 38px 0 56px;
  }

  h1 {
    font-size: clamp(34px, 10.4vw, 42px);
  }

  .hero-name {
    font-size: clamp(21px, 6vw, 23px);
  }

  .hero-portrait img {
    height: 100%;
    object-position: center 52%;
    border-radius: 16px 16px 2px 2px;
  }

  .intro-section,
  .requests-section,
  .approach-section,
  .education-section,
  .consultations-section,
  .club-section,
  .telegram-section,
  .science-section,
  .final-section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .intro-section p {
    font-size: 24px;
    text-align: left;
  }

  .intro-section::before {
    top: 54%;
    right: -110px;
    width: 520px;
    opacity: 0.12;
  }

  .hero::before,
  .requests-section::before,
  .approach-section::before,
  .education-section::before,
  .consultations-section::before,
  .club-section::before,
  .telegram-section::before,
  .science-section::before,
  .final-section::before {
    width: 430px;
    opacity: 0.055;
  }

  .hero::before,
  .requests-section::before,
  .education-section::before,
  .club-section::before,
  .science-section::before {
    top: 48px;
    right: -190px;
    left: auto;
  }

  .approach-section::before,
  .consultations-section::before,
  .telegram-section::before {
    right: auto;
    bottom: 28px;
    left: -190px;
  }

  .requests-list h2 {
    font-size: 27px;
  }

  .requests-list p,
  .approach-copy p,
  .education-list p,
  .club-section > p,
  .telegram-section > p,
  .science-copy p,
  .final-section p,
  .consultation-card dd {
    font-size: 16px;
  }

  .approach-section h2,
  .education-section h2,
  .consultation-card h2,
  .club-section h2,
  .telegram-section h2,
  .science-section h2,
  .final-section h2 {
    font-size: 32px;
  }

  .consultation-card {
    padding: 24px 18px;
    border-radius: 18px 18px 3px 3px;
  }

  .science-card {
    padding: 22px 18px;
  }

  .education-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .consultation-card dl div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .main-button {
    width: 100%;
  }

  .hero-actions,
  .final-actions {
    width: 100%;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}
