/* ==========================================================================
   SKP — Сервис 05 «Аудит имущества»
   Палитра 2КАД: красный #cc2c2c, глубокий #a51d1d, чернильный #18181b,
   приглушённый #6b7280, линия #e5e7eb, фон #fafafa / тёплый #fef7f7.
   Статусы: green #16a34a / #dcfce7, yellow #ca8a04 / #fef9c3, red #cc2c2c / #fee2e2
   ========================================================================== */

.aud {
  --aud-red: #cc2c2c;
  --aud-red-deep: #a51d1d;
  --aud-red-darker: #7a1414;
  --aud-ink: #18181b;
  --aud-ink-2: #2a2a30;
  --aud-muted: #6b7280;
  --aud-line: #e5e7eb;
  --aud-bg-soft: #fafafa;
  --aud-bg-warm: #fef7f7;
  --aud-green: #16a34a;
  --aud-green-bg: #dcfce7;
  --aud-yellow: #ca8a04;
  --aud-yellow-bg: #fef9c3;
  --aud-red-bg: #fee2e2;
  --aud-radius: 18px;
  --aud-shadow: 0 2px 8px rgba(24, 24, 27, .05), 0 12px 32px rgba(24, 24, 27, .07);
  --aud-shadow-lg: 0 4px 16px rgba(24, 24, 27, .07), 0 24px 64px rgba(24, 24, 27, .11);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--aud-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.aud *, .aud *::before, .aud *::after { box-sizing: border-box; }

/* На странице сервиса свой H1 — заголовок темы убираем, иначе на странице
 * два H1 с одинаковым текстом. Контейнер темы тоже растягиваем: сервис
 * сам управляет шириной через .aud-container. */
.page-id-958 .page-title { display: none; }
.page-id-958 .page-content { padding: 0; margin: 0; }
.page-id-958 .section-page > .container { max-width: none; padding: 0; }

.aud-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================ HERO ===================================== */

.aud-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 50% -10%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #fff 0%, var(--aud-bg-soft) 100%);
  padding: clamp(48px, 7vw, 92px) 0 clamp(52px, 7vw, 88px);
  border-bottom: 1px solid var(--aud-line);
}

/* Мягкое красное свечение — фокус на поле ввода */
.aud-hero__glow {
  position: absolute;
  left: 50%;
  top: 210px;
  width: min(880px, 96vw);
  height: 420px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(204, 44, 44, .16), rgba(204, 44, 44, 0) 72%);
  filter: blur(8px);
  animation: audGlow 5.5s ease-in-out infinite;
}
@keyframes audGlow {
  0%, 100% { opacity: .55; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}

.aud-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--aud-red);
  margin-bottom: 18px;
}
.aud-hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--aud-red);
  box-shadow: 0 0 0 0 rgba(204, 44, 44, .55);
  animation: audDot 2.1s ease-out infinite;
}
@keyframes audDot {
  0%   { box-shadow: 0 0 0 0 rgba(204, 44, 44, .5); }
  70%  { box-shadow: 0 0 0 11px rgba(204, 44, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(204, 44, 44, 0); }
}

.aud-hero__title {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  max-width: 15ch;
}
@media (min-width: 760px) { .aud-hero__title { max-width: 19ch; } }

.aud-hero__lead {
  font-size: clamp(15.5px, 1.35vw, 19px);
  color: var(--aud-muted);
  max-width: 74ch;
  margin: 0 0 40px;
  line-height: 1.62;
}

/* ============================ ПОЛЕ ВВОДА ================================ */

.aud-input-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--aud-line);
  border-radius: 26px;
  padding: clamp(24px, 3.2vw, 40px);
  box-shadow: var(--aud-shadow-lg);
  max-width: 760px;
  margin: 0 auto;
}

.aud-input-card__label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--aud-muted);
  margin-bottom: 14px;
  text-align: center;
}

.aud-input {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fffafb 100%);
  border: 2px solid rgba(204, 44, 44, .35);
  transition: border-color .22s ease, box-shadow .22s ease, transform .12s ease;
  box-shadow: 0 0 0 5px rgba(204, 44, 44, .07), 0 10px 26px rgba(204, 44, 44, .1);
  animation: audFieldBreath 3.2s ease-in-out infinite;
}
@keyframes audFieldBreath {
  0%, 100% { box-shadow: 0 0 0 5px rgba(204, 44, 44, .06), 0 10px 26px rgba(204, 44, 44, .09); }
  50%      { box-shadow: 0 0 0 9px rgba(204, 44, 44, .12), 0 14px 34px rgba(204, 44, 44, .15); }
}
.aud-input:focus-within {
  border-color: var(--aud-red);
  animation: none;
  box-shadow: 0 0 0 6px rgba(204, 44, 44, .13), 0 16px 38px rgba(204, 44, 44, .18);
}
.aud-input.is-valid {
  border-color: var(--aud-green);
  animation: none;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, .14), 0 14px 34px rgba(22, 163, 74, .16);
}
.aud-input.is-invalid {
  border-color: var(--aud-red);
  animation: audShake .42s ease;
  box-shadow: 0 0 0 6px rgba(204, 44, 44, .16), 0 14px 34px rgba(204, 44, 44, .18);
}
@keyframes audShake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-7px); }
  46% { transform: translateX(6px); }
  72% { transform: translateX(-3px); }
}

.aud-input__prefix {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 22px; height: 22px;
  margin-top: -11px;
  background: var(--aud-red);
  opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 21s-7-5.6-7-11a7 7 0 1 1 14 0c0 5.4-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 21s-7-5.6-7-11a7 7 0 1 1 14 0c0 5.4-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.aud-input__field {
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 22px 60px 22px 58px;
  font-family: inherit;
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--aud-ink);
  font-variant-numeric: tabular-nums;
}
.aud-input__field::placeholder {
  color: #c9cdd4;
  font-weight: 600;
}

/* Бегущий курсор — привлекает внимание к полю */
.aud-input__pulse {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 3px;
  height: 30px;
  margin-top: -15px;
  border-radius: 2px;
  background: var(--aud-red);
  opacity: 0;
}
.aud-input:not(.is-valid) .aud-input__pulse {
  opacity: .75;
  animation: audCaret 1.25s steps(1) infinite;
}
.aud-input.is-valid .aud-input__pulse { opacity: 0; }
@keyframes audCaret {
  0%, 49%   { opacity: .8; }
  50%, 100% { opacity: 0; }
}

.aud-input-card__hint {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--aud-muted);
  text-align: center;
}
.aud-sample {
  border: 0;
  background: rgba(204, 44, 44, .08);
  color: var(--aud-red);
  font: inherit;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .16s ease;
  margin-left: 4px;
}
.aud-sample:hover { background: rgba(204, 44, 44, .16); }

.aud-actions { margin-top: 24px; display: flex; justify-content: center; }

.aud-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #fff;
  background: linear-gradient(180deg, var(--aud-red) 0%, var(--aud-red-deep) 100%);
  padding: 17px 40px;
  border-radius: 14px;
  overflow: hidden;
  opacity: .38;
  transform: translateY(2px);
  transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease;
  box-shadow: 0 6px 18px rgba(204, 44, 44, .22);
}
.aud-btn:not(:disabled) {
  opacity: 1;
  transform: none;
  animation: audBtnIn .34s cubic-bezier(.2, .9, .3, 1.2);
  box-shadow: 0 8px 24px rgba(204, 44, 44, .32);
}
.aud-btn:not(:disabled):hover {
  background: linear-gradient(180deg, #d93535 0%, var(--aud-red-darker) 100%);
  box-shadow: 0 12px 30px rgba(204, 44, 44, .4);
  transform: translateY(-2px);
}
.aud-btn:not(:disabled):active { transform: translateY(0); }
@keyframes audBtnIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.aud-btn__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.34) 50%, transparent 80%);
  transform: translateX(-120%);
}
.aud-btn:not(:disabled) .aud-btn__glow { animation: audShine 3.4s ease-in-out infinite; }
@keyframes audShine {
  0%        { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}
.aud-btn.is-loading { pointer-events: none; }
.aud-btn.is-loading .aud-btn__label { opacity: .55; }

.aud-input-card__error {
  margin-top: 18px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--aud-red-bg);
  border: 1px solid rgba(204, 44, 44, .3);
  color: var(--aud-red-darker);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
}

.aud-hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 5vw, 64px);
  margin-top: 44px;
}
.aud-fact { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.aud-fact__num {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--aud-ink);
}
.aud-fact__txt {
  font-size: 12.5px;
  color: var(--aud-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ============================ ДАШБОРД ================================== */

.aud-dash {
  padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
  background: var(--aud-bg-soft);
  animation: audFade .5s ease;
}
@keyframes audFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --- Итоговый вердикт --- */
.aud-verdict {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--aud-line);
  border-left: 6px solid var(--aud-line);
  border-radius: var(--aud-radius);
  padding: 24px 28px;
  box-shadow: var(--aud-shadow);
  margin-bottom: 26px;
}
.aud-verdict[data-state="green"] { border-left-color: var(--aud-green); background: linear-gradient(90deg, var(--aud-green-bg) 0%, #fff 42%); }
.aud-verdict[data-state="yellow"] { border-left-color: var(--aud-yellow); background: linear-gradient(90deg, var(--aud-yellow-bg) 0%, #fff 42%); }
.aud-verdict[data-state="red"]    { border-left-color: var(--aud-red);    background: linear-gradient(90deg, var(--aud-red-bg) 0%, #fff 42%); }
.aud-verdict[data-state="loading"] { border-left-color: var(--aud-muted); }

.aud-verdict__badge {
  width: 54px; height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--aud-line);
  font-size: 27px;
  line-height: 1;
}
.aud-verdict[data-state="green"] .aud-verdict__badge { background: var(--aud-green); color: #fff; }
.aud-verdict[data-state="yellow"] .aud-verdict__badge { background: var(--aud-yellow); color: #fff; }
.aud-verdict[data-state="red"]    .aud-verdict__badge { background: var(--aud-red); color: #fff; }
.aud-verdict[data-state="loading"] .aud-verdict__badge {
  background: none; border: 4px solid var(--aud-line); border-top-color: var(--aud-muted);
  animation: audSpin .8s linear infinite;
}
@keyframes audSpin { to { transform: rotate(360deg); } }

.aud-verdict__body { flex: 1 1 280px; min-width: 0; }
.aud-verdict__title {
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 3px;
}
.aud-verdict__text { color: var(--aud-muted); font-size: 15px; }

.aud-verdict__counters { display: flex; gap: 10px; flex-wrap: wrap; }
.aud-counter {
  display: flex; flex-direction: column; align-items: center;
  min-width: 68px;
  padding: 9px 13px;
  border-radius: 12px;
  background: var(--aud-bg-soft);
  border: 1px solid var(--aud-line);
}
.aud-counter b { font-size: 21px; font-weight: 800; line-height: 1.1; }
.aud-counter span {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--aud-muted);
}
.aud-counter--red    b { color: var(--aud-red); }
.aud-counter--yellow b { color: var(--aud-yellow); }
.aud-counter--green  b { color: var(--aud-green); }

/* --- Верхний блок: карточка участка + чек-лист --- */
.aud-top {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}
@media (max-width: 940px) { .aud-top { grid-template-columns: 1fr; } }

.aud-card {
  background: #fff;
  border: 1px solid var(--aud-line);
  border-radius: var(--aud-radius);
  box-shadow: var(--aud-shadow);
  overflow: hidden;
}
.aud-card__head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--aud-line);
  background: linear-gradient(180deg, #fff 0%, var(--aud-bg-soft) 100%);
}
.aud-card__label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: var(--aud-muted); margin-bottom: 8px;
}
.aud-card__cad {
  font-size: 21px; font-weight: 800; letter-spacing: .005em;
  word-break: break-word; line-height: 1.25;
}
.aud-card__body { padding: 8px 22px 20px; }

.aud-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--aud-line);
  font-size: 14.5px;
}
.aud-row:last-child { border-bottom: 0; }
.aud-row__k { color: var(--aud-muted); flex: 0 0 auto; }
.aud-row__v { font-weight: 700; text-align: right; word-break: break-word; }

/* --- Чек-лист индикаторов --- */
.aud-checks { display: flex; flex-direction: column; gap: 12px; }

.aud-check {
  background: #fff;
  border: 1px solid var(--aud-line);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(24, 24, 27, .04);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.aud-check:hover { box-shadow: var(--aud-shadow); }
.aud-check[data-status="green"]  { border-left: 5px solid var(--aud-green); }
.aud-check[data-status="yellow"] { border-left: 5px solid var(--aud-yellow); }
.aud-check[data-status="red"]    { border-left: 5px solid var(--aud-red); }

.aud-check__summary {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--aud-ink);
}
.aud-check__summary::-webkit-details-marker { display: none; }

.aud-check__dot {
  width: 26px; height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.aud-check[data-status="green"]  .aud-check__dot { background: var(--aud-green); }
.aud-check[data-status="yellow"] .aud-check__dot { background: var(--aud-yellow); }
.aud-check[data-status="red"]    .aud-check__dot { background: var(--aud-red); }

.aud-check__label { flex: 1 1 auto; font-weight: 700; min-width: 0; }
.aud-check__value {
  font-size: 13.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.aud-check[data-status="green"]  .aud-check__value { background: var(--aud-green-bg); color: #15803d; }
.aud-check[data-status="yellow"] .aud-check__value { background: var(--aud-yellow-bg); color: #a16207; }
.aud-check[data-status="red"]    .aud-check__value { background: var(--aud-red-bg); color: var(--aud-red-darker); }

.aud-check__chev {
  flex: 0 0 14px;
  color: var(--aud-muted);
  transition: transform .22s ease;
  font-size: 12px;
}
.aud-check[open] .aud-check__chev { transform: rotate(180deg); }

/* --- Раскрытое пояснение --- */
.aud-check__detail {
  padding: 0 20px 18px 60px;
  font-size: 14.5px;
  color: var(--aud-ink-2);
  animation: audFade .28s ease;
}
.aud-check__detail p { margin: 0 0 12px; }
.aud-check__action {
  margin: 0;
  padding: 12px 15px;
  border-radius: 11px;
  background: var(--aud-bg-warm);
  border-left: 3px solid var(--aud-red);
  font-weight: 600;
  color: var(--aud-ink-2);
}
@media (max-width: 620px) { .aud-check__detail { padding-left: 20px; } }

/* --- Блоки карты, объектов, зон --- */
.aud-map-block, .aud-objects-block, .aud-zones-block, .aud-roadmap { margin-bottom: 34px; }

.aud-block-head { margin-bottom: 16px; }
.aud-block-head--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.aud-block-title {
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 0 0 6px;
}
.aud-block-sub { color: var(--aud-muted); font-size: 15px; margin: 0; max-width: 80ch; }
.aud-roadmap__eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--aud-red); margin-bottom: 8px;
}

.aud-map-wrap {
  position: relative;
  border-radius: var(--aud-radius);
  overflow: hidden;
  border: 1px solid var(--aud-line);
  box-shadow: var(--aud-shadow);
  background: #e8eaed;
}
.aud-map { height: clamp(360px, 52vh, 560px); width: 100%; background: #e8eaed; }

.aud-map-legend {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 500;
  display: flex; flex-wrap: wrap; gap: 8px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(6px);
  border: 1px solid var(--aud-line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--aud-ink-2);
  max-width: calc(100% - 24px);
}
.aud-lg { display: inline-flex; align-items: center; gap: 6px; }
.aud-lg::before { content: ""; width: 12px; height: 12px; border-radius: 3px; flex: 0 0 12px; }
.aud-lg--land::before  { background: rgba(204, 44, 44, .18); border: 2px solid var(--aud-red); }
.aud-lg--build::before { background: #2563eb; }
.aud-lg--struct::before{ background: #7c3aed; }
.aud-lg--zone::before  { background: rgba(202, 138, 4, .35); border: 2px dashed var(--aud-yellow); }

/* Переключатель подложек карты (ортофото / ДЗЗ / схема НСПД) */
.aud-bases {
  position: absolute;
  right: 12px; top: 12px;
  z-index: 500;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--aud-line);
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(24, 24, 27, .1);
}
.aud-base {
  border: 0;
  background: transparent;
  color: var(--aud-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.aud-base:hover { color: var(--aud-red); background: var(--aud-bg-warm); }
.aud-base.is-active {
  background: var(--aud-red);
  color: #fff;
}

.aud-map-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--aud-muted);
}

/* --- Таблица объектов --- */
.aud-table-wrap {
  border: 1px solid var(--aud-line);
  border-radius: var(--aud-radius);
  overflow: auto;
  background: #fff;
  box-shadow: var(--aud-shadow);
}
.aud-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.aud-table thead th {
  text-align: left;
  padding: 13px 16px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--aud-muted);
  background: var(--aud-bg-soft);
  border-bottom: 1px solid var(--aud-line);
  white-space: nowrap;
}
.aud-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--aud-line);
  vertical-align: top;
}
.aud-table tbody tr:last-child td { border-bottom: 0; }
.aud-table tbody tr:hover { background: var(--aud-bg-soft); }
.aud-cell-cad { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aud-cell-name { color: var(--aud-ink-2); }
.aud-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 7px; white-space: nowrap;
}
.aud-pill--ok   { background: var(--aud-green-bg); color: #15803d; }
.aud-pill--bad  { background: var(--aud-red-bg); color: var(--aud-red-darker); }

/* --- Карточки зон --- */
.aud-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.aud-zone {
  background: #fff;
  border: 1px solid var(--aud-line);
  border-left: 5px solid var(--aud-yellow);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(24, 24, 27, .04);
}
.aud-zone__type {
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--aud-yellow); margin-bottom: 6px;
}
.aud-zone__name { font-size: 15.5px; font-weight: 700; margin: 0 0 8px; }
.aud-zone__law { font-size: 13.5px; color: var(--aud-muted); margin: 0; }

/* --- Дорожная карта --- */
.aud-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: audstep; }
.aud-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--aud-line);
  border-radius: 14px;
  padding: 22px 20px 20px;
  box-shadow: 0 1px 3px rgba(24, 24, 27, .04);
}
.aud-step::before {
  counter-increment: audstep;
  content: counter(audstep, decimal-leading-zero);
  position: absolute;
  top: -12px; left: 20px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--aud-red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(204, 44, 44, .3);
}
.aud-step__title { font-size: 16px; font-weight: 800; margin: 8px 0 7px; }
.aud-step__text { font-size: 14px; color: var(--aud-muted); margin: 0; }

/* --- CTA --- */
.aud-cta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--aud-red-darker) 0%, var(--aud-red-deep) 55%, var(--aud-red) 100%);
  border-radius: 22px;
  padding: clamp(26px, 3.4vw, 40px);
  color: #fff;
  box-shadow: 0 18px 46px rgba(165, 29, 29, .3);
  margin-bottom: 26px;
}
.aud-cta__text { flex: 1 1 340px; }
.aud-cta__text h3 { margin: 0 0 8px; font-size: clamp(20px, 2.3vw, 27px); font-weight: 800; letter-spacing: -.015em; }
.aud-cta__text p { margin: 0; opacity: .92; font-size: 15px; line-height: 1.6; max-width: 62ch; }
.aud-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--aud-red-darker);
  font-weight: 800;
  font-size: 15.5px;
  padding: 16px 32px;
  border-radius: 13px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.aud-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .24); }

.aud-again {
  display: block;
  margin: 0 auto;
  border: 1px solid var(--aud-line);
  background: #fff;
  color: var(--aud-ink-2);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.aud-again:hover { border-color: var(--aud-red); color: var(--aud-red); }

/* --- Скроллбар внутри карты --- */
.aud-map ::-webkit-scrollbar { width: 9px; height: 9px; }
.aud-map ::-webkit-scrollbar-thumb { background: #c3c7cf; border-radius: 5px; }

@media (max-width: 640px) {
  .aud-container { padding: 0 18px; }
  .aud-input__field { padding: 19px 46px 19px 52px; }
  .aud-btn { width: 100%; justify-content: center; padding: 17px 22px; }
  .aud-verdict { padding: 20px; gap: 16px; }
  .aud-cta__btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .aud *, .aud *::before, .aud *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Карточка самого объекта в режиме проверки здания/сооружения */
.aud-object-card {
  background: linear-gradient(135deg, #18181b 0%, #2a2a30 100%);
  color: #fff;
  border-radius: var(--aud-radius);
  box-shadow: var(--aud-shadow-lg);
  padding: 22px 24px 18px;
  margin-bottom: 18px;
}
.aud-object-card__label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px;
}
.aud-object-card__cad {
  font-size: 21px; font-weight: 800; line-height: 1.25; word-break: break-word;
}
.aud-object-card__name { font-size: 16px; font-weight: 700; margin-top: 6px; }
.aud-object-card__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.aud-object-card__cell { display: flex; flex-direction: column; gap: 3px; }
.aud-object-card__k {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  font-weight: 800; color: rgba(255,255,255,.5);
}
.aud-object-card__v { font-size: 15px; font-weight: 700; word-break: break-word; }
.aud-object-card__v.is-bad { color: #ff9d9d; }
.aud-object-card__v.is-good { color: #86efac; }
.aud-top.has-object { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
@media (max-width: 940px) { .aud-top.has-object { grid-template-columns: 1fr; } }
