:root {
  --bg: #fbfcf9;
  --paper: #ffffff;
  --ink: #16231f;
  --muted: #5b6a63;
  --line: #dce5df;
  --green: #0d5f3f;
  --green-dark: #0a3728;
  --blue: #1d618e;
  --amber: #d89b2a;
  --soft: #eef5f0;
  --shadow: 0 24px 70px rgba(22, 35, 31, 0.12);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(29, 97, 142, 0.45);
  outline-offset: 4px;
}

.site-header {
  align-items: center;
  background: rgba(251, 252, 249, 0.92);
  border-bottom: 1px solid rgba(220, 229, 223, 0.9);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 16px clamp(20px, 4vw, 58px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 3px; }

.nav {
  display: flex;
  gap: clamp(16px, 2vw, 34px);
  justify-content: center;
}

.nav a, .header-cta, .primary-action, .secondary-action, button {
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav a { color: var(--muted); }
.header-cta, .primary-action, button {
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  padding: 12px 16px;
}

.hero {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.72fr);
  min-height: calc(100vh - 73px);
  padding: clamp(44px, 6vw, 82px) clamp(20px, 4vw, 58px) 54px;
}

.hero-copy { align-self: center; max-width: 810px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(44px, 6vw, 78px);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 26px;
}

.hero-copy > p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  max-width: 720px;
}

.local-search {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(22, 35, 31, 0.08);
  margin-top: 28px;
  max-width: 710px;
  padding: 18px;
}

.local-search label {
  color: var(--green-dark);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.local-search div {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

input {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.primary-action, .secondary-action { align-items: center; min-height: 48px; padding: 14px 18px; }
.secondary-action {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green-dark);
}

.hero-media {
  align-self: center;
  position: relative;
}

.hero-media img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  object-fit: cover;
  width: 100%;
}

.source-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  bottom: -28px;
  box-shadow: var(--shadow);
  left: 24px;
  padding: 22px;
  position: absolute;
  right: 24px;
}

.source-panel span {
  color: var(--amber);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.source-panel strong { display: block; font-size: 20px; line-height: 1.25; }

.section {
  padding: clamp(66px, 8vw, 118px) clamp(20px, 4vw, 58px);
}

.section-intro {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 0.43fr) minmax(280px, 0.57fr);
  margin-bottom: 36px;
}

h2 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: 0; line-height: 1; }
.section-intro p, .partner-section p, .faq-list p, .city-hero p, .city-body p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.trust-grid, .city-grid, .guide-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-grid article, .city-grid a, .guide-grid a, .method-list article, .local-card, .recommendation-card, .market-rules {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.trust-grid article { min-height: 260px; }
.trust-grid span {
  color: var(--amber);
  display: inline-flex;
  font-weight: 900;
  margin-bottom: 36px;
}

.trust-grid h3, .city-grid strong, .guide-grid strong, .local-card h3 {
  color: var(--green-dark);
  display: block;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.trust-grid p, .city-grid span, .guide-grid span, .method-list span, .local-card p {
  color: var(--muted);
  line-height: 1.58;
}

.recommendation-section {
  background: #f4f7f3;
}

.recommendation-layout {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
}

.recommendation-card.is-featured {
  border-color: rgba(13, 95, 63, 0.42);
  box-shadow: 0 20px 56px rgba(13, 95, 63, 0.12);
}

.recommendation-label {
  color: var(--amber);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.recommendation-card h3 {
  color: var(--green-dark);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  margin-bottom: 14px;
}

.recommendation-card p, .market-rules p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.recommendation-card dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding-top: 18px;
}

.recommendation-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.recommendation-card dd {
  color: var(--green-dark);
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.recommendation-card a {
  color: var(--blue);
}

.market-rules {
  background: var(--green-dark);
  color: #fff;
}

.market-rules strong {
  display: block;
  font-size: 22px;
  margin-bottom: 14px;
}

.market-rules p {
  color: rgba(255, 255, 255, 0.74);
}

.methodology-section, .partner-section { background: var(--soft); }
.method-list {
  display: grid;
  gap: 12px;
}

.method-list article {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(210px, 0.32fr) 1fr;
}

.method-list strong { color: var(--green-dark); font-size: 20px; }

.cities-section { background: var(--green-dark); color: #fff; }
.cities-section .section-intro p { color: rgba(255, 255, 255, 0.74); }
.city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.city-grid a, .guide-grid a { min-height: 220px; text-decoration: none; }

.partner-section {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr auto;
}

.partner-section h2 { max-width: 900px; }
.partner-section p { max-width: 850px; }

.faq-section { background: var(--paper); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-list summary {
  color: var(--green-dark);
  cursor: pointer;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.25;
}
.faq-list p { margin: 16px 0 0; max-width: 880px; }
.faq-list a { color: var(--blue); font-weight: 800; }

.site-footer {
  align-items: end;
  background: var(--ink);
  color: #fff;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  padding: 36px clamp(20px, 4vw, 58px);
}
.site-footer p { color: rgba(255, 255, 255, 0.7); margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
.footer-links a { color: #fff; font-weight: 800; text-decoration: none; }

.city-hero {
  background: linear-gradient(135deg, #f7faf6 0%, #eaf3ee 100%);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.9fr) minmax(290px, 0.48fr);
  padding: clamp(48px, 7vw, 94px) clamp(20px, 4vw, 58px);
}
.city-hero h1 { max-width: 880px; }
.city-facts {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.city-facts dl { margin: 0; }
.city-facts div { border-bottom: 1px solid var(--line); padding: 14px 0; }
.city-facts div:first-child { padding-top: 0; }
.city-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.city-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.city-facts dd { font-weight: 850; line-height: 1.35; margin: 0; }
.city-body {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.source-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.source-list li { color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.redirect-note { min-height: 100vh; padding: 20vh clamp(20px, 8vw, 90px); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero, .section-intro, .partner-section, .city-hero { grid-template-columns: 1fr; }
  .trust-grid, .guide-grid, .city-body, .recommendation-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { align-items: start; grid-template-columns: 1fr; }
  .header-cta { justify-content: center; width: 100%; }
  .hero { min-height: auto; padding-top: 42px; }
  h1 { font-size: 38px; line-height: 1; overflow-wrap: anywhere; }
  h2 { font-size: 32px; }
  .hero-copy > p, .section-intro p, .partner-section p, .faq-list p, .city-hero p, .city-body p { font-size: 16px; }
  .local-search div, .method-list article, .trust-grid, .city-grid, .guide-grid, .city-body, .recommendation-layout { grid-template-columns: 1fr; }
  .source-panel { bottom: auto; left: 12px; position: relative; right: auto; transform: translateY(-18px); }
  .site-footer { align-items: start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
