:root {
  --bg: #f5f6f7;
  --bg-elevated: #ffffff;
  --ink: #1f2a33;
  --ink-soft: #5a6670;
  --line: #d8dde2;
  --accent: #3d5a4c;
  --accent-hover: #2f463b;
  --accent-soft: #e6eeea;
  --danger: #8b3a3a;
  --success: #2f5d45;
  --shadow: 0 18px 40px rgba(31, 42, 51, 0.06);
  --radius: 2px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "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-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e9eef1 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e7ece8 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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, opacity 0.2s ease;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }

p { margin: 0 0 1rem; color: var(--ink-soft); }
p.lead { font-size: 1.15rem; color: var(--ink); max-width: 42rem; }

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(245, 246, 247, 0.88);
  border-bottom: 1px solid 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.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  margin: 0.28rem auto;
}

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

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

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

.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-soft);
  color: var(--ink);
}

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

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

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

.hero h1 {
  max-width: 14ch;
  opacity: 0;
  animation: rise 0.8s ease 0.08s forwards;
}

.hero-copy {
  max-width: 34rem;
  opacity: 0;
  animation: rise 0.8s ease 0.16s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: rise 0.8s ease 0.24s forwards;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  animation: rise 0.9s ease 0.2s forwards;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero-home {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

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

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

.section-muted {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

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

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-2 {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.offer-item,
.story-item,
.note-item,
.rate-block,
.faq-item {
  padding: 0;
  background: transparent;
}

.offer-item img,
.note-item img,
.story-visual img,
.page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.offer-item h3 a,
.note-item h3 a {
  color: var(--ink);
  text-decoration: none;
}

.offer-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 1rem;
}

.quote-meta {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.page-hero .split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .page-hero .split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.prose {
  max-width: 44rem;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

.prose li { margin-bottom: 0.45rem; }

.detail-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .detail-layout {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }
}

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

.side-panel dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

.side-panel dd {
  margin: 0.25rem 0 0;
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

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

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

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

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

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

label {
  font-weight: 560;
  font-size: 0.95rem;
}

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

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

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: var(--danger);
}

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

.form-status {
  margin-top: 0.5rem;
  font-weight: 560;
}

.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.address-block {
  white-space: pre-wrap;
  color: var(--ink);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: #eef1f3;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1.4fr 1fr 0.8fr;
  }
}

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

.footer-tag,
.footer-address,
.footer-base p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

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

.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(31, 42, 51, 0.96);
  color: #e8ecef;
  padding: 1rem 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}

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

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

.cookie-banner p {
  color: #d7dde2;
  margin: 0;
  max-width: 46rem;
}

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

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

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

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

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.4rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 0.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

.stat-row {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}

@media (min-width: 700px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
}

.stat span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

.error-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--bg-elevated);
    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;
    gap: 0.75rem;
  }

  .header-inner { position: relative; }
}

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