/* =============================================
   layout.css — структура страниц
   ============================================= */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Nav ── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
#site-nav.scrolled { border-color: rgba(42,40,38,0.1); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img { display: block; }

.nav-links { display: flex; gap: 32px; }

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { opacity: 1; }

/* ── Бургер-кнопка ── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(42,40,38,0.12);
    padding: 8px 0 16px;
    z-index: 99;
  }
  .nav-links--open { display: flex; }

  .nav-links a {
    padding: 12px var(--pad);
    font-size: 16px;
  }

  body.nav-open main,
  body.nav-open footer {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.22s ease;
  }
}

/* ── Hero (главная) ── */
#hero {
  padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 9vw, 108px);
  background: var(--bg);
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(46px, 7.5vw, 84px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 760px;
  margin-bottom: 28px;
  text-wrap: pretty;
}

.hero-body {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--ink-muted);
  max-width: 520px;
  line-height: 1.72;
  margin-bottom: 36px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  border: 1.5px solid currentColor;
  border-radius: 100px;
  padding: 5px 18px;
}

/* ── Page Hero (внутренние страницы) ── */
.page-hero {
  padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 7vw, 80px);
  background: var(--bg-2);
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color 0.2s;
}
.page-back:hover { color: var(--ink); }

.page-hero-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  max-width: 680px;
  margin-bottom: 20px;
}

.page-hero-sub {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--green);
  font-weight: 500;
  margin-bottom: 16px;
}

.page-hero-body {
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--ink-muted);
  max-width: 500px;
  line-height: 1.72;
}

/* ── Sections ── */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 44px;
  text-wrap: pretty;
}
