:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f3;
  --ink: #0f1a14;
  --ink-muted: #4a524c;
  --line: #e2e0da;
  --accent: #1f4d3a;
  --accent-hover: #16382a;
  --accent-soft: #e8f0eb;
  --danger: #8a2f2f;
  --success: #1f4d3a;
  --radius: 2px;
  --shadow: 0 12px 40px rgba(15, 26, 20, 0.06);
  --font-display: "Syne", sans-serif;
  --font-body: "Public Sans", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink-muted);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.js-error {
  background: #f8e8e8;
  color: var(--danger);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 26, 20, 0.04);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  max-width: 14rem;
  line-height: 1.2;
}

.brand:hover {
  color: var(--accent);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  color: var(--ink);
}

.nav-toggle-bars {
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  display: block;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero variants */
.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  max-width: 34rem;
  color: var(--ink-muted);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 42vw, 520px);
  background: var(--bg-soft);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.page-hero p {
  max-width: 40rem;
  font-size: 1.1rem;
}

/* Sections */
.section {
  padding: clamp(2.75rem, 6vw, 5rem) 0;
}

.section-muted {
  background: var(--bg-soft);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.offer-grid,
.card-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.offer-card,
.post-card,
.story-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.offer-card img,
.post-card img,
.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-soft);
  transition: transform 0.5s ease;
}

.offer-card:hover img,
.post-card:hover img {
  transform: scale(1.03);
}

.media-frame {
  overflow: hidden;
}

.offer-card h3,
.post-card h3 {
  color: var(--ink);
}

.offer-meta,
.meta {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-plain li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}

.list-plain li:first-child {
  border-top: 1px solid var(--line);
}

.stat-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.stat-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.quote-block {
  max-width: 44rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
}

.quote-block p {
  font-size: 1.2rem;
  color: var(--ink);
  font-style: italic;
}

.quote-block cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  color: var(--ink-muted);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose h3 {
  margin-top: 1.75rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
}

.fee-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.fee-row:first-of-type {
  border-top: 1px solid var(--line);
}

.fee-row h3 {
  margin-bottom: 0.35rem;
}

.fee-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.15rem;
}

.review-list {
  display: grid;
  gap: 1.75rem;
}

.review-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.review-item:first-child {
  border-top: 1px solid var(--line);
}

.review-item blockquote {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.review-meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.case-story {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg-soft);
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

.field-error {
  display: block;
  min-height: 1.1em;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--danger);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.form-status.is-success {
  background: var(--accent-soft);
  color: var(--success);
}

.form-status.is-error {
  background: #f8e8e8;
  color: var(--danger);
}

.contact-aside {
  padding: 1.5rem;
  background: var(--bg-soft);
  height: fit-content;
}

.contact-aside h2 {
  font-size: 1.25rem;
}

/* Footer */
.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #fafaf8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.9fr 0.9fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.footer-address,
.footer-tag,
.site-footer p {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a,
.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(15, 26, 20, 0.08);
  padding: 1rem 0;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 48rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.chip {
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-split,
  .split-2,
  .contact-layout,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .offer-grid,
  .card-grid,
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    transform: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .offer-grid,
  .card-grid,
  .post-grid,
  .stat-note,
  .fee-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
