:root {
  --ofc-navy: #06345f;
  --ofc-blue: #0875bd;
  --ofc-sky: #eaf6ff;
  --ofc-ink: #102033;
  --ofc-line: #d8e6f2;
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ofc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.brand-gradient {
  background: linear-gradient(135deg, #06345f 0%, #0875bd 100%);
}

.soft-grid {
  background-image:
    linear-gradient(rgba(8, 117, 189, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 117, 189, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.container-page {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  min-width: 0;
}

.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn-primary {
  background: var(--ofc-blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(8, 117, 189, 0.22);
}

.btn-primary:hover {
  background: #075f9b;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--ofc-navy);
  color: #fff;
}

.btn-secondary:hover {
  background: #052948;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--ofc-blue);
  color: var(--ofc-blue);
  background: #fff;
}

.btn-outline:hover {
  background: var(--ofc-sky);
}

.section-kicker {
  color: var(--ofc-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  color: var(--ofc-navy);
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.04;
}

.section-heading {
  color: var(--ofc-navy);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  font-weight: 800;
  line-height: 1.12;
}

.card {
  border: 1px solid var(--ofc-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(6, 52, 95, 0.08);
  min-width: 0;
}

.team-photo-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--ofc-line);
  background: #f2f8fd;
}

.team-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-hanna {
  object-position: center 36%;
}

.team-photo-svetlana {
  object-position: center 65%;
  transform: scale(1.24);
  transform-origin: center 68%;
}

.nav-link {
  color: #28445e;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ofc-blue);
}

.announcement {
  background: var(--ofc-navy);
  color: #fff;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th {
  background: #f2f8fd;
  color: var(--ofc-navy);
  text-align: left;
  font-size: 0.9rem;
  padding: 14px 16px;
}

.comparison-table td {
  border-top: 1px solid var(--ofc-line);
  padding: 14px 16px;
  font-size: 0.95rem;
}

.comparison-table tr:last-child td {
  border-bottom: 1px solid var(--ofc-line);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
}

.field-label {
  display: block;
  color: var(--ofc-navy);
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  border: 1px solid #cbdceb;
  border-radius: 6px;
  background: #fff;
  min-height: 46px;
  padding: 10px 12px;
  outline: none;
}

.field-input:focus {
  border-color: var(--ofc-blue);
  box-shadow: 0 0 0 3px rgba(8, 117, 189, 0.12);
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #cbdceb;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  background: #fff;
}

.choice:hover {
  border-color: var(--ofc-blue);
}

.choice input {
  margin-top: 3px;
}

.error-text {
  color: #b42318;
  font-size: 0.9rem;
  margin-top: 8px;
}

.step-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #bfd4e7;
}

.step-dot.is-active {
  width: 24px;
  background: var(--ofc-blue);
}

.faq-panel {
  display: none;
}

.faq-item.is-open .faq-panel {
  display: block;
}

@media (max-width: 767px) {
  .container-page {
    width: min(100% - 24px, 1120px);
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
  }

  .table-scroll {
    overflow-x: visible;
  }

  .comparison-table {
    min-width: 0;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody {
    display: grid;
    gap: 12px;
  }

  .comparison-table tr {
    display: block;
    border: 1px solid var(--ofc-line);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
  }

  .comparison-table td {
    display: grid;
    gap: 4px;
    border-top: 1px solid var(--ofc-line);
    padding: 11px 12px;
  }

  .comparison-table td:first-child {
    border-top: 0;
  }

  .comparison-table td::before {
    color: var(--ofc-navy);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .comparison-table td:nth-child(1)::before {
    content: "Resale Apartment Price";
  }

  .comparison-table td:nth-child(2)::before {
    content: "Typical 0.75% Legal Fee";
  }

  .comparison-table td:nth-child(3)::before {
    content: "One Fee Closings";
  }

  .comparison-table td:nth-child(4)::before {
    content: "Estimated Savings";
  }

  .pricing-tier-table td:nth-child(1)::before {
    content: "Property Price";
  }

  .pricing-tier-table td:nth-child(2)::before {
    content: "One Fee Closings Price";
  }
}
