:root {
  color-scheme: dark;
  --ink: #171a14;
  --paper: #f3f2e9;
  --accent: #dcfa67;
  --muted: #bdc1b4;
  --dark-rule: #404638;
  --light-rule: #c8cbbd;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--paper);
  background: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(100% - clamp(36px, 8vw, 112px), 1440px);
  margin-inline: auto;
}

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  border-bottom: 1px solid var(--dark-rule);
}

.brand, .site-header nav, .site-header nav a {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: .06em;
}

.brand img { border-radius: 50%; }
.site-header nav { gap: clamp(12px, 3vw, 38px); }
.site-header nav a { min-height: 44px; font-size: .875rem; color: var(--muted); }
.site-header nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(38px, 7vw, 108px);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 550;
}

h1, h2, .metric-value {
  font-weight: 820;
  letter-spacing: -.065em;
  line-height: .98;
}

h1 { font-size: clamp(2.55rem, 5.35vw, 5.75rem); }
h1 span { color: var(--accent); white-space: nowrap; }
.offer {
  max-width: 39ch;
  margin-block: 22px 26px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 50px;
  padding: 11px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.25;
}

.button span { font-size: 1.15em; }
.button:hover { background: var(--paper); border-color: var(--paper); }
.button:focus-visible { outline-color: var(--paper); }
.button-outline { background: transparent; color: var(--paper); border-color: var(--muted); }
.button-outline:hover { color: var(--ink); }

.hero-covers, .work-grid {
  display: grid;
  gap: clamp(7px, 1.25vw, 20px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: clamp(5px, .7vw, 11px);
  background: var(--dark-rule);
}

figcaption {
  margin-top: 8px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hero-covers figcaption {
  color: var(--muted);
  font-size: clamp(.6875rem, 1vw, .875rem);
}

.paper { color-scheme: light; background: var(--paper); color: var(--ink); }
.portfolio, .results, .details, .contacts { padding-block: clamp(36px, 6vw, 88px); }
h2 { margin-bottom: clamp(20px, 2.7vw, 40px); font-size: clamp(2.125rem, 4.9vw, 4.75rem); }
.work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.results, .details { border-top: 1px solid var(--light-rule); }

.result-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric, .guarantee {
  padding: clamp(18px, 3vw, 44px);
  border-radius: 10px;
}

.metric { background: #e5e7db; }
.metric-value { margin-bottom: 14px; font-size: clamp(2.8rem, 7vw, 7rem); white-space: nowrap; }
.guarantee { background: var(--accent); }
.guarantee h3 { margin-bottom: 12px; font-size: clamp(1.375rem, 2.4vw, 2.25rem); }
.result-grid p:not(.metric-value) { line-height: 1.45; }

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 7vw, 104px);
}

.steps {
  margin: 0;
  padding-left: 1.65em;
  line-height: 1.45;
}

.steps li { padding: 11px 0 11px 6px; border-bottom: 1px solid var(--light-rule); }
.steps li::marker { font-weight: 800; }
.niches, .contact-links { display: flex; flex-wrap: wrap; gap: 8px; }
.niches { margin: 0; padding: 0; list-style: none; }
.niches li { padding: 8px 12px; border: 1px solid var(--light-rule); border-radius: 24px; }

.contacts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.contacts h2 { margin: 0; }
.site-footer { border-top: 1px solid var(--dark-rule); border-bottom: 0; color: var(--muted); font-size: .875rem; }

@media (max-width: 850px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  h1 { max-width: 13ch; font-size: clamp(2.45rem, 8vw, 4.5rem); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guarantee { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-header { min-height: 60px; }
  .hero { gap: 22px; padding-block: 28px 32px; }
  .eyebrow { margin-bottom: 10px; }
  .offer { margin-block: 12px 16px; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .metric-value { font-size: clamp(1.85rem, 9vw, 2.8rem); }
}
