* {
  box-sizing: border-box;
}

:root {
  --bg: #e9e3d7;
  --paper: #f5f0e6;
  --ink: #141414;
  --muted: #5f5b54;
  --line: #1a1a1a;
  --accent: #9f2f22;
  --accent-dark: #7d2419;
  --max: 1220px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px) 0 0 / 40px 100%,
    var(--bg);
  color: var(--ink);
}

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

.page-frame {
  position: fixed;
  inset: 18px;
  border: 1px solid rgba(0,0,0,0.18);
  pointer-events: none;
  z-index: 1;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(233, 227, 215, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.14);
}

.topbar-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-code {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.whats-link:hover {
  color: var(--ink);
}

.whats-link {
  font-weight: 800;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

.kicker,
.section-id,
.spec-label,
.contact-label {
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 800;
}

.hero h1,
.manifesto h2,
.method h2,
.structure h2,
.contact-block h2,
.spec-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
  max-width: 9ch;
  text-transform: uppercase;
}

.intro,
.hero-right p,
.manifesto-text p,
.service-content p,
.method-steps p,
.structure-right p,
.contact-block p {
  color: var(--muted);
  line-height: 1.75;
}

.intro {
  font-size: 1.06rem;
  max-width: 62ch;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 56px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 1px solid var(--line);
  transition: 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
}

.full {
  width: 100%;
}

.hero-right {
  display: grid;
  gap: 16px;
}

.spec-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.28);
}

.spec-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
}

.mini-grid article {
  min-height: 170px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.18);
}

.mini-grid article:nth-child(2n) {
  border-right: 0;
}

.mini-grid article:nth-last-child(-n+2) {
  border-bottom: 0;
}

.mini-grid span {
  display: inline-block;
  margin-bottom: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.mini-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.manifesto,
.method,
.structure,
.contact-block {
  padding: 70px 0;
  border-top: 1px solid rgba(0,0,0,0.14);
}

.manifesto-grid,
.method-grid,
.structure-grid,
.contact-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.manifesto h2,
.method h2,
.structure h2,
.contact-block h2 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  text-transform: uppercase;
}

.services {
  border-top: 1px solid rgba(0,0,0,0.14);
}

.service-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(0,0,0,0.14);
}

.service-row:first-child {
  border-top: 0;
}

.service-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.service-content h3,
.structure-right h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

.method-steps {
  display: grid;
  gap: 18px;
}

.method-steps article,
.structure-right article,
.contact-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.2);
}

.method-steps strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.structure-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.phone {
  display: block;
  margin: 6px 0 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

@media (max-width: 1050px) {
  .hero-grid,
  .manifesto-grid,
  .method-grid,
  .structure-grid,
  .contact-inner,
  .topbar-inner {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}

@media (max-width: 760px) {
  .page-frame {
    inset: 10px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .mini-grid,
  .structure-right {
    grid-template-columns: 1fr;
  }

  .mini-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mini-grid article:last-child {
    border-bottom: 0;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
