/* Раздел /services/ — монохром, один акцент, границы 1px без теней, шрифт Geist. */
:root {
  --fg: #0a0a0a;
  --fg-2: #404040;
  --fg-3: #737373;
  --line: #ebebeb;
  --line-strong: #d4d4d4;
  --bg: #ffffff;
  --bg-2: #fafafa;
  --accent: #4f46e5;
  --danger: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Шапка */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--fg); color: #fff;
              display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.nav { display: flex; gap: 24px; font-size: 14px; color: var(--fg-3); }
.nav a { transition: color .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--fg); }

/* Общая типографика раздела */
.crumbs { font-size: 13px; color: var(--fg-3); margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a:hover { color: var(--fg); }
.eyebrow { font-size: 13px; color: var(--fg-3); margin: 0 0 16px; }
h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; margin: 0 0 20px; max-width: 680px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--fg-2); margin: 0; max-width: 600px; letter-spacing: -0.01em; }
.section-label { font-size: 13px; font-weight: 500; color: var(--fg-3); margin: 0 0 8px; }

/* Кнопки */
.btn { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; height: 44px; padding: 0 16px;
       border-radius: var(--radius-sm); font: inherit; font-weight: 500; font-size: 14px; cursor: pointer;
       border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--fg); color: #fff; }
.btn-primary:hover { background: #262626; }
.btn-secondary { background: var(--bg); color: var(--fg); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--fg); }
.btn + .btn { margin-top: 8px; }

/* Каталог */
.catalog-head { padding: 72px 0 56px; }
.how { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: how; }
.how li { counter-increment: how; border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; color: var(--fg-2); }
.how li::before { content: counter(how, decimal-leading-zero); display: block; font-size: 13px; color: var(--fg-3);
                  font-variant-numeric: tabular-nums; margin-bottom: 6px; }

.catalog { padding: 0 0 96px; }
.group { padding-top: 56px; border-top: 1px solid var(--line); margin-top: 0; }
.group + .group { margin-top: 56px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 24px; }
.group-head h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; margin: 0; }
.group-count { font-size: 13px; color: var(--fg-3); }
.group-note { flex-basis: 100%; margin: 6px 0 0; font-size: 15px; color: var(--fg-2); max-width: 720px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
        background: var(--bg); transition: border-color .15s; min-width: 0; }
.card:hover { border-color: var(--fg-3); }
.card-title { font-size: 17px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 8px; }
.card-desc { font-size: 14px; color: var(--fg-2); margin: 0 0 24px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.card-audience { flex: 1 1 auto; font-size: 13px; line-height: 1.4; color: var(--fg-3); min-width: 0; }
.card-price { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; text-align: right;
              font-variant-numeric: tabular-nums; margin-left: auto; }
.card-price.is-free { color: var(--accent); }
.card-ext { display: block; font-size: 12px; font-weight: 400; color: var(--fg-3); }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--fg-2); }
.empty a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* Страница услуги */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "head panel" "body panel";
        column-gap: 80px; padding-block: 72px 96px; align-items: start; }
.page-head { grid-area: head; }
.page-body { grid-area: body; }
.panel { grid-area: panel; position: sticky; top: 24px; border: 1px solid var(--line); border-radius: var(--radius);
         padding: 24px; background: var(--bg); }
.panel .price { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin: 0; font-variant-numeric: tabular-nums; }
.panel .price.is-free { color: var(--accent); }
.panel .note { font-size: 13px; color: var(--fg-3); margin: 4px 0 20px; }
.panel dl { margin: 24px 0 0; font-size: 14px; }
.panel dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.panel dt { color: var(--fg-3); font-size: 13px; margin-bottom: 2px; }
.panel dd { margin: 0; color: var(--fg); }
.provider-line { font-size: 12px; color: var(--fg-3); margin: 16px 0 0; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

.steps-section { margin-top: 72px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 8px;
            padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--fg-2); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 13px; color: var(--fg-3);
                    font-variant-numeric: tabular-nums; padding-top: 3px; }
.links { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.links a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.links a:hover { color: var(--fg); text-decoration-color: var(--fg); }

/* Форма заявки */
.order { border-top: 1px solid var(--line); background: var(--bg-2); padding: 72px 0 96px; scroll-margin-top: 0; }
.order-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 80px; align-items: start; }
.order-text h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 12px; }
.order-text p { margin: 0; font-size: 15px; color: var(--fg-2); }
.order-sum { margin: 24px 0 0; padding: 16px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
             display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; color: var(--fg-2); }
.order-sum strong { font-size: 18px; font-weight: 600; color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-text .muted { margin-top: 16px; font-size: 13px; color: var(--fg-3); }

.form { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 28px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.field input[type=text], .field input[type=number], .field textarea {
  width: 100%; font: inherit; font-size: 15px; font-weight: 400; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; transition: border-color .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #a3a3a3; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field input[type=number] { max-width: 160px; }
.field input[type=file] { width: 100%; max-width: 100%; min-width: 0; font: inherit; font-size: 14px; font-weight: 400; color: var(--fg-2); }
.field textarea { min-height: 112px; resize: vertical; }
.hint { font-size: 12px; font-weight: 400; color: var(--fg-3); }
.hint a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 13px; font-weight: 500; color: var(--fg-2); padding: 0; margin-bottom: 6px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice label { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; cursor: pointer;
                border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px; transition: border-color .15s; }
.choice label:has(input:checked) { border-color: var(--fg); }
.choice input { grid-row: span 2; accent-color: var(--fg); margin: 0; }
.choice b { font-size: 14px; font-weight: 500; }
.choice small { grid-column: 2; font-size: 12px; color: var(--fg-3); }
.submit { justify-self: start; width: auto; min-width: 200px; margin-top: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Строка об исполнителе и подвал */
.provider { border-top: 1px solid var(--line); padding: 20px 0; font-size: 13px; color: var(--fg-3); }
footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--fg-3); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--fg); }

@media (max-width: 1039px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .nav { gap: 16px; }
  .nav a:not([aria-current]) { display: none; }
  h1 { font-size: 34px; letter-spacing: -0.035em; }
  .lead { font-size: 17px; }
  .catalog-head { padding: 40px 0 40px; }
  .how { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .group { padding-top: 40px; }
  .group + .group { margin-top: 40px; }
  .page { grid-template-columns: 1fr; grid-template-areas: "head" "panel" "body"; padding-block: 40px 72px; }
  .panel { position: static; margin-top: 32px; }
  .steps-section { margin-top: 48px; }
  .order { padding: 56px 0 72px; }
  .order-wrap { grid-template-columns: 1fr; gap: 32px; }
  .form { padding: 20px; }
  .submit { width: 100%; justify-self: stretch; }
}
@media (max-width: 640px) {
  .grid, .grid.is-4 { grid-template-columns: 1fr; }
  .form-row, .choice { grid-template-columns: 1fr; }
}

.form-error { margin: 0; padding: 10px 12px; border: 1px solid var(--danger); border-radius: 8px; color: var(--danger); font-size: 14px; }
.thanks .page-head p { max-width: 60ch; }
