:root {
  --bg: #f4efe6;
  --surface: #ffffff;
  --surface-soft: #faf6ef;
  --ink: #142235;
  --ink-soft: #5d6977;
  --line: rgba(20, 34, 53, 0.12);
  --gold: #b58b49;
  --gold-deep: #8f6c34;
  --gold-soft: #efe2c8;
  --shadow: 0 24px 60px rgba(20, 34, 53, 0.08);
  --radius: 28px;
  --radius-sm: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

textarea {
  resize: vertical;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
}

h4 {
  margin: 1.15rem 0 0.55rem;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.topline {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.topline-inner {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.topline-contact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(20, 34, 53, 0.08);
  backdrop-filter: blur(14px);
  background: rgba(244, 239, 230, 0.92);
}

.header-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  display: block;
  width: min(250px, 26vw);
  max-width: 100%;
  height: auto;
}

.footer-brand {
  display: grid;
  gap: 0.55rem;
}

.footer-logo-image {
  display: block;
  width: min(300px, 52vw);
  max-width: 100%;
  height: auto;
}

.brand-text,
.footer-meta,
.contact-list span,
.summary-list span,
.stat-card span,
.google-badge,
.hero-subtitle,
.step-card p,
.info-card ul,
.footer-links a,
.footer-inner p,
.topline a,
.topline span,
.hero-mini-card span,
.form-note,
.legal-content p,
.legal-content li,
.thanks-copy {
  color: var(--ink-soft);
}

.thanks-copy-small {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  font-size: 0.93rem;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.topline a:hover,
.topline a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.inline-link:hover,
.inline-link:focus-visible,
.contact-list a:hover,
.contact-list a:focus-visible,
.footer-meta a:hover,
.footer-meta a:focus-visible,
.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--gold-deep);
}

.nav-button {
  padding: 0.56rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: #1b2f49;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
}

.hero {
  padding-top: 3.8rem;
}

.hero-grid,
.contact-grid,
.form-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 1.8rem;
  align-items: start;
}

.hero-grid-subpage {
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 420px);
  gap: 2.4rem;
  align-items: center;
}

.hero-grid-subpage .hero-copy {
  max-width: 760px;
}

.hero-grid-subpage h1 {
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero-grid-subpage .hero-subtitle {
  max-width: 34ch;
}

.hero-copy {
  padding-top: 0.15rem;
}

.hero-copy-card {
  background: var(--surface);
  border: 1px solid rgba(20, 34, 53, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.7rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 5rem);
  line-height: 0.95;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

h3 {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-subtitle {
  margin: 1rem 0 0;
  font-size: 1.15rem;
}

.hero-intro {
  margin: 1rem 0 0;
  max-width: 56ch;
  font-size: 1.02rem;
}

.hero-intro-subpage {
  max-width: 48ch;
}

.hero-facts,
.info-card ul,
.footer-links,
.contact-list,
.summary-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-facts {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.55rem;
  font-size: 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.65rem;
}

.button,
.link-button {
  border: 0;
  appearance: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 35px rgba(20, 34, 53, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #1b2f49;
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(20, 34, 53, 0.14);
}

.button-full {
  width: 100%;
}

.tag-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-card,
.stat-card,
.info-card,
.step-card,
.contact-panel,
.form-card,
.side-panel-card,
.thanks-card,
.legal-card,
.hero-mini-card {
  background: var(--surface);
  border: 1px solid rgba(20, 34, 53, 0.08);
  box-shadow: var(--shadow);
}

.hero-card,
.contact-panel,
.form-card,
.side-panel-card,
.thanks-card,
.legal-card,
.hero-mini-card {
  border-radius: var(--radius);
}

.hero-card {
  overflow: hidden;
}

.hero-profile-card {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.hero-profile-card-no-portrait {
  padding: 1.45rem;
}

.hero-profile-card-no-portrait .profile-card-body {
  height: 100%;
  align-content: center;
  padding: 0;
}

.portrait-frame {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(20, 34, 53, 0.08);
}

.portrait-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-card-body {
  display: grid;
  gap: 0.85rem;
  padding: 0.1rem 0.2rem 0.25rem;
}

.profile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(239, 226, 200, 0.62);
  color: var(--ink);
  font-weight: 700;
}

.rating-pill small {
  color: var(--ink-soft);
}

.profile-card-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.05;
  color: var(--ink);
}

.profile-card-role,
.card-copy {
  margin: 0;
  color: var(--ink-soft);
}

.profile-card-copy {
  margin: 0;
  color: var(--ink-soft);
}

.profile-keyfacts {
  display: grid;
  gap: 0.85rem;
}

.profile-keyfact {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(244, 239, 230, 0.7);
  border: 1px solid rgba(20, 34, 53, 0.08);
}

.profile-keyfact strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
}

.profile-mini-grid,
.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.profile-mini-link,
.hero-mini-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(244, 239, 230, 0.7);
  border: 1px solid rgba(20, 34, 53, 0.08);
}

.profile-mini-link strong,
.hero-mini-card strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
}

.hero-mini-grid {
  margin-top: 1.1rem;
}

.stat-grid,
.card-grid,
.step-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.stat-card,
.info-card,
.step-card {
  border-radius: var(--radius-sm);
  padding: 1.4rem;
}

.stat-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}

.stat-card strong {
  font-size: 1.15rem;
}

.stat-card-accent,
.side-panel-card-accent {
  background: linear-gradient(135deg, var(--ink), #223754);
  color: #fff;
}

.stat-card-accent span,
.side-panel-card-accent span,
.side-panel-card-accent strong {
  color: #fff;
}

.section-head {
  margin-bottom: 1.5rem;
}

.info-card ul {
  display: grid;
  gap: 0.55rem;
}

.info-card li,
.hero-facts li {
  position: relative;
  padding-left: 1rem;
}

.info-card li::before,
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.info-card-cta {
  background: linear-gradient(180deg, rgba(239, 226, 200, 0.6), rgba(255, 255, 255, 0.95));
}

.inline-link {
  display: inline-flex;
  margin-top: 1.2rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.step-card {
  min-height: 200px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-panel,
.form-card,
.side-panel-card,
.legal-card {
  padding: 1.5rem;
}

.contact-list,
.summary-list {
  display: grid;
  gap: 1rem;
}

.contact-list strong,
.summary-list strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
}

.cta-row-contact {
  margin-top: 1.8rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-group {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-group label,
.signature-head label {
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(20, 34, 53, 0.14);
  background: #fff;
  color: var(--ink);
  padding: 0.95rem 1rem;
}

input:focus,
textarea:focus,
select:focus,
.button:focus-visible,
.link-button:focus-visible,
.menu-toggle:focus-visible,
.main-nav a:focus-visible,
.topline a:focus-visible {
  outline: 2px solid rgba(181, 139, 73, 0.45);
  outline-offset: 2px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.form-note-tight {
  margin-top: 0.7rem;
  margin-bottom: 0;
}

.signature-wrap {
  margin-bottom: 1rem;
}

.signature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.link-button {
  background: transparent;
  padding: 0;
  color: var(--gold-deep);
  font-weight: 700;
}

#signature-pad {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px dashed rgba(20, 34, 53, 0.22);
  background: linear-gradient(180deg, #ffffff, #faf8f4);
  touch-action: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0 1.2rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.side-panel {
  display: grid;
  gap: 1rem;
}

.side-panel-card-accent {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}

.side-card-link {
  display: flex;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid rgba(20, 34, 53, 0.08);
  background: #efe8dc;
}

.footer-inner,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-inner {
  justify-content: space-between;
  padding: 1.4rem 0;
  flex-wrap: wrap;
}

.footer-links {
  flex-wrap: wrap;
}

.footer-bottom {
  padding: 0 0 1.2rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.thanks-card {
  width: min(100%, 760px);
  padding: 2rem;
}


.thanks-actions {
  margin-top: 1.5rem;
}

.thanks-redirect {
  margin: 1.25rem 0 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.side-summary {
  padding: 1.35rem;
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

.hero-compact {
  padding-bottom: 1.25rem;
}

.form-card-large {
  padding: 1.6rem;
}

.hero-grid-subpage .tag-row {
  margin-top: 1.25rem;
}

.hero-grid-subpage .tag {
  padding: 0.5rem 0.85rem;
}

.step-grid-tight .step-card {
  min-height: auto;
}

.legal-section {
  padding-top: 4rem;
}

.legal-card {
  max-width: 860px;
}

.legal-content {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.legal-block h2 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .form-page-grid,
  .hero-grid-subpage,
  .card-grid,
  .step-grid,
  .stat-grid,
  .info-topic-grid,
  .hero-mini-grid,
  .profile-mini-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid rgba(20, 34, 53, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(20, 34, 53, 0.08);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .nav-button {
    border-radius: 0;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4rem 0;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .two-columns {
    grid-template-columns: 1fr;
  }

  .topline-inner {
    display: grid;
    justify-content: initial;
    padding: 0.7rem 0;
  }

  .topline-contact {
    justify-content: flex-start;
  }

  .header-inner {
    min-height: 52px;
  }

  .brand-logo {
    width: min(250px, 54vw);
  }

  .footer-logo-image {
    width: min(240px, 72vw);
  }

  .button {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
  }

  .checkbox-row {
    align-items: flex-start;
  }
}
