:root {
  --ink: #123f3d;
  --ink-soft: #3c6863;
  --paper: #f8f8f2;
  --paper-warm: #fbfaf5;
  --sage: #e3eee5;
  --sage-deep: #47785b;
  --sage-dark: #0f4a43;
  --line: rgba(18, 63, 61, 0.24);
  --white: #fffefa;
  --max: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-warm);
  font-family: Inter, Arial, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 245, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 64px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.nav__side {
  display: flex;
  gap: clamp(22px, 4vw, 70px);
  align-items: center;
  font-size: 15px;
}

.nav__side--right {
  justify-content: flex-end;
}

.brand,
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

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

.footer__brand {
  color: var(--white);
}

.brand__mark {
  position: relative;
  width: 40px;
  height: 28px;
  display: inline-block;
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 11px;
  background: currentColor;
  transform: skewX(-35deg);
}

.brand__mark::before {
  top: 1px;
  left: 8px;
}

.brand__mark::after {
  bottom: 1px;
  left: 0;
  opacity: 0.82;
}

.brand__text {
  font-family: "Cormorant Garamond", "Baskerville", "Libre Baskerville", Georgia, serif;
  font-size: clamp(27px, 2.25vw, 39px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.13em;
}

.hero {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(28px, 4.8vw, 58px) 0 56px;
  text-align: center;
}

.eyebrow,
.section-index {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

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

h1,
h2,
.step span,
.footer__cta {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 820px;
  margin: 18px auto 24px;
  font-size: clamp(46px, 5.8vw, 86px);
  line-height: 0.95;
}

.hero__image {
  position: relative;
  min-height: clamp(290px, 31vw, 430px);
  background-image:
    linear-gradient(180deg, rgba(248, 248, 242, 0.02), rgba(18, 63, 61, 0.12)),
    url("./assets/hero-landscape.png");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero__note {
  position: absolute;
  top: 30%;
  width: 140px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.34em;
  text-align: left;
  text-transform: uppercase;
}

.hero__note::after,
.side-note::after,
.founder__role::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin-top: 18px;
  background: currentColor;
}

.hero__note--left {
  left: clamp(26px, 4vw, 58px);
}

.hero__note--right {
  right: clamp(26px, 4vw, 58px);
}

.hero__lead {
  margin: 28px auto 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.1vw, 48px);
  line-height: 1.15;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 34px;
  background: var(--sage-deep);
  color: var(--white);
  font-size: 17px;
  transition: transform 180ms ease, background 180ms ease;
}

.button::after {
  content: "→";
  margin-left: 14px;
  font-size: 24px;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--sage-dark);
}

.section-band {
  background: var(--sage);
}

.section-grid,
.founder__grid,
.approach,
.footer__top,
.footer__contacts,
.footer__bottom {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(480px, 1.2fr);
  gap: clamp(48px, 8vw, 130px);
  padding: 76px 0 68px;
}

.section-intro h2,
.founder h2 {
  margin: 26px 0 0;
  font-size: clamp(48px, 5.8vw, 82px);
  line-height: 1;
}

.side-note {
  max-width: 180px;
  margin-top: 138px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

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

.practice {
  border-bottom: 1px solid var(--line);
}

.practice__button {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  text-align: left;
}

.practice__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.practice__icon::before,
.practice__icon::after {
  content: "";
  position: absolute;
  inset: 9px 0 auto;
  height: 1px;
  background: currentColor;
}

.practice__icon::after {
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.practice.is-open .practice__icon::after {
  transform: rotate(0deg);
}

.practice__body[hidden] {
  display: none;
}

.practice__body p {
  margin: 0;
  padding: 0 52px 24px 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.founder {
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}

.founder__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(560px, 1fr);
  gap: clamp(48px, 7vw, 110px);
  padding: 74px 0 68px;
}

.founder h2 {
  font-size: clamp(36px, 4vw, 58px);
}

.founder__role {
  margin-top: 14px;
  font-size: 22px;
}

.founder__summary {
  max-width: 36ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.founder__content {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 54px;
  align-items: start;
  padding-top: 72px;
}

.founder__content h3 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 500;
}

.founder__content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.founder__bio {
  border-left: 0;
  padding-left: 0;
}

.founder__bio,
.founder__bio p {
  max-width: 520px;
}

.founder__item + .founder__item {
  margin-top: 26px;
}

.founder__item h3 {
  margin-bottom: 9px;
}

.founder__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.founder__watermark {
  position: absolute;
  right: 8%;
  top: 10%;
  color: rgba(18, 63, 61, 0.06);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(170px, 22vw, 320px);
  line-height: 1;
  pointer-events: none;
}

.approach {
  padding: 58px 0 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 26px;
}

.step {
  min-height: 190px;
  padding: 0 58px;
  border-left: 1px solid var(--line);
}

.step:first-child {
  border-left: 0;
  padding-left: 0;
}

.step span {
  display: block;
  margin-bottom: 8px;
  font-size: 58px;
  line-height: 1;
}

.step h3 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1;
}

.step p {
  max-width: 290px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

.footer {
  background: linear-gradient(135deg, #123f3d, #0a3a35);
  color: var(--white);
  padding: 38px 0 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: start;
  gap: 40px;
}

.footer .side-note {
  margin: 0;
  color: rgba(255, 254, 250, 0.76);
}

.footer__cta {
  width: fit-content;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid rgba(255, 254, 250, 0.72);
  background: rgba(255, 254, 250, 0.1);
  color: var(--white);
  font-size: 19px;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.footer__cta::after {
  content: "→";
  margin-left: 14px;
  font-size: 22px;
}

.footer__cta:hover {
  background: rgba(255, 254, 250, 0.18);
  transform: translateY(-2px);
}

.footer__brand {
  margin-top: 18px;
  font-size: 26px;
  letter-spacing: 0.1em;
}

.footer__contacts {
  display: flex;
  justify-content: center;
  gap: clamp(34px, 7vw, 92px);
  margin-top: 32px;
  font-size: 18px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 46px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 254, 250, 0.45);
  color: rgba(255, 254, 250, 0.8);
  font-size: 15px;
}

.footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 144px;
  }

  .nav {
    width: min(100% - 36px, var(--max));
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0;
    text-align: center;
  }

  .brand {
    grid-row: 1;
    justify-content: center;
  }

  .nav__side,
  .nav__side--right {
    justify-content: center;
    gap: 28px;
  }

  .hero,
  .section-grid,
  .founder__grid,
  .approach,
  .footer__top,
  .footer__contacts,
  .footer__bottom {
    width: min(100% - 36px, var(--max));
  }

  .section-grid,
  .founder__grid,
  .founder__content,
  .steps,
  .footer__top {
    grid-template-columns: 1fr;
  }

  .side-note {
    margin-top: 42px;
  }

  .founder__content {
    padding-top: 0;
    gap: 32px;
  }

  .founder__bio {
    padding-left: 0;
    border-left: 0;
  }

  .steps {
    gap: 30px;
  }

  .step,
  .step:first-child {
    min-height: auto;
    padding: 0 0 28px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer__top,
  .footer__cta {
    text-align: left;
  }

  .footer__cta {
    justify-self: start;
  }

  .footer__contacts {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .nav__side {
    font-size: 14px;
  }

  .brand {
    font-size: 28px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero {
    padding-top: 28px;
  }

  .hero__image {
    min-height: 280px;
  }

  .hero__note {
    display: none;
  }

  .hero__lead {
    font-size: 29px;
  }

  .section-grid,
  .founder__grid {
    padding: 56px 0;
  }

  .section-intro h2,
  .founder h2 {
    font-size: 42px;
  }

  .practice__button {
    font-size: 18px;
  }

  .footer__bottom {
    justify-content: flex-start;
  }
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(227, 238, 229, 0.74), rgba(251, 250, 245, 0.92)),
    var(--paper-warm);
}

.legal-document {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 96px) 0;
}

.legal-document__back {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--ink-soft);
  font-size: 16px;
}

.legal-document h1 {
  margin: 24px 0 34px;
  font-size: clamp(44px, 8vw, 86px);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-document p {
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.7;
}

.legal-document a {
  text-decoration: underline;
  text-underline-offset: 5px;
}
