:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7f;
  --primary: #1d6fd8;
  --primary-dark: #1558ad;
  --accent: #0ea57a;
  --dark: #0f1724;
  --border: #dbe3ef;
  --shadow: 0 18px 50px rgba(15, 23, 36, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-heading: var(--font);
  --hero-bg: radial-gradient(circle at top right, rgba(29, 111, 216, 0.12), transparent 34%), linear-gradient(180deg, #eef4fd 0%, var(--bg) 100%);
  --header-bg: rgba(255, 255, 255, 0.92);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-page h2 { margin: 1.5rem 0 0.75rem; font-size: 1.125rem; }
.legal-page p, .legal-page li { color: var(--muted, #64748b); line-height: 1.65; }
.legal-page ul { padding-left: 1.25rem; margin: 0.5rem 0 1rem; }

.container--narrow {
  width: min(760px, calc(100% - 32px));
}

.error-page__inner {
  text-align: center;
  padding: 48px 0 64px;
}

.error-page__code {
  margin: 0 0 8px;
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--primary) 18%, transparent);
}

.error-page__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.error-page__text {
  margin: 0 auto 28px;
  max-width: 34rem;
  color: var(--muted);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.logo__mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, white));
  color: #fff;
  font-size: 0.85rem;
}

.nav {
  display: none;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 25%, transparent);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--outline {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.92rem;
}

.trust-bar {
  padding: 24px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.trust-item-inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.trust-item-inline strong {
  font-size: 1.15rem;
  color: var(--primary);
}

.trust-item-inline span {
  font-size: 0.88rem;
  color: var(--muted);
}

.advantages,
.report-grid,
.object-types,
.conditions {
  display: grid;
  gap: 20px;
}

.advantage,
.report-block,
.object-type,
.condition {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.advantage h3,
.report-block h3,
.object-type h3,
.condition h3 {
  margin: 0 0 10px;
}

.advantage p,
.object-type p,
.condition p {
  margin: 0;
  color: var(--muted);
}

.check-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.note {
  margin: 28px auto 0;
  max-width: 58ch;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__support {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  padding: 56px 0 72px;
  background: var(--hero-bg);
}

.hero__grid {
  display: grid;
  gap: 32px;
}

.badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 28px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.search-form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.search-form input,
.input {
  width: 100%;
  padding: 18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  box-shadow: var(--shadow);
}

.search-form input:focus,
.input:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-color: var(--primary);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__features li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.hero__card {
  display: grid;
  gap: 16px;
}

.stat-card,
.risk-preview,
.step,
.price-card,
.risk-item,
.faq details,
.disclaimer p,
.object-card,
.order-box,
.success-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card,
.risk-preview {
  padding: 24px;
}

.stat-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-card__value {
  font-size: 2rem;
  line-height: 1.1;
}

.risk-preview h3 {
  margin: 0 0 12px;
}

.risk-preview ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section--muted {
  background: color-mix(in srgb, var(--bg) 80%, var(--border));
}

.section--dark {
  background: var(--dark);
  color: #fff;
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-align: center;
}

.section__title--light {
  color: #fff;
}

.section__subtitle {
  margin: 0 auto 40px;
  max-width: 58ch;
  text-align: center;
  color: var(--muted);
}

.section__subtitle--light {
  color: rgba(255, 255, 255, 0.72);
}

.steps,
.pricing,
.risk-grid {
  display: grid;
  gap: 20px;
}

.step,
.price-card,
.risk-item {
  padding: 28px;
}

.step__num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 800;
}

.step h3,
.price-card h3,
.risk-item h3 {
  margin: 0 0 10px;
}

.step p,
.price-card p,
.risk-item p,
.hint {
  margin: 0;
  color: var(--muted);
}

.price-card {
  position: relative;
}

.price-card--featured {
  border-color: var(--primary);
}

.price-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.price-card__price {
  margin: 18px 0;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.price-card ul {
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--muted);
}

.price-card .btn {
  width: 100%;
}

.risk-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.risk-item__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.risk-item p {
  color: rgba(255, 255, 255, 0.72);
}

.faq details {
  margin-bottom: 12px;
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

.disclaimer {
  padding: 28px 0 48px;
}

.disclaimer p {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  color: var(--muted);
}

.footer {
  padding: 32px 0 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  gap: 16px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal {
  width: min(640px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(15, 23, 36, 0.25);
}

.modal::backdrop {
  background: rgba(15, 23, 36, 0.55);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.modal__header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal__close {
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal__body {
  padding: 22px;
}

.object-card,
.order-box,
.success-box {
  padding: 18px;
  margin-bottom: 14px;
}

.object-card h3,
.order-box h3,
.success-box h3 {
  margin: 0 0 8px;
}

.object-card p,
.order-box p,
.success-box p {
  margin: 0 0 8px;
  color: var(--muted);
}

.object-card button,
.order-box button {
  margin-top: 10px;
}

.input {
  margin: 10px 0 16px;
}

.hint {
  margin-top: 12px !important;
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.tag--warn {
  background: #fff3e8;
  color: #c45d00;
}

.tag--ok {
  background: #e8f8f1;
  color: var(--accent);
}

.status-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-form {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.status-form label {
  font-weight: 700;
}

.status-result .status {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-weight: 700;
}

.status-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  margin: 0 0 16px;
}

.status-list dt {
  color: var(--muted);
}

.status-list dd {
  margin: 0;
}

@media (min-width: 760px) {
  .status-form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 760px) {
  .nav {
    display: flex;
  }

  .search-form {
    grid-template-columns: 1fr auto;
  }

  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .hero__grid:not(.hero__grid--split) {
    grid-template-columns: 1fr;
  }

  .trust-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps,
  .steps--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .object-types {
    grid-template-columns: repeat(2, 1fr);
  }

  .conditions {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .steps--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .object-types {
    grid-template-columns: repeat(4, 1fr);
  }

  .risk-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
