/* site.css — свои правила этого сайта. Их дописывает агент; каркас — в
   base.css и blocks.css. Цвета, шрифты, радиусы и отступы — переменные из
   tokens.css (--bg, --fg, --accent, --font-display, --r-card, --gap …). */

/* ─── Мотив: пунктир меню-доски, ритм перрона ────────────────────────────── */

.site-header { border-bottom: 1px dotted var(--line-strong); padding-block: 14px; }
.site-footer { border-top: 1px dotted var(--line-strong); }

/* ─── Первый экран: вся ширина — типографика ─────────────────────────────── */

.hero-shell { position: relative; }

.page--index .hero--quiet {
  min-height: min(84vh, 780px);
  display: flex;
  align-items: center;
}
.page--index .hero--quiet .hero__text { max-width: none; }

.page--index .hero h1 {
  font-size: clamp(88px, 26vw, 400px);
  line-height: .92;
  letter-spacing: -.01em;
  margin: 0;
}

.page--index .hero__tagline {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.4;
  max-width: 36ch;
  margin-top: 18px;
}

.page--index .hero__actions { margin-top: 34px; }
.page--index .hero__actions .btn { font-size: 18px; padding: 16px 30px; }

.hero-shell__corner {
  position: absolute;
  right: max(var(--gutter, 32px), calc((100% - var(--container, 1240px)) / 2));
  bottom: 22px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .02em;
}

@media (max-width: 640px) {
  .page--index .hero h1 { font-size: clamp(72px, 24vw, 120px); }
  .page--index .hero__actions,
  .page--index .hero__actions .btn { width: 100%; text-align: center; }
  .hero-shell__corner { position: static; display: block; padding: 0 var(--gutter, 32px) 26px; }
}

/* ─── Меню: страница доски, а не карточки ────────────────────────────────── */

.page--index .b-services__list { max-width: 860px; }
.page--index .b-services__name b {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600;
}
.page--index .b-services__row { padding: 18px 0; }
.page--index .b-services__row .b-price {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
}

/* подзаголовок «печём сами» — строка-разделитель доски, без капса */
.page--index .b-services__group {
  margin: 40px 0 6px;
  padding-top: 26px;
  border-top: 1px dotted var(--line-strong);
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

/* ─── Заказ с собой: терракотовая полоса ─────────────────────────────────── */

.b-cta { --fg: #1D130C; --muted: #42291A; }
.b-cta .b-cta__wrap {
  max-width: none;
  text-align: left;
  justify-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 48px;
}
.b-cta h2 { grid-column: 1; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; }
.b-cta p { grid-column: 1; font-size: 18px; max-width: 44ch; }
.b-cta .b-cta__wrap > .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.b-cta .btn--primary {
  background: #2B211A;
  color: #F5EFE6;
  font-size: 17px;
  padding: 16px 28px;
  white-space: nowrap;
}
.b-cta .btn--primary:hover { filter: brightness(.82); }

@media (max-width: 720px) {
  .b-cta .b-cta__wrap { grid-template-columns: 1fr; }
  .b-cta .b-cta__wrap > .btn { grid-column: 1; grid-row: auto; }
  .b-cta .btn--primary { width: 100%; text-align: center; }
}

/* ─── Контакты ───────────────────────────────────────────────────────────── */

.page--index .b-contacts__list dd { font-size: 19px; }
.page--index .b-contacts__map img { background: var(--surface-2); }
