:root {
  --accent: #d3a37c;
  --accent-dark: #b88962;
  --ink: #0f1419;
  --ink-soft: #1e2833;
  --paper: #f7f4ef;
  --paper-warm: #efe8df;
  --snow: #ffffff;
  --muted: #5c6670;
  --line: rgba(15, 20, 25, 0.12);
  --shadow: 0 18px 40px rgba(15, 20, 25, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --focus: 2px solid var(--accent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--snow);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 2000;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--snow);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle i {
  font-size: 1.35rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--ink);
}

.disclaimer-bar {
  background: var(--ink-soft);
  color: #e9eef5;
  font-size: 0.85rem;
  line-height: 1.5;
}

.disclaimer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  text-align: center;
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: stretch;
  color: var(--snow);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(15, 20, 25, 0.82), rgba(30, 40, 51, 0.55)),
    url("../image/pic-hero.svg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1.2s ease, filter 1.2s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.05);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: transform 0.35s ease, letter-spacing 0.35s ease;
}

.hero:hover .hero-copy h1 {
  transform: translateY(-2px);
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: #e6edf5;
  max-width: 52ch;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.hero:hover .hero-panel {
  transform: translateY(-4px);
  border-color: rgba(211, 163, 124, 0.55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.hero-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-form {
  display: grid;
  gap: 0.65rem;
}

.hero-form label {
  font-size: 0.85rem;
  color: #dfe7f0;
}

.hero-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 20, 25, 0.35);
  color: var(--snow);
  font: inherit;
}

.hero-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.hero-form input:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(211, 163, 124, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--snow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--snow);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.section-kicker i {
  color: var(--accent-dark);
  font-size: 1rem;
}

.section h2 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
}

.section-dark {
  background: var(--ink-soft);
  color: #eef2f7;
}

.section-dark .section-kicker {
  color: #c9d2dc;
}

.section-dark .section-kicker i {
  color: var(--accent);
}

.section-dark a {
  color: var(--accent);
}

.section-dark a:hover {
  color: #fff;
}

.section-warm {
  background: var(--paper-warm);
}

.section-accent {
  background: linear-gradient(135deg, #e8d8c8, #f2e6da);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.figure-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--snow);
  box-shadow: var(--shadow);
}

.figure-card figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.callout {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem;
  background: rgba(211, 163, 124, 0.12);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.section-dark .callout {
  background: rgba(211, 163, 124, 0.15);
  color: #f4f7fb;
}

.grid-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 20, 25, 0.06);
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eef2f7;
}

.card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.05rem;
}

.card i {
  font-size: 1.35rem;
  color: var(--accent-dark);
}

.section-dark .card i {
  color: var(--accent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.06);
  font-size: 0.85rem;
}

.section-dark .tag-list li {
  background: rgba(255, 255, 255, 0.08);
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--snow);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.section-dark .steps li {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--snow);
  color: var(--ink);
}

.table-wrap a {
  color: var(--accent-dark);
}

.table-wrap a:hover {
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

@media (max-width: 520px) {
  table {
    min-width: 100%;
    font-size: 0.82rem;
  }

  th,
  td {
    padding: 0.55rem 0.45rem;
  }
}

th,
td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--paper-warm);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

td {
  color: var(--ink);
}

.faq {
  display: grid;
  gap: 0.65rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  background: var(--snow);
}

.section-dark .faq details {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  background: var(--ink);
  color: #dbe3ec;
  padding: 2rem 1.25rem 2.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-meta {
  font-size: 0.9rem;
  color: #aab6c3;
}

.cookie-banner {
  position: fixed;
  inset: auto 12px 12px 12px;
  z-index: 1500;
  max-width: 520px;
  margin: 0 auto;
  background: var(--snow);
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cookie-actions .btn {
  border-radius: 10px;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent);
}

.cookie-panel {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.cookie-panel.is-open {
  display: block;
}

.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cfd6dd;
  border-radius: 999px;
  transition: 0.2s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: var(--accent-dark);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.switch input:disabled + .slider {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-card {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-grid label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: min(420px, 60vh);
  border: 0;
  display: block;
}

.success-hero {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
  background: linear-gradient(160deg, #1e2833, #0f1419);
  color: #eef2f7;
}

.policy-page .section-inner {
  max-width: 860px;
}

.policy-page main > section.section h2.policy-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.policy-page main > section.section h2 {
  margin-top: 2rem;
}

.policy-page main > section.section h2.policy-title + p {
  margin-top: 0;
}

.policy-page ul {
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .main-nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid transparent;
  }

  .main-nav.is-open {
    max-height: 640px;
    border-top-color: var(--line);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0 1rem;
    gap: 0.25rem;
  }
}

@media (max-width: 360px) {
  .header-inner {
    padding: 0.65rem 0.85rem;
  }

  .section {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .cookie-banner {
    inset: auto 8px 8px 8px;
  }
}
