/* Сброс, типографика, кнопки, сетка-фон, фокус, контейнер */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { padding-left: 1.2em; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.is-dark { background: var(--bg); color: var(--ink); }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section-gap) 0; }

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

/* Мелкие подписи заглавными (углы первого экрана, «02 · Услуги») */
.label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .label { margin-bottom: 14px; color: var(--muted); }

/* Зелёная плашка-маркер на ключевых словах заголовка */
.marker {
  background: var(--accent);
  color: var(--on-accent);
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Кнопки: прямоугольники без скруглений, высота ≥ 44px */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1.5px solid transparent;
  border-radius: 0;
  font: inherit;
  font-size: var(--fs-btn);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--field-line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { min-height: 44px; padding: 10px 14px; font-size: 15px; }

/* Тонкие зелёные линии сетки: 2 колонки на телефоне, 4 на компьютере */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px);
  background-size: 50% 100%;
  background-position: var(--gutter) 0;
}
@media (min-width: 768px) { .grid-bg::before { background-size: 25% 100%; } }
.grid-bg--hero::before {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 50% 100%, 100% 33.333%;
}
@media (min-width: 768px) { .grid-bg--hero::before { background-size: 25% 100%, 100% 33.333%; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
