:root {
  --bg: #f7f5f1;
  --bg-elevated: #ffffff;
  --ink: #1f2420;
  --ink-soft: #5a615b;
  --line: #ddd8cf;
  --accent: #3d4a3f;
  --accent-soft: #e7ebe6;
  --warm: #c4a574;
  --danger: #8b3a3a;
  --ok: #2f5d45;
  --radius: 2px;
  --shadow: 0 12px 40px rgba(31, 36, 32, 0.06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.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-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #efeae1 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e8ece7 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

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

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

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

.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247, 245, 241, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 450;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  background: var(--accent);
  color: #f7f5f1 !important;
  text-decoration: none;
}

.nav-cta:hover { background: #2f3932; }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

.btn-primary:hover { background: #2f3932; color: #fff; }

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

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

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-home {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-home .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 1rem;
  animation: rise 0.8s ease both;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--warm);
  margin-bottom: 0.75rem;
  animation: rise 0.7s ease 0.05s both;
}

.hero-lead {
  max-width: 36rem;
  font-size: 1.125rem;
  animation: rise 0.8s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  animation: rise 0.8s ease 0.18s both;
}

.hero-visual {
  margin-top: 1rem;
  animation: fade-in 1s ease 0.2s both;
}

.hero-visual img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-muted {
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.offer-list {
  display: grid;
  gap: 1.25rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.25s ease;
}

.offer-row:hover { padding-left: 0.35rem; }

.offer-row img {
  width: 140px;
  height: 96px;
  object-fit: cover;
}

.offer-row h3 {
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.offer-row p { margin: 0; font-size: 0.95rem; }

.offer-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.evidence {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.quote {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.45;
}

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

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

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

.media-wide {
  margin: 1.5rem 0 0;
}

.media-wide img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

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

.service-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-tile .body {
  padding: 1.25rem;
}

.service-tile h3 { color: var(--ink); }

.detail-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 0.8fr;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.35rem;
}

.panel h3 { margin-top: 0; }

.panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.panel li + li { margin-top: 0.4rem; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--bg-elevated);
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
}

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

.rate-table th {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.blog-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.blog-item h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.prose {
  max-width: 42rem;
}

.prose p { margin-bottom: 1.15rem; }

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-size: 0.9rem;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, white);
  border-color: var(--accent);
}

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

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  display: none;
}

.form-status.is-success {
  display: block;
  border-color: var(--ok);
  color: var(--ok);
  background: #edf6f0;
}

.form-status.is-error {
  display: block;
  border-color: var(--danger);
  color: var(--danger);
  background: #f8eeee;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-aside p { margin: 0; }

.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

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

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, #ebe6dc);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1.3fr 1.4fr 1fr 1fr;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.footer-tag,
.footer-grid p {
  font-size: 0.92rem;
}

.footer-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.5rem !important;
}

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

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

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

.footer-links a:hover { color: var(--ink); }

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 80;
  background: rgba(31, 36, 32, 0.94);
  color: #f7f5f1;
  padding: 1rem 0;
  animation: slide-up 0.35s ease both;
}

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

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

.cookie-banner p {
  margin: 0;
  color: #d7d3cb;
  max-width: 48rem;
  font-size: 0.95rem;
}

.cookie-banner a { color: #fff; }

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

.cookie-banner .btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

.cookie-banner .btn-primary {
  background: #f7f5f1;
  color: var(--ink);
}

.story {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.method-steps {
  display: grid;
  gap: 1.5rem;
}

.method-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  align-items: start;
}

.method-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--warm);
  line-height: 1;
}

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

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin-bottom: 0.85rem;
}

.team-card h3 { margin-bottom: 0.25rem; }

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

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 900px) {
  .split,
  .detail-layout,
  .footer-grid,
  .evidence,
  .card-grid,
  .team-grid,
  .blog-item,
  .offer-row {
    grid-template-columns: 1fr;
  }

  .offer-meta { white-space: normal; }

  .offer-row img {
    width: 100%;
    height: 180px;
  }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 1rem 1.25rem 1.25rem;
  }

  .site-nav.is-open { display: block; }

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

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

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

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