body {
  background: linear-gradient(180deg, #fff 0, #fbfaf6 42%, #f6f7f3 100%);
}

.topbar {
  height: 66px;
  grid-template-columns: 260px minmax(0, 1fr) 180px;
  padding: 0 54px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(16, 36, 31, 0.08);
}

.brand {
  grid-template-columns: 28px auto 1fr;
  column-gap: 10px;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.brand small {
  grid-column: 3;
  max-width: 108px;
  font-size: 13px;
  color: #5e6d67;
}

.shield {
  width: 28px;
  height: 34px;
  border-radius: 15px 15px 9px 9px;
  background: linear-gradient(160deg, #006348, #004332);
  box-shadow: 0 8px 20px rgba(0, 83, 61, 0.18);
}

.topbar nav {
  gap: 30px;
}

.topbar nav a {
  font-size: 14px;
  font-weight: 900;
  color: #0d1714;
}

.topbar nav a.active {
  border-color: #006348;
}

.nav-cta,
.primary-button {
  background: linear-gradient(135deg, #006348 0, #003d2f 100%);
  border-color: #004b39;
  box-shadow: 0 18px 30px rgba(0, 83, 61, 0.18);
}

.nav-cta {
  width: 170px;
  min-height: 42px;
  font-size: 14px;
}

.secondary-button,
.wide-button,
.link-button {
  border-color: #0a5744;
  color: #004b39;
  background: #fff;
}

.hero,
.product-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  gap: 56px;
  padding: 50px 56px 36px;
  background: radial-gradient(circle at 76% 34%, rgba(227, 238, 230, 0.58) 0, rgba(255, 255, 255, 0.82) 36%, transparent 62%), #fff;
}

.home-hero {
  min-height: 420px;
}

.hero-copy h1 {
  max-width: 730px;
  font-size: clamp(44px, 4.25vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.product-hero h1 {
  max-width: 700px;
  font-size: clamp(48px, 4.7vw, 64px);
  line-height: 1.07;
}

.lead {
  margin-top: 24px;
  color: #10231f;
  font-size: 21px;
}

.hero-actions {
  gap: 26px;
  margin-top: 34px;
}

.primary-button,
.secondary-button,
.wide-button {
  min-height: 50px;
  padding: 0 34px;
  border-radius: 7px;
  font-size: 16px;
}

.trust-row {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  max-width: 760px;
  gap: 36px;
  margin-top: 52px;
}

.trust-row span {
  font-size: 15px;
}

.trust-row span::before {
  top: -2px;
  width: 22px;
  height: 22px;
}

.doc-figure {
  align-self: center;
  justify-content: center;
}

.doc-figure img {
  width: min(410px, 100%);
  max-height: 560px;
  border: 1px solid #e2e7e2;
  box-shadow: 0 36px 80px rgba(15, 45, 40, 0.16);
  transform: rotate(-1.8deg);
}

.product-hero .doc-figure img {
  width: min(410px, 100%);
  max-height: 560px;
}

.products-row {
  gap: 8px;
  padding: 0 34px 36px;
}

.product-card {
  min-height: 285px;
  padding: 32px 34px;
  border-color: #dfe6df;
  border-radius: 9px;
  box-shadow: 0 14px 36px rgba(15, 45, 40, 0.07);
}

.product-card:hover {
  box-shadow: 0 18px 48px rgba(15, 45, 40, 0.11);
  transform: translateY(-1px);
}

.product-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: #eaf4ec;
  color: #006348;
  font-size: 24px;
}

.product-head h3 {
  font-size: 23px;
  line-height: 1.2;
}

.product-head strong {
  font-size: 29px;
}

.product-card p {
  color: #43534d;
  font-size: 17px;
  line-height: 1.5;
}

.product-card ul {
  gap: 12px;
  margin: 24px 0 26px;
}

.product-card li {
  font-size: 15px;
}

.process-band {
  margin: 4px 34px 38px;
  padding: 34px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f8fbf8, #eff7f0);
  box-shadow: inset 0 0 0 1px #dfe7df;
}

.process-band h2,
.section h2 {
  font-size: 27px;
}

.step-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  font-size: 11px;
}

.process-step b {
  font-size: 18px;
}

.process-step p {
  font-size: 15px;
  line-height: 1.45;
}

.section {
  padding: 34px 58px;
}

.details-card,
.sample-card {
  border-color: #dfe6df;
  border-radius: 9px;
  box-shadow: 0 14px 36px rgba(15, 45, 40, 0.06);
}

.reliability-grid {
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 34px;
}

.details-card {
  padding: 32px;
}

.sample-grid {
  gap: 38px;
}

.sample-card {
  padding: 22px;
}

.sample-card img {
  height: 250px;
}

.footer {
  padding: 38px 58px;
  background: #fff;
}

.price-box {
  margin-top: 42px;
  background: #fff;
}

.urgency {
  margin: 0 54px 32px;
  padding: 26px 32px;
  border-color: #dce5dd;
  background: #f7faf7;
}

.scenario-grid article {
  border-color: #dfe6df;
  box-shadow: 0 10px 26px rgba(15, 45, 40, 0.045);
}

.package-panel,
.legal-panel,
.form-workspace {
  margin-right: 54px;
  margin-left: 54px;
}

.form-head {
  background: linear-gradient(135deg, #006348, #003d2f);
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px 18px 10px;
  }

  .brand {
    grid-template-columns: 28px minmax(0, 1fr);
    font-size: 27px;
  }

  .brand small {
    grid-column: 2;
    max-width: none;
    font-size: 12px;
  }

  .topbar nav {
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding: 0 0 8px;
    border-top: 1px solid #e6ece7;
    scrollbar-width: none;
  }

  .topbar nav::-webkit-scrollbar {
    display: none;
  }

  .topbar nav a {
    padding: 8px 0 0;
    font-size: 13px;
    border-bottom-width: 2px;
  }

  .nav-cta {
    display: none;
  }

  .hero,
  .product-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 34px 18px 28px;
  }

  .hero-copy h1,
  .product-hero h1 {
    font-size: 37px;
    line-height: 1.08;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .doc-figure img,
  .product-hero .doc-figure img {
    width: min(310px, 100%);
    max-height: 420px;
    transform: none;
  }

  .products-row {
    gap: 14px;
    padding: 18px;
  }

  .product-card {
    min-height: auto;
    padding: 24px;
  }

  .process-band {
    margin: 18px;
    padding: 24px;
  }

  .section {
    padding: 30px 18px;
  }

  .package-panel,
  .legal-panel,
  .form-workspace,
  .urgency {
    margin-right: 18px;
    margin-left: 18px;
  }

  .sample-card img {
    height: 210px;
  }
}

/* Court-order conversion funnel */
.court-order-page {
  font-family: "Manrope", sans-serif;
  padding-bottom: 0;
}

.court-order-page .product-hero h1,
.court-order-page .urgency h2,
.court-order-page .section h2 {
  font-family: "Lora", Georgia, serif;
}

.court-order-page .court-hero .lead {
  max-width: 62ch;
}

.court-order-page .court-hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.court-order-page .court-hero-actions a {
  min-width: 220px;
}

.court-order-page .price-box {
  margin-top: 28px;
}

.court-order-page .price-box strong {
  font-family: "Lora", Georgia, serif;
  font-size: 24px;
}

.court-order-page #anketa {
  scroll-margin-top: 84px;
}

.court-order-page .form-promise {
  max-width: 52ch;
  margin: 0 0 24px;
  color: #40504a;
}

.court-order-page .progressive-form {
  display: block;
}

.court-order-page .form-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.court-order-page .form-step[hidden] {
  display: none;
}

.court-order-page .form-step legend {
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  color: #0f2d28;
  font-family: "Lora", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.court-order-page .form-step .wide,
.court-order-page .form-step > button,
.court-order-page .privacy-note,
.court-order-page .form-step-actions {
  grid-column: 1 / -1;
}

.court-order-page input,
.court-order-page textarea,
.court-order-page select {
  min-height: 48px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #bdc9c2;
  border-radius: 6px;
  background: #fdfdfb;
  color: #172420;
  font: inherit;
}

.court-order-page input:focus-visible,
.court-order-page textarea:focus-visible,
.court-order-page select:focus-visible,
.court-order-page a:focus-visible,
.court-order-page button:focus-visible {
  outline: 3px solid rgba(0, 99, 72, 0.35);
  outline-offset: 2px;
}

.court-order-page .form-step label small {
  color: #68746f;
  font: inherit;
  font-weight: 500;
}

.court-order-page .privacy-note {
  margin: 0;
  color: #56665f;
  font-size: 13px;
  line-height: 1.55;
}

.court-order-page .form-step-actions {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
}

.court-order-page .form-step-actions button {
  min-height: 50px;
}

.mobile-funnel-cta {
  display: none;
}

@media (max-width: 760px) {
  .court-order-page {
    padding-bottom: 82px;
  }

  .court-order-page .brand small {
    display: none;
  }

  .court-order-page .court-hero-actions,
  .court-order-page .form-step,
  .court-order-page .form-step-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .court-order-page .court-hero-actions {
    display: grid;
  }

  .court-order-page .court-hero-actions a,
  .court-order-page .form-step-actions > * {
    width: 100%;
  }

  .court-order-page .form-step-actions > * {
    grid-column: 1;
  }

  .court-order-page .form-workspace {
    margin-top: 26px;
  }

  .court-order-page .generated-preview {
    display: none;
  }

  .mobile-funnel-cta {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 35;
    display: inline-flex;
    min-height: 52px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition:
      opacity 180ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 14px 34px rgba(0, 65, 48, 0.28);
  }

  .mobile-funnel-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-funnel-cta {
      transition: none;
    }
  }
}
