:root {
  --bg: #f5f7f1;
  --paper: #ffffff;
  --ink: #171d1b;
  --muted: #5f6964;
  --line: #d8ded4;
  --forest: #173f34;
  --forest-2: #225a49;
  --burgundy: #7d2f42;
  --gold: #b58a41;
  --teal: #2f8072;
  --shadow: 0 16px 42px rgba(23, 29, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245, 247, 241, 0.94);
  border-bottom: 1px solid rgba(23, 63, 52, 0.14);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 10px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
}

.brand__text {
  max-width: 170px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.08;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.main-nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(23, 63, 52, 0.22);
  border-radius: 8px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone span:last-child {
  display: none;
}

.menu-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(23, 63, 52, 0.22);
  border-radius: 8px;
  background: var(--paper);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: var(--forest);
}

.mobile-menu {
  display: grid;
  gap: 2px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(23, 63, 52, 0.12);
}

.mobile-menu a {
  min-height: 46px;
  padding: 12px 6px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu__messengers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 8px;
}

.mobile-menu__messengers a {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 62px);
  overflow: hidden;
  background: #142d28;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(13, 26, 23, 0.94), rgba(13, 26, 23, 0.9)),
    url("../img/legal-hero.svg");
  background-position: center;
  background-size: cover;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 62px);
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 32px 16px 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.article h1 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: min(100%, 760px);
  overflow-wrap: break-word;
  font-size: clamp(24px, 7vw, 72px);
  hyphens: auto;
}

.hero__lead {
  max-width: 100%;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  overflow-wrap: break-word;
  font-size: 15px;
}

.hero__actions,
.section-cta,
.article-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--gold);
  color: #1d1710;
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section .button--secondary,
.article .button--secondary {
  border-color: rgba(23, 63, 52, 0.24);
  background: var(--paper);
  color: var(--forest);
}

.article-messengers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.article-messengers a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid rgba(23, 63, 52, 0.2);
  border-radius: 8px;
  background: #eef4eb;
  color: var(--forest);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.hero__messengers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
  margin-top: 14px;
}

.hero__messengers a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero__facts span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 700;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--forest);
}

.quick-strip a {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 12px 8px;
  background: var(--forest);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.section,
.content-page {
  padding: 54px 16px;
}

.section__head,
.content-page__inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.section__head {
  max-width: 820px;
}

.section__head h2,
.article h1 {
  font-size: clamp(28px, 7vw, 48px);
}

.section__head p:not(.eyebrow),
.article p,
.article li {
  color: var(--muted);
}

.service-grid,
.client-grid,
.steps,
.proof-band,
.geo-grid {
  display: grid;
  gap: 12px;
  width: min(100%, 1120px);
  margin: 26px auto 0;
}

.service-card,
.client-card,
.step,
.proof-band > div,
.geo-grid > div,
.urgent-item,
.lead-form,
.article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
}

.service-card span {
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card h3,
.step h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.service-card p,
.step p {
  margin: 0;
  color: var(--muted);
}

.service-card strong {
  margin-top: auto;
  padding-top: 18px;
  color: var(--forest);
}

.section-cta {
  width: min(100%, 1120px);
  margin-right: auto;
  margin-left: auto;
}

.text-link {
  align-self: center;
  color: var(--forest);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section--split {
  background: #e9efe6;
}

.section--premium {
  background: #f0f3ed;
}

.service-grid--compact .service-card {
  min-height: 210px;
}

.service-card--compact h3 {
  margin-top: 0;
}

.section--clients {
  background: #fff;
}

.client-grid {
  gap: 10px;
}

.client-card {
  padding: 20px;
}

.client-card h3 {
  margin: 0 0 8px;
  color: var(--forest);
  font-size: 20px;
  line-height: 1.15;
}

.client-card p {
  margin: 0;
  color: var(--muted);
}

.section__head--left {
  max-width: 560px;
}

.urgent-list {
  display: grid;
  gap: 10px;
  width: min(100%, 560px);
  margin: 24px auto 0;
}

.urgent-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 10px;
  padding: 18px;
}

.urgent-item span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--burgundy);
  color: #fff;
  font-weight: 900;
}

.urgent-item p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.proof-band > div,
.geo-grid > div,
.step {
  padding: 20px;
}

.proof-band strong,
.geo-grid strong {
  display: block;
  color: var(--forest);
  font-size: 18px;
  line-height: 1.2;
}

.proof-band span,
.geo-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.step span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e1eadf;
  color: var(--forest);
  font-weight: 900;
}

.section--geo {
  background: var(--forest);
  color: #fff;
}

.geo-copy,
.lead-copy {
  width: min(100%, 560px);
  margin: 0 auto;
}

.geo-copy p:not(.eyebrow),
.section--geo .geo-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.section--geo .geo-grid > div {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.section--geo .geo-grid strong {
  color: #fff;
}

.lead-section {
  display: grid;
  gap: 24px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 7px;
}

.lead-form label span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid #cbd5cf;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  outline: none;
}

.lead-form textarea {
  min-height: 118px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 128, 114, 0.18);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.lead-form__agree {
  grid-template-columns: 22px 1fr;
  align-items: start;
}

.lead-form__agree input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.lead-form__agree span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.lead-form__submit {
  width: 100%;
  border: 0;
}

.lead-form__status {
  padding: 12px;
  border-radius: 8px;
  background: #e7f1ea;
  color: var(--forest);
  font-weight: 800;
}

.lead-form__status.is-error {
  background: #f5e5e8;
  color: #8f2338;
}

.faq {
  background: #eef2eb;
}

.faq details {
  width: min(100%, 820px);
  margin: 10px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.faq summary {
  min-height: 56px;
  padding: 16px;
  cursor: pointer;
  font-weight: 900;
}

.faq details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.content-page {
  min-height: 62vh;
}

.article {
  padding: 22px;
}

.article h2 {
  margin-top: 30px;
  font-size: 26px;
  line-height: 1.16;
}

.article ul {
  padding-left: 20px;
}

.article-callout,
.article-related {
  margin-top: 28px;
  padding: 18px;
  border-radius: 8px;
  background: #eef3ec;
}

.article-callout h2,
.article-related h2 {
  margin-top: 0;
}

.article-related div {
  display: grid;
  gap: 8px;
}

.article-related a {
  display: grid;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 63, 52, 0.16);
  border-radius: 8px;
  background: var(--paper);
  color: var(--forest);
  font-weight: 900;
  text-decoration: none;
}

.article-faq {
  margin-top: 28px;
}

.article-faq h2 {
  margin-bottom: 12px;
}

.article-faq details {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf5;
}

.article-faq summary {
  min-height: 54px;
  padding: 15px;
  cursor: pointer;
  color: var(--forest);
  font-weight: 900;
}

.article-faq p {
  margin: 0;
  padding: 0 15px 15px;
}

.site-footer {
  padding: 42px 16px 86px;
  background: #121715;
  color: #fff;
}

.site-footer__inner {
  display: grid;
  gap: 28px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.brand--footer .brand__text {
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-phone {
  display: inline-block;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.footer-messengers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.footer-messengers a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  text-decoration: none;
}

.footer-note {
  font-size: 13px;
}

.footer-bridge {
  margin-top: 12px;
}

.footer-bridge a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mobile-sticky {
  position: fixed;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 10px;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(23, 63, 52, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(17, 23, 21, 0.18);
}

.mobile-sticky a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 6px;
  background: var(--forest);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

@media (min-width: 560px) {
  .header-phone span:last-child {
    display: inline;
  }

  .hero__actions,
  .section-cta,
  .article-cta {
    flex-direction: row;
    align-items: center;
  }

  .quick-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lead-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-form__wide,
  .lead-form__agree,
  .lead-form__submit,
  .lead-form__status {
    grid-column: 1 / -1;
  }
}

@media (min-width: 860px) {
  .site-header__inner {
    min-height: 74px;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 12px 24px;
  }

  .brand__text {
    max-width: none;
    font-size: 17px;
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .main-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
  }

  .menu-button {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .hero,
  .hero__inner {
    min-height: calc(100svh - 74px);
  }

  .hero__bg {
    background-image:
      linear-gradient(90deg, rgba(13, 26, 23, 0.88), rgba(13, 26, 23, 0.58) 56%, rgba(13, 26, 23, 0.22)),
      url("../img/legal-hero.svg");
  }

  .hero__inner {
    padding: 64px 24px 40px;
  }

  .hero__lead {
    max-width: 680px;
    font-size: 19px;
  }

  .section,
  .content-page {
    padding: 82px 24px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section--split {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(360px, 560px);
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .section--split .section__head,
  .section--split .urgent-list {
    margin-top: 0;
  }

  .steps,
  .proof-band,
  .geo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .geo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .article-related div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-section {
    grid-template-columns: minmax(320px, 0.72fr) minmax(480px, 1fr);
    align-items: start;
    padding-right: 24px;
    padding-left: 24px;
  }

  .lead-copy {
    margin: 0;
  }

  .site-footer {
    padding-bottom: 42px;
  }

  .site-footer__inner {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }

  .mobile-sticky {
    display: none;
  }
}

@media (hover: hover) {
  .button,
  .service-card,
  .quick-strip a,
  .header-phone,
  .footer-messengers a {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  }

  .button:hover,
  .service-card:hover,
  .quick-strip a:hover,
  .footer-messengers a:hover {
    transform: translateY(-2px);
  }

  .service-card:hover {
    border-color: rgba(181, 138, 65, 0.55);
    box-shadow: var(--shadow);
  }
}
