:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5f665f;
  --paper: #f7f4ed;
  --surface: #ffffff;
  --line: #ded8cb;
  --accent: #f3b438;
  --accent-dark: #8d520f;
  --green: #2f775b;
  --red: #b54236;
  --shadow: 0 24px 80px rgba(23, 23, 23, 0.12);
  font-family: Inter, Manrope, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(247, 244, 237, 0.92);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.simple {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.brand-text {
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: #313631;
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.footer a:hover {
  color: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(88px, 12vw, 150px) clamp(20px, 4vw, 64px) clamp(56px, 7vw, 92px);
  color: #fff;
  background: #171717;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 13, 12, 0.92), rgba(12, 13, 12, 0.58) 45%, rgba(12, 13, 12, 0.18)),
    linear-gradient(0deg, rgba(12, 13, 12, 0.56), transparent 38%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/terra-hero.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-content {
  width: min(820px, 100%);
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.42;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #171717;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.46);
  color: #fff;
}

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

.intro,
.mailing,
.contacts {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.section-copy h2,
.mailing h2,
.split-copy h2,
.document h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-text {
  display: grid;
  gap: 18px;
  color: #343934;
  font-size: clamp(17px, 1.6vw, 21px);
}

.intro-text p,
.split-copy p,
.mailing-body p,
.contact-block p,
.footer p,
.document p {
  margin: 0;
}

.section-band {
  background: #1f211f;
  color: #fff;
}

.narrow {
  max-width: 760px;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.format-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.format-card:nth-child(2) {
  background: rgba(47, 119, 91, 0.34);
}

.format-card:nth-child(3) {
  background: rgba(181, 66, 54, 0.3);
}

.format-card:nth-child(4) {
  background: rgba(243, 180, 56, 0.16);
}

.card-number {
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}

.format-card h3 {
  margin: 60px 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

.format-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.split {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--surface);
}

.photo-panel img {
  width: 100%;
  aspect-ratio: 5 / 3.4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.split-copy {
  max-width: 620px;
}

.split-copy p {
  margin-top: 20px;
  color: #343934;
  font-size: 18px;
}

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

.mailing-body {
  display: grid;
  gap: 18px;
  font-size: 19px;
  color: #343934;
}

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

.contact-block {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.contact-block span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-block a,
.contact-block p {
  font-size: 19px;
  font-weight: 750;
  line-height: 1.32;
}

.requisites {
  grid-column: span 2;
}

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

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px clamp(20px, 4vw, 64px);
  color: rgba(255, 255, 255, 0.82);
  background: #171717;
}

.footer strong {
  color: #fff;
}

.footer p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 24px;
}

.footer a {
  color: rgba(255, 255, 255, 0.82);
}

.document {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 88px) 0;
}

.document h1 {
  margin-bottom: 14px;
}

.document h2 {
  margin: 36px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.document section {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.document p,
.document li {
  color: #343934;
  font-size: 18px;
}

.document ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.document-meta {
  color: var(--muted);
}

@media (max-width: 980px) {
  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .mailing,
  .contacts,
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
  }

  .hero {
    min-height: 72vh;
    padding-top: 64px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(12, 13, 12, 0.9), rgba(12, 13, 12, 0.58)),
      linear-gradient(0deg, rgba(12, 13, 12, 0.58), transparent 42%);
  }

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

  .button {
    width: 100%;
  }

  .format-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .format-card {
    min-height: auto;
  }

  .format-card h3 {
    margin-top: 40px;
  }

  .requisites {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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