/* ИЖС-чек — izhs-check.ru. Один файл стилей, без внешних шрифтов и ресурсов. */

:root {
  --bg: #fbfcfa;
  --surface: #ffffff;
  --surface-alt: #f1f5f0;
  --text: #17211b;
  --muted: #55625a;
  --line: #dde5dd;
  --accent: #2f7d4f;
  --accent-strong: #24633e;
  --accent-soft: #e4f0e7;
  --green: #2f9e5b;
  --yellow: #e0a300;
  --red: #d2453f;
  --gray: #9aa39d;
  --footer-bg: #1c2a21;
  --footer-text: #d6e2d9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 33, 27, 0.05), 0 10px 28px rgba(23, 33, 27, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    "Liberation Sans", sans-serif;
  --header-h: 64px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 1.45rem + 2.6vw, 3.1rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

img {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 600px) {
  .wrap {
    padding: 0 24px;
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skip:focus {
  top: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}

/* --- шапка --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex: none;
}

.site-nav {
  display: none;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    margin: 0 auto;
  }

  .brand {
    margin-right: 0;
  }
}

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

.hero {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 88px;
  }

  .hero-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
  }
}

.kicker {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75em;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.verdict-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.verdict-card figcaption {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.verdict-card ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.verdict-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.verdict-card li:last-child {
  border-bottom: 0;
}

.verdict-note {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.92rem;
}

.verdict-note .dot {
  margin-top: 0.4em;
}

.dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.dot-green {
  background: var(--green);
}

.dot-yellow {
  background: var(--yellow);
}

.dot-red {
  background: var(--red);
}

.dot-gray {
  background: var(--gray);
}

/* --- секции --- */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface-alt);
}

@media (min-width: 900px) {
  .section {
    padding: 80px 0;
  }
}

.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 44em;
}

.center {
  text-align: center;
  margin: 32px 0 0;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .steps-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .steps-compact {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps > li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 6px;
}

.steps > li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 14px;
}

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

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
}

.card,
.extra {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 6px;
}

.card p,
.extra p {
  color: var(--muted);
}

.extras {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 760px) {
  .extras {
    grid-template-columns: 1fr 1fr;
  }
}

.extra {
  border-left: 4px solid var(--accent);
}

.note {
  margin: 28px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gray);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ticks {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.32em;
  width: 7px;
  height: 13px;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.split {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.7fr 1fr;
    gap: 56px;
  }
}

.price-tag {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.price-tag p {
  color: var(--muted);
}

.price-tag .price-tag-value {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}

/* --- тарифы --- */

.tariffs {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

@media (min-width: 900px) {
  .tariffs {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}

.tariff {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

@media (min-width: 600px) {
  .tariff {
    padding: 22px;
  }
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 600px) {
  th,
  td {
    padding: 10px 12px;
  }
}

/* элементы сетки не должны раздвигать страницу шире экрана */
.hero-grid > *,
.split > *,
.tariffs > *,
.info-grid > *,
.footer-grid > * {
  min-width: 0;
}

th {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tariff th:not(:first-child) {
  text-align: right;
}

.tariff tbody tr:last-child td {
  border-bottom: 0;
}

.tariff-notes {
  margin-top: 28px;
  max-width: 52em;
}

/* --- оплата --- */

.pay-logos {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
}

.pay-logos a {
  display: inline-flex;
}

.pay-logos img {
  height: 40px;
  width: auto;
}

/* У sbp.png прозрачные поля: знак занимает 314 из 488 px высоты. 62 px картинки = около 40 px знака,
   не меньше логотипа банка (брендбук СБП: от 40 px по высоте). */
.pay-logos img.logo-sbp {
  height: 62px;
}

.nowrap {
  white-space: nowrap;
}

.info-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* --- реквизиты --- */

.requisites {
  margin: 24px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.requisites > div {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.requisites > div:last-child {
  border-bottom: 0;
}

.requisites dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.requisites dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 700px) {
  .requisites > div {
    grid-template-columns: 220px 1fr;
    gap: 16px;
  }

  .requisites dt {
    font-size: inherit;
  }
}

.docs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
}

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

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 32px;
  font-size: 0.93rem;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: var(--accent-soft);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 40px;
  }
}

.footer-brand {
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- страницы документов --- */

.doc-layout {
  display: grid;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 64px;
}

.doc-aside {
  display: none;
}

@media (min-width: 1000px) {
  .doc-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 56px;
    padding-top: 48px;
  }

  .doc-aside {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    font-size: 0.9rem;
  }

  .doc-toc-mobile {
    display: none;
  }
}

.doc-toc-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-aside ol,
.doc-toc-mobile ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-aside ol ol,
.doc-toc-mobile ol ol {
  padding-left: 14px;
}

.doc-aside li,
.doc-toc-mobile li {
  margin: 0;
}

.doc-aside a,
.doc-toc-mobile a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}

.doc-aside a:hover,
.doc-toc-mobile a:hover {
  color: var(--accent);
}

.doc-also {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.doc-toc-mobile {
  margin: 0 0 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
}

.doc-toc-mobile summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  min-height: 44px;
}

.doc-toc-mobile nav {
  padding-bottom: 12px;
}

.doc {
  max-width: 46rem;
  min-width: 0;
}

.doc h1 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  margin-bottom: 0.6em;
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
}

.doc h3 {
  margin-top: 1.6em;
}

.doc ul,
.doc ol {
  padding-left: 1.4em;
}

.doc li {
  margin-bottom: 0.35em;
}

.doc a {
  overflow-wrap: anywhere;
}

.doc hr {
  border: 0;
  border-top: 2px solid var(--line);
  margin: 3em 0 0;
}

.doc .table-wrap {
  margin: 1em 0 1.4em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.doc table {
  font-size: 0.92rem;
}

.doc th {
  background: var(--surface-alt);
  color: var(--text);
}

.doc td,
.doc th {
  hyphens: auto;
}

.doc tbody tr:last-child td {
  border-bottom: 0;
}
