/* ═══════════════════════════════════════════════════════════
   SolarWise — Stylesheet
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --amber:   #F59E0B;
  --amber-d: #D97706;
  --amber-l: #FEF3C7;
  --green:   #10B981;
  --green-d: #059669;
  --green-l: #D1FAE5;
  --blue:    #3B82F6;
  --dark:    #111827;
  --dark2:   #1F2937;
  --mid:     #374151;
  --muted:   #6B7280;
  --border:  #E5E7EB;
  --bg:      #F9FAFB;
  --white:   #FFFFFF;
  --radius:  14px;
  --shadow:  0 4px 24px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #164e63 100%);
  padding: 60px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .05em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-sub {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ─── SEARCH CARD ───────────────────────────────────────── */
.search-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  text-align: left;
}

.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

#address-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
#address-input:focus { border-color: var(--amber); }

.btn-primary {
  padding: 12px 28px;
  background: var(--amber);
  color: var(--dark);
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.btn-primary:hover  { background: var(--amber-d); }
.btn-primary:active { transform: scale(.97); }

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: var(--dark2);
  color: var(--white);
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s;
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--mid); }

/* ─── PRESETS ───────────────────────────────────────────── */
.presets-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.presets-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
}

.preset-btn {
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: var(--bg);
  color: var(--mid);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.preset-btn:hover {
  border-color: var(--amber);
  background: var(--amber-l);
  color: var(--dark);
}

/* ─── PARAMS ROW ────────────────────────────────────────── */
.params-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.param-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  flex: 1;
  min-width: 130px;
}

.param-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s;
}
.param-input-wrap:focus-within { border-color: var(--amber); }

.param-prefix, .param-unit {
  padding: 0 8px;
  color: var(--muted);
  font-size: .85rem;
  background: var(--bg);
  user-select: none;
}

.param-input-wrap input {
  border: none;
  outline: none;
  padding: 8px 6px;
  font-size: .95rem;
  width: 70px;
  background: transparent;
  text-align: right;
  color: var(--dark);
}

/* ─── LOADING ───────────────────────────────────────────── */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--muted);
}

.spinner {
  width: 48px; height: 48px;
  border: 5px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── ERROR ─────────────────────────────────────────────── */
.error-box {
  max-width: 700px;
  margin: 30px auto;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #991B1B;
  font-weight: 500;
  text-align: center;
}

/* ─── RESULTS ───────────────────────────────────────────── */
.results {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.location-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}

/* ─── STATS GRID ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 650px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
}
.stat-card.sun   { border-color: var(--amber); }
.stat-card.bolt  { border-color: #6366F1; }
.stat-card.score { border-color: var(--green); }
.stat-card.homes { border-color: var(--blue); }

.stat-icon { font-size: 1.6rem; margin-bottom: 6px; }
.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}
.stat-value small { font-size: 1rem; color: var(--muted); }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* ─── GENERIC CARD ──────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

/* ─── SCORE BAR ─────────────────────────────────────────── */
.score-bar-track {
  height: 18px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  border-radius: 99px;
  position: relative;
  overflow: visible;
}

.score-bar-fill {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  background: var(--white);
  border: 4px solid var(--dark);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: left .6s cubic-bezier(.34,1.56,.64,1);
}

.score-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
  margin-top: 8px;
}

.score-note {
  margin-top: 12px;
  font-size: .9rem;
  color: var(--muted);
}

/* ─── SYSTEM GRID ───────────────────────────────────────── */
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

@media (max-width: 600px) {
  .system-grid { grid-template-columns: repeat(2, 1fr); }
}

.sys-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 18px 12px;
}

.sys-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber-d);
  line-height: 1;
}

.sys-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sys-sub { font-size: .75rem; color: var(--muted); margin-top: 2px; }

/* ─── FINANCE TABLE ─────────────────────────────────────── */
.finance-table { display: flex; flex-direction: column; gap: 4px; }

.fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
}

.fin-row:nth-child(odd) { background: var(--bg); }

.fin-label { font-size: .95rem; color: var(--mid); }
.fin-value { font-size: 1rem; font-weight: 600; color: var(--dark); }
.fin-value.green { color: var(--green-d); }
.fin-value.bold  { font-weight: 800; }
.fin-value.big-green { font-size: 1.2rem; font-weight: 800; color: var(--green-d); }

.fin-divider { height: 1px; background: var(--border); margin: 8px 0; }

.fin-row.highlight {
  background: var(--green-l);
  border: 1px solid #6EE7B7;
}
.fin-row.credit { }

/* ─── CHART ─────────────────────────────────────────────── */
.chart-wrap {
  position: relative;
  height: 280px;
}
.chart-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ─── ROOF CARD ─────────────────────────────────────────── */
.roof-best {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.roof-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-d));
  color: var(--dark);
  font-size: .85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245,158,11,.35);
}

.roof-best-label { font-weight: 700; font-size: 1rem; }
.roof-best-kwh   { font-size: .85rem; color: var(--muted); margin-top: 3px; }

.roof-bars { display: flex; flex-direction: column; gap: 8px; }

.roof-bar-row {
  display: grid;
  grid-template-columns: 60px 1fr 54px;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
}

.roof-bar-label { font-weight: 600; color: var(--mid); }

.roof-bar-track {
  background: var(--bg);
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
}

.roof-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--amber);
  transition: width .6s ease;
}

.roof-bar-fill.best { background: linear-gradient(90deg, var(--amber), var(--green)); }

.roof-bar-pct { text-align: right; font-weight: 600; color: var(--muted); }
.roof-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* ─── INSIGHTS CARD ──────────────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 700px) { .insights-grid { grid-template-columns: repeat(2,1fr); } }

.insight-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
}

.insight-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.insight-icon  { font-size: 1rem; }
.insight-title { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.insight-value { font-size: 1.5rem; font-weight: 800; color: var(--dark); line-height: 1.1; }
.insight-sub   { font-size: .76rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* Adoption bar */
.adoption-wrap {
  margin-bottom: 20px;
}

.adoption-label {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 6px;
}

.adoption-track {
  position: relative;
  height: 14px;
  background: var(--bg);
  border-radius: 99px;
  overflow: visible;
  border: 1px solid var(--border);
}

.adoption-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-d));
  border-radius: 99px;
  transition: width .6s ease;
  max-width: 100%;
}

.adoption-us-mark {
  position: absolute;
  top: -4px;
  left: 10%;     /* US avg ~1% out of reasonable 10% max */
  width: 2px;
  height: 22px;
  background: var(--amber-d);
}

.adoption-us-label {
  position: absolute;
  top: 24px;
  left: -20px;
  font-size: .68rem;
  color: var(--amber-d);
  white-space: nowrap;
  font-weight: 600;
}

/* Nearby tracts */
.nearby-section { }
.nearby-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.nearby-list { display: flex; flex-direction: column; gap: 6px; }

.nearby-row {
  display: grid;
  grid-template-columns: 1fr 110px 110px 100px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: .82rem;
  gap: 8px;
}

.nearby-row.header {
  font-weight: 700;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: none;
  padding-bottom: 2px;
}

.nearby-sun-bar {
  height: 6px;
  background: var(--amber);
  border-radius: 99px;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  opacity: .6;
}

.nearby-adoption-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 4px;
  vertical-align: middle;
}

/* ─── ECO CARD ──────────────────────────────────────────── */
.eco-card { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #a7f3d0; }

.eco-inner { display: flex; align-items: flex-start; gap: 20px; }
.eco-icon  { font-size: 2.6rem; flex-shrink: 0; }
.eco-card h2 { color: var(--green-d); }
.eco-card p  { color: #065f46; font-size: .95rem; }

/* ─── FINANCE HEADER ─────────────────────────────────────── */
.finance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.finance-header h2 { margin-bottom: 0; }

.cost-badge {
  font-size: .78rem;
  font-weight: 600;
  background: var(--amber-l);
  color: var(--amber-d);
  border: 1px solid #FCD34D;
  border-radius: 99px;
  padding: 4px 12px;
  white-space: nowrap;
  cursor: default;
}

/* ─── METHODOLOGY ────────────────────────────────────────── */
.methodology {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.methodology summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--mid);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.methodology summary::before {
  content: "▶";
  font-size: .7rem;
  transition: transform .2s;
  color: var(--muted);
}
.methodology[open] summary::before { transform: rotate(90deg); }
.methodology summary::-webkit-details-marker { display: none; }

.method-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.method-section h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 16px 0 8px;
}

.method-section p {
  font-size: .88rem;
  color: var(--mid);
  line-height: 1.6;
}

.method-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.method-table td {
  padding: 7px 10px;
  color: var(--mid);
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.method-table td:first-child {
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  width: 200px;
  padding-right: 20px;
}

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer {
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  padding-top: 12px;
}

/* ─── SEO CONTENT SECTION ───────────────────────────────── */
.seo-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 48px 20px;
}

.seo-inner {
  max-width: 860px;
  margin: 0 auto;
}

.seo-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}

.seo-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark2);
  margin: 28px 0 10px;
}

.seo-section p {
  font-size: .95rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 14px;
}

.seo-section a {
  color: var(--amber-d);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seo-section a:hover { color: var(--dark); }

.seo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-list li {
  font-size: .93rem;
  color: var(--mid);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.seo-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--amber-d);
  font-weight: 700;
}

.seo-list a {
  color: var(--amber-d);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin: 12px 0 20px;
  overflow-x: auto;
  display: block;
}

.seo-table thead tr {
  background: var(--dark2);
  color: var(--white);
}

.seo-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.seo-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--mid);
  white-space: nowrap;
}

.seo-table tbody tr:nth-child(even) { background: var(--bg); }
.seo-table tbody tr:hover { background: var(--amber-l); }
.seo-table td:first-child { font-weight: 600; color: var(--dark); }

/* ─── FAQ SECTION ────────────────────────────────────────── */
.faq-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 20px;
}

.faq-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--amber-d);
  flex-shrink: 0;
  width: 20px;
  transition: transform .2s;
}
.faq-item[open] summary::before { content: "−"; }

.faq-item summary h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  line-height: 1.4;
}

.faq-item p {
  padding: 0 20px 18px 50px;
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.7;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ─── FOOTER LINKS ───────────────────────────────────────── */
.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer a:hover { color: var(--dark); }

/* ─── UTILITIES ─────────────────────────────────────────── */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   MOBILE — 768px (tablet)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Finance header: badge drops below h2 */
  .finance-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .finance-header h2 { margin-bottom: 0; }

  /* Method table: first column stops being fixed-width */
  .method-table td:first-child { white-space: normal; width: auto; min-width: 110px; }

  /* Methodology wrapper: allow horizontal scroll */
  .method-table { display: block; overflow-x: auto; }

  /* SEO & FAQ sections: reduce top/bottom padding */
  .seo-section, .faq-section { padding: 36px 16px; }

}

/* ═══════════════════════════════════════════════════════════
   MOBILE — 480px (phone)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Hero */
  .hero { padding: 36px 16px 52px; }
  .hero-sub br { display: none; }        /* убираем ручной перенос строки */
  .hero-sub { font-size: .95rem; }
  .logo { font-size: .85rem; letter-spacing: .02em; }

  /* Search card */
  .search-card { padding: 16px; }
  .search-row { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  /* Preset buttons: мельче шрифт, меньше паддинг */
  .preset-btn { font-size: .78rem; padding: 5px 10px; }

  /* Params: каждый параметр на всю ширину */
  .params-row { gap: 12px; }
  .param-label { min-width: 100%; }

  /* Cards: меньше внутренний отступ */
  .card { padding: 16px; }
  .card h2 { font-size: 1.05rem; margin-bottom: 14px; }

  /* Stats: уменьшаем крупные цифры */
  .stat-value { font-size: 1.5rem; }
  .stat-card { padding: 14px 10px; }

  /* System grid: уменьшаем цифры */
  .sys-value { font-size: 1.6rem; }
  .sys-item { padding: 14px 8px; }

  /* Finance rows: длинные лейблы переносятся */
  .fin-row { flex-wrap: wrap; gap: 4px; }
  .fin-label { font-size: .85rem; flex: 1 1 60%; }
  .fin-value { font-size: .95rem; }
  .cost-badge { font-size: .72rem; padding: 3px 10px; }

  /* Chart: ниже высота */
  .chart-wrap { height: 200px; }

  /* Roof bars: подпись шире */
  .roof-bar-row { grid-template-columns: 46px 1fr 70px; }
  .roof-bar-pct { font-size: .78rem; }

  /* Insights grid: 2 cols → уменьшаем значения */
  .insight-value { font-size: 1.25rem; }
  .insight-item { padding: 10px; }

  /* Eco card */
  .eco-icon { font-size: 2rem; }
  .eco-inner { gap: 12px; }

  /* FAQ: уменьшаем левый отступ в ответе */
  .faq-item p { padding-left: 20px; }
  .faq-item summary { padding: 14px 14px; }
  .faq-item summary h3 { font-size: .88rem; }

  /* SEO table: ещё явнее разрешаем горизонтальный скролл */
  .seo-table { font-size: .78rem; }
  .seo-table th, .seo-table td { padding: 7px 8px; }

  /* SEO text */
  .seo-section h2, .faq-section h2 { font-size: 1.2rem; }
  .seo-section h3 { font-size: 1rem; margin: 20px 0 8px; }
  .seo-section p, .seo-list li { font-size: .88rem; }

  /* Methodology */
  .methodology summary { padding: 14px 16px; font-size: .88rem; }
  .method-body { padding: 0 16px 16px; }
  .method-table td { font-size: .8rem; padding: 6px 8px; }

  /* Footer */
  .site-footer { font-size: .72rem; padding: 16px 16px 24px; line-height: 1.8; }

}
