/* ООО «Справедливость» — одностраничный лендинг. Нейтральный графит с полосами светлого
   «бетона», медный акцент, линейная (рулённая) вёрстка без теней и градиентов.
   Oswald (заголовки) / IBM Plex Sans (текст). */

:root {
  --bg: #17191C;
  --bg-2: #1F2226;
  --bg-3: #262A2F;
  --band: #E9EAEC;
  --band-2: #DFE1E4;
  --acc: #C0653A;
  --acc-deep: #A5512C;
  --acc-ink: #8F4524;
  --acc-soft: #E0946C;
  --line-d: #33373D;
  --line-l: #C9CCD1;
  --txt-d: #ECEDEF;
  --mut-d: #A3A8AF;
  --txt-l: #1B1D21;
  --mut-l: #5A6068;
  --danger: #E07A6B;
  --r: 6px;
  --f-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt-d);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--f-head); margin: 0; font-weight: 500; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: 0.005em; margin-bottom: 28px; }
h2, h1 { text-wrap: balance; }

a { color: var(--acc-soft); }
.is-off { display: none !important; }

.kicker {
  margin: 0 0 12px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc-soft);
}

.kicker--ink { color: var(--acc-ink); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  padding: 12px 24px;
  cursor: pointer;
  border: 1px solid var(--acc);
  line-height: 1.35;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--solid { background: var(--acc-deep); border-color: var(--acc-deep); color: #FFFFFF; }
.btn--solid:hover { background: var(--acc-ink); border-color: var(--acc-ink); }
.btn--line { background: transparent; color: var(--acc-soft); }
.btn--line:hover { background: rgba(192, 101, 58, 0.14); }
.btn--lg { padding: 15px 30px; font-size: 16.5px; }
.btn--full { display: block; width: 100%; }
.btn:disabled { opacity: 0.45; cursor: default; }

:is(a, button, input, summary):focus-visible { outline: 2px solid var(--acc-soft); outline-offset: 2px; }

/* ---------- Шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 25, 28, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-d);
}

.top__in {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--txt-d);
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.menu { display: flex; gap: 24px; margin-left: auto; }

.menu a {
  color: var(--mut-d);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}

.menu a:hover { color: var(--txt-d); }
.top__cta { padding: 9px 18px; font-size: 14px; }

/* ---------- Первый экран ---------- */

.intro { padding: 76px 0 84px; border-bottom: 1px solid var(--line-d); }

.intro__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.intro h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.intro__sub {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--mut-d);
  max-width: 50ch;
}

.intro__act { display: flex; gap: 12px; flex-wrap: wrap; }

/* карточка «Порядок работы» */

.plan {
  background: var(--bg-2);
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: 26px 26px 24px;
}

.plan__kicker {
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc-soft);
}

.plan__list {
  list-style: none;
  counter-reset: st;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.plan__list li {
  counter-increment: st;
  position: relative;
  padding-left: 46px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-d);
}

.plan__list li:last-child { border-bottom: 0; padding-bottom: 0; }

.plan__list li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 16px;
  color: #FFFFFF;
  background: var(--acc-deep);
  border-radius: 4px;
  line-height: 1;
}

.plan__list h3 { font-size: 19px; margin-bottom: 3px; }
.plan__list p { margin: 0; font-size: 14.5px; color: var(--mut-d); }

/* ---------- Светлые полосы ---------- */

.band { background: var(--band); color: var(--txt-l); padding: 68px 0 74px; }
.band + .band { border-top: 1px solid var(--line-l); }

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
  border-bottom: 1px solid var(--line-l);
}

.row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 18px 0 16px;
  border-top: 1px solid var(--line-l);
}

.row__n {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
  color: var(--acc-ink);
}

.row b { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.35; margin-bottom: 4px; }
.row p { margin: 0; font-size: 14.5px; color: var(--mut-l); }

/* ---------- Услуги (тёмная) ---------- */

.svc { padding: 68px 0 74px; }

.svc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tile {
  background: var(--bg-2);
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: 22px 22px 20px;
  transition: border-color 0.15s ease;
}

.tile:hover { border-color: var(--acc); }

.tile__n {
  display: block;
  font-family: var(--f-head);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--acc-soft);
  margin-bottom: 12px;
}

.tile h3 { font-size: 21px; margin-bottom: 6px; }
.tile p { margin: 0; font-size: 14.5px; color: var(--mut-d); }

/* ---------- Ответы (светлая) ---------- */

.qa__list { max-width: 860px; border-bottom: 1px solid var(--line-l); }

.qa { border-top: 1px solid var(--line-l); }

.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  position: relative;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 22px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--acc-ink), var(--acc-ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--acc-ink), var(--acc-ink)) center / 2px 14px no-repeat;
  transition: transform 0.15s ease;
}

.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0 0 18px; font-size: 15px; color: var(--mut-l); max-width: 70ch; }

/* ---------- Опрос (тёмная) ---------- */

.qz { padding: 74px 0 84px; border-top: 1px solid var(--line-d); }

.qz__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.qz__sub { margin: 0 0 22px; font-size: 16px; color: var(--mut-d); max-width: 44ch; }

.qz__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.qz__points li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--txt-d);
}

.qz__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--acc);
  border-radius: 2px;
}

.qz__panel {
  background: var(--bg-2);
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: 24px 26px 26px;
}

.qz__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin-bottom: 12px;
}

.qz__back {
  display: none;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--mut-d);
  font-family: var(--f-body);
  font-size: 14px;
  padding: 4px 6px 4px 0;
  cursor: pointer;
}

.qz__back.is-on { display: inline-flex; }
.qz__back:hover { color: var(--txt-d); }

.qz__count {
  margin-left: auto;
  font-family: var(--f-head);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc-soft);
}

.qz__seg {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 24px;
}

.qz__seg span { height: 4px; background: var(--line-d); border-radius: 2px; transition: background-color 0.25s ease; }
.qz__seg span.is-done { background: var(--acc); }

.qstep { display: none; }
.qstep.is-on { display: block; animation: drop 0.25s ease; }

@keyframes drop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.qstep h3 { font-size: 23px; margin-bottom: 16px; }

.opts { display: grid; gap: 8px; }

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  background: var(--bg-3);
  color: var(--txt-d);
  font-family: var(--f-body);
  font-size: 15.5px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.opt__n {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--acc);
  border-radius: 4px;
  font-family: var(--f-head);
  font-size: 14px;
  color: var(--acc-soft);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.opt:hover { border-color: var(--acc); }
.opt.is-picked { border-color: var(--acc-deep); background: rgba(192, 101, 58, 0.16); }
.opt.is-picked .opt__n { background: var(--acc-deep); color: #FFFFFF; }

.hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--mut-d);
}

.hint svg { flex-shrink: 0; color: var(--acc-soft); margin-top: 2px; }

/* ---------- Поля ---------- */

.field { margin-bottom: 14px; }

.field input[type="text"], .tel {
  width: 100%;
  border: 1px solid #3A3F46;
  border-radius: 4px;
  background: #F4F5F6;
  color: var(--txt-l);
  font-family: var(--f-body);
  font-size: 16.5px;
  transition: border-color 0.15s ease;
}

.field input[type="text"] { padding: 13px 14px; }
.field input[type="text"]:focus, .tel:focus-within { border-color: var(--acc); outline: none; }

.tel { display: flex; align-items: center; }

.tel__cc {
  padding: 13px 0 13px 14px;
  font-weight: 600;
  color: var(--txt-l);
  user-select: none;
}

.tel input {
  border: none;
  flex: 1;
  min-width: 0;
  padding: 13px 14px 13px 8px;
  background: transparent;
  font-family: var(--f-body);
  font-size: 16.5px;
  color: var(--txt-l);
}

.tel input:focus { outline: none; }

.field input.is-bad, .tel.is-bad { border-color: var(--danger); }
.field__warn { display: none; margin: 6px 0 0; color: var(--danger); font-size: 13px; }
.field input.is-bad ~ .field__warn, .tel.is-bad ~ .field__warn { display: block; }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 16px;
  font-size: 13px;
  color: var(--mut-d);
  cursor: pointer;
  line-height: 1.5;
}

.agree--tight { margin: 12px 0 0; }
.agree input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--acc-deep); flex-shrink: 0; }

.fail { margin: 12px 0 0; color: var(--danger); font-size: 14px; }

.done { text-align: center; padding: 14px 0 6px; }
.done svg { color: var(--acc-soft); margin-bottom: 8px; }
.done h3 { font-size: 26px; margin-bottom: 6px; }
.done p { margin: 0 0 8px; font-size: 16px; }
.done__note { font-size: 14px !important; color: var(--mut-d); max-width: 46ch; margin: 0 auto !important; }

/* ---------- Подвал ---------- */

.foot { border-top: 1px solid var(--line-d); padding: 44px 0 26px; font-size: 14.5px; }

.foot__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 26px;
}

.foot__name {
  font-family: var(--f-head);
  font-size: 19px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.foot__about { margin: 0 0 10px; color: var(--mut-d); max-width: 42ch; }
.foot__t { font-family: var(--f-head); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; color: var(--acc-soft); }
.foot p { margin: 0 0 7px; }
.foot a { color: var(--txt-d); text-decoration: none; }
.foot a:hover { color: var(--acc-soft); }
.foot__muted { color: var(--mut-d); }

.foot__bottom {
  border-top: 1px solid var(--line-d);
  padding-top: 16px;
  color: var(--mut-d);
  font-size: 13px;
}

.foot__bottom p { margin: 0 0 8px; }
.foot__legal { max-width: 90ch; }

/* ---------- Всплывающее окно ---------- */

.dlg { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 18px; }

.dlg__veil { position: absolute; inset: 0; background: rgba(10, 11, 13, 0.78); }

.dlg__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: 26px 24px 22px;
  animation: drop 0.22s ease;
}

.dlg__x {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: none;
  color: var(--mut-d);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}

.dlg__x:hover { color: var(--txt-d); }
.dlg__title { font-size: 28px; margin-bottom: 6px; }
.dlg__sub { margin: 0 0 18px; font-size: 14.5px; color: var(--mut-d); }
.short .done { padding: 8px 0 0; }

/* ---------- Уведомление о cookies ---------- */

.note {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.note p { margin: 0; font-size: 13.5px; color: var(--mut-d); }
.note__btn { padding: 7px 14px; font-size: 13.5px; flex-shrink: 0; }

/* ---------- Закреплённая кнопка на телефонах ---------- */

.fixbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(23, 25, 28, 0.96);
  backdrop-filter: blur(7px);
  border-top: 1px solid var(--line-d);
}

.fixbar__btn { display: block; width: 100%; }

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
  .intro__grid { grid-template-columns: 1fr; gap: 34px; }
  .intro h1 { font-size: 44px; }
  .rows { grid-template-columns: 1fr; }
  .svc__grid { grid-template-columns: 1fr 1fr; }
  .qz__grid { grid-template-columns: 1fr; gap: 30px; }
  .foot__grid { grid-template-columns: 1fr; gap: 22px; }
  .menu { display: none; }
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .fixbar { display: block; }
  .top__cta { display: none; }
  .intro { padding: 42px 0 48px; }
  .intro h1 { font-size: 34px; }
  .intro__sub { font-size: 16px; }
  h2 { font-size: 28px; }
  .band, .svc { padding: 46px 0 52px; }
  .qz { padding: 50px 0 60px; }
  .svc__grid { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
  .qz__panel { padding: 18px 16px 20px; }
  .qstep h3 { font-size: 20px; }
  .note { left: 10px; right: 10px; bottom: 82px; max-width: none; }
}

/* ---------- Минимум движения ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qstep.is-on, .dlg__card { animation: none; }
  .btn, .tile, .opt, .opt__n, .qz__seg span { transition: none; }
}
