:root {
  --color-bg: #f8f6e8;
  --color-text: #312b24;
  --color-accent: #1a312a;
  --color-white: #ffffff;
  --color-line: rgba(49, 43, 36, 0.18);
  --color-muted: rgba(49, 43, 36, 0.72);
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Onest", system-ui, sans-serif;
  --wrap: 1200px;
  --pad: 32px;
  --section: 140px;
  --radius-photo: 10px;
  --radius-card: 22px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.hero-copy .eyebrow {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nowrap {
  white-space: nowrap;
  hyphens: none;
}

h1,
h2,
h3,
.fact-num,
.footer-brand p {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  justify-self: start;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(46px, 4.3vw, 68px);
  line-height: 1.08;
  hyphens: none;
  -webkit-hyphens: none;
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.15;
}

.lede {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--color-muted);
  max-width: 28em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  gap: 10px;
}

.btn-accent,
.header-cta {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-story {
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-text);
  padding-right: 8px;
  transition: border-color 280ms ease;
}

.btn-story:hover,
.btn-story:focus-visible {
  border-color: var(--color-accent);
}

.btn-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease;
}

.btn-arrow svg {
  transition: transform 280ms ease;
}

.btn-story:hover .btn-arrow,
.btn-story:focus-visible .btn-arrow {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.btn-story:hover .btn-arrow svg,
.btn-story:focus-visible .btn-arrow svg {
  transform: translateX(3px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 246, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  gap: 16px;
}

.nav-desktop {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.nav-desktop a,
.footer-nav a,
.footer-channels a,
.footer-dm a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 280ms ease;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-channels a:hover,
.footer-channels a:focus-visible,
.footer-dm a:hover,
.footer-dm a:focus-visible,
.nav-desktop a.is-active,
.nav-panel a.is-active,
.footer-nav a.is-active {
  background-size: 100% 1px;
}

.nav-desktop a.is-active,
.nav-panel a.is-active,
.footer-nav a.is-active {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

/* Тест IBM Plex Sans: оба стека → один гротеск. Откат: fonts-legacy + pack legacy. */
body.fonts-ibm {
  --font-serif: "IBM Plex Sans", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
}

.header-cta {
  justify-self: end;
  min-width: 0;
  white-space: nowrap;
  padding: 0 18px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  justify-self: end;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--color-text);
}

.nav-panel {
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
}

.nav-panel nav {
  display: flex;
  flex-direction: column;
  padding: 12px var(--pad) 24px;
  gap: 4px;
}

.nav-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
}

.nav-panel-cta {
  margin: 4px 0 12px;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 500;
}

.hero {
  padding: 48px 0 0;
  border-bottom: 1px solid var(--color-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

.hero-copy {
  padding-block: 24px;
}

.hero-photo {
  min-height: 0;
}

.hero-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--radius-photo);
  aspect-ratio: 715 / 1004;
}

.hero-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  max-width: 36rem;
}

.hero-note-label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero-note-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

.hero-note-text {
  margin: 0;
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.5;
}


.facts {
  padding: 56px 0 var(--section);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fact-card,
.channel-card {
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  min-height: 180px;
}

.fact-num {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
}

.fact-cap {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.story,
.education,
.channels,
.articles,
.threads-thoughts {
  padding-bottom: var(--section);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.story-copy p {
  margin: 0 0 16px;
  max-width: 36em;
}

.story-media {
  position: relative;
  min-height: 480px;
}

.story-accent {
  position: absolute;
  right: 10%;
  top: 6%;
  width: 22%;
  height: 18%;
  background: var(--color-accent);
  border-radius: 14px;
  z-index: 0;
}

.story-photo {
  margin: 0;
}

.story-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.story-photo-main {
  position: relative;
  z-index: 1;
  width: 74%;
}

.story-photo-main img {
  aspect-ratio: 4 / 5;
  object-position: 50% 45%;
}

.story-photo-small {
  position: absolute;
  z-index: 2;
  width: 44%;
  right: 0;
  bottom: 4%;
}

.story-photo-small img {
  aspect-ratio: 1;
  object-position: 50% 18%;
  box-shadow: 0 18px 40px rgba(26, 49, 42, 0.18);
}

.edu-timeline {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.edu-timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1.25rem 1fr;
  gap: 0 20px;
  align-items: start;
  position: relative;
  padding-bottom: 32px;
}

.edu-timeline li:last-child {
  padding-bottom: 0;
}

.edu-when {
  display: block;
  padding-top: 2px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-muted);
  text-align: right;
}

.edu-marker {
  position: relative;
  width: 1.25rem;
  height: 100%;
  justify-self: center;
}

.edu-marker::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateX(-50%);
  z-index: 1;
}

.edu-marker::after {
  content: "";
  position: absolute;
  top: 17px;
  bottom: -32px;
  left: 50%;
  width: 1px;
  background: var(--color-line);
  transform: translateX(-50%);
}

.edu-timeline li:last-child .edu-marker::after {
  display: none;
}

.edu-timeline-next .edu-marker::before {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  box-sizing: border-box;
}

.edu-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding-bottom: 4px;
}

.edu-kind {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.edu-title {
  margin: 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
}

.edu-title a {
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 280ms ease;
}

.edu-title a:hover,
.edu-title a:focus-visible {
  background-size: 100% 1px;
  outline: none;
}

.edu-meta {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.45;
  max-width: 38em;
}

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

.channel-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  position: relative;
  transition: transform 280ms ease, background-color 280ms ease;
}

.channel-card:hover,
.channel-card:focus-visible {
  transform: translateY(-4px);
  background-color: #243f36;
  outline: none;
}

.channel-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

.channel-card p {
  margin: 0;
  font-size: 16px;
  color: rgba(248, 246, 232, 0.78);
}

.ext {
  margin-top: auto;
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(248, 246, 232, 0.28);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 280ms ease;
}

.ext svg {
  display: block;
}

.channel-card:hover .ext,
.channel-card:focus-visible .ext {
  transform: translate(4px, -4px);
}

.site-footer {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 72px 0;
}

.footer-ethics {
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(248, 246, 232, 0.22);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(248, 246, 232, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-legal {
  grid-template-columns: 1.3fr 0.9fr 1fr 0.9fr;
}

.footer-brand p {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 28px;
}

.footer-brand .footer-copy,
.footer-brand .footer-req {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  opacity: 0.7;
}

.footer-brand .footer-req {
  margin-top: 10px;
}

.footer-nav,
.footer-channels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.footer-nav a,
.footer-channels a,
.footer-dm a {
  width: fit-content;
  max-width: 100%;
}

.footer-dm {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  font-size: 15px;
}

.articles-all {
  margin-top: 40px;
}

.threads-thoughts h2 {
  margin: 0;
}

.thoughts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 36px;
}

.thoughts-head .thoughts-profile {
  flex-shrink: 0;
}

.thoughts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.thoughts-list li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line);
}

.thoughts-list li[hidden] {
  display: none !important;
}

.thought-date {
  display: block;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.4;
}

.thought-body p {
  margin: 0 0 14px;
  max-width: 42em;
  white-space: pre-line;
}

.thought-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  color: var(--color-text);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 280ms ease;
}

.thought-link:hover,
.thought-link:focus-visible {
  background-size: 100% 1px;
  outline: none;
}

.thought-link .ext {
  display: inline-flex;
  transition: transform 280ms ease;
}

.thought-link:hover .ext,
.thought-link:focus-visible .ext {
  transform: translateX(3px);
}

.thoughts-more-wrap {
  margin: 28px 0 0;
  display: flex;
  justify-content: center;
}

.thoughts-more-wrap .btn {
  font: inherit;
  cursor: pointer;
  background-color: transparent;
}

.articles h2 {
  margin-bottom: 36px;
}

.article-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  transition: transform 280ms ease, border-color 280ms ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-8px);
  border-color: var(--color-text);
  outline: none;
}

.article-thumb,
.article-card img.article-thumb,
.article-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.article-thumb-empty {
  background: var(--color-accent);
  aspect-ratio: 4 / 3;
}

.article-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  padding: 4px;
  margin-bottom: 28px;
}

.article-card-featured .article-thumb,
.article-card-featured img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
}

.article-card-featured .article-body {
  padding: 36px 40px;
}

.article-card-boxed {
  padding: 4px;
  height: 100%;
}

.article-card-boxed .article-thumb,
.article-card-boxed img {
  aspect-ratio: 4 / 3;
}

.article-card-boxed .article-body {
  padding: 22px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body time {
  font-size: 15px;
  color: var(--color-muted);
}

.article-body h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
}

.article-card-featured .article-body h2,
.article-card-featured .article-body h3 {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.3;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
}

.article-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.articles-all {
  display: flex;
  justify-content: center;
}

.articles-page {
  padding: 72px 0 140px;
}

.blog-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin: 0 auto 56px;
  max-width: 56rem;
}

.blog-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .blog-hero h1 {
    white-space: normal;
  }
}

.blog-lede {
  margin: 0;
  max-width: 530px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-muted);
}

.articles-page h1 {
  margin-bottom: 40px;
}

.articles-list {
  display: grid;
  gap: 28px;
}

.articles-list-item .article-card-featured {
  margin-bottom: 0;
}

@media (max-width: 849px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-card-featured {
    grid-template-columns: 1fr;
  }
  .article-card-featured .article-body {
    padding: 22px 16px 18px;
  }
  .article-card-featured .article-thumb,
  .article-card-featured img {
    aspect-ratio: 16 / 10;
  }
}

.docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 18px;
  margin-top: 40px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.doc-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-photo);
  border: 1px solid var(--color-line);
}

.doc-card span {
  font-size: 15px;
}

.lightbox {
  border: 0;
  padding: 24px;
  max-width: min(900px, 92vw);
  background: var(--color-bg);
  color: var(--color-text);
}

.lightbox::backdrop {
  background: rgba(26, 49, 42, 0.72);
}

.lightbox img {
  width: 100%;
  height: auto;
}

.lightbox-close {
  min-height: 44px;
  margin-bottom: 12px;
  border: 1px solid var(--color-line);
  background: transparent;
  border-radius: 999px;
  padding: 0 16px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 1024px) {
  :root {
    --pad: 24px;
    --section: 96px;
  }
  .header-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-desktop {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .thoughts-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .edu-timeline li {
    grid-template-columns: 1.25rem 1fr;
    gap: 0 14px;
    padding-bottom: 28px;
  }
  .edu-when {
    grid-column: 2;
    text-align: left;
    order: -1;
    margin-bottom: 2px;
    padding-top: 0;
  }
  .edu-marker {
    grid-row: 1 / span 2;
  }
  .edu-body {
    grid-column: 2;
  }
  .thoughts-head {
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-photo {
    max-width: 420px;
    justify-self: end;
  }
}

@media (max-width: 849px) {
  .hero-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  h1 {
    font-size: 39px;
  }
  .hero-photo {
    max-width: 420px;
    justify-self: start;
  }
  .story-media {
    min-height: 0;
    padding-bottom: 28%;
  }
  .story-photo-main {
    width: 82%;
  }
  .story-photo-small {
    width: 46%;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 20px;
    --section: 80px;
  }
  body {
    font-size: 17px;
  }
  .facts-grid,
  .channel-grid,
  .footer-inner,
  .docs {
    grid-template-columns: 1fr;
  }
  .fact-num {
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 38px;
  }
}

@media (min-width: 1280px) {
  .channel-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .channel-card h3 {
    font-size: 24px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.topics {
  padding: var(--section) 0;
}

.topics-lead,
.topics-note,
.docs-lead {
  max-width: 42rem;
  color: var(--color-muted);
}

.topics-list {
  list-style: none;
  margin: 40px 0 28px;
  padding: 0;
  counter-reset: topic;
}

.topics-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
  counter-increment: topic;
}

.topics-list li::before {
  content: counter(topic);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  padding-top: 6px;
}

.topics-list h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  grid-column: 2;
}

.topics-list p {
  margin: 0;
  grid-column: 2;
  max-width: 40rem;
  color: var(--color-muted);
}

.page-hero {
  padding: 96px 0 40px;
}

.page-hero h1,
.legal-page h1 {
  max-width: 18ch;
}

.approach,
.start-work {
  padding: var(--section) 0;
}

.approach-sub {
  margin: 0 0 20px;
  max-width: 28ch;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.3;
}

.approach-copy {
  max-width: 42rem;
  margin-bottom: 40px;
}

.approach-copy p {
  color: var(--color-muted);
}

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

.approach-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 28px;
}

.approach-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
}

.approach-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
}

.start-work-inner {
  max-width: 40rem;
}

.start-lead {
  color: var(--color-muted);
  margin: 0 0 18px;
}

.start-price {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 500;
}

.start-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--color-muted);
}

.pricing-intro {
  padding: 0 0 24px;
}

.pricing-intro h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 500;
}

.pricing-intro p {
  max-width: 42rem;
  margin: 0;
  color: var(--color-muted);
}

.pricing-block,
.pricing-terms,
.docs-group,
.docs-cta {
  padding: 40px 0 80px;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.pricing-format-note {
  margin: 0 0 40px;
  color: var(--color-muted);
  font-size: 15px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.pricing-grid-side {
  grid-template-columns: 1fr;
  max-width: 520px;
}

.docs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0;
}

.price-card,
.price-side {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 32px;
}

.price-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.price-sum {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  margin: 12px 0 20px;
}

.price-sum span {
  display: inline-block;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-muted);
}

.price-list {
  margin: 0 0 28px;
  padding-left: 1.2em;
  color: var(--color-muted);
}

.price-side p {
  margin: 0 0 14px;
}

.price-note {
  font-size: 15px;
  color: var(--color-muted);
}

.legal-page {
  padding: 96px 0 100px;
}

.legal-wrap {
  max-width: 760px;
}

.legal-body h2 {
  margin-top: 2em;
  font-size: 22px;
  font-weight: 500;
}

.legal-body p,
.legal-body li {
  color: var(--color-text);
}

.docs-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

.docs-item--landscape {
  grid-column: span 2;
  max-width: 920px;
}

.docs-card {
  display: block;
  text-decoration: none;
}

.docs-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-photo);
  background: #ece8da;
  border: 1px solid var(--color-line);
  overflow: hidden;
}

.docs-card--landscape .docs-frame {
  aspect-ratio: 4 / 3;
}

.docs-card--portrait .docs-frame {
  aspect-ratio: 3 / 4;
  max-width: 420px;
}

.docs-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.docs-label {
  display: block;
  margin-top: 12px;
  font-size: 15px;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-legal {
  align-items: start;
  gap: 28px;
}

.footer-req,
.footer-contacts {
  font-size: 14px;
  color: rgba(248, 246, 232, 0.72);
  line-height: 1.5;
}

.footer-contacts {
  display: grid;
  gap: 6px;
}

.footer-contacts a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .pricing-grid,
  .pricing-cards-grid,
  .approach-grid,
  .docs-grid,
  .footer-legal {
    grid-template-columns: 1fr;
  }

  .docs-item--landscape {
    grid-column: auto;
    max-width: none;
  }

  .docs-card--portrait .docs-frame {
    max-width: none;
  }
}
