﻿:root {
  --bg: #ffffff;
  --text: #1a1a2e;
  --muted: #5d6678;
  --line: #d8dee9;
  --soft: #f8fafc;
  --blue: #0d5c4a;
  --blue-dark: #083c33;
  --accent: #7c2d3e;
  --green: #059669;
  --green-soft: #e8f7f0;
  --warn: #fff7ed;
  --radius: 8px;
  --shadow: 0 16px 45px rgba(26, 26, 46, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--blue);
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 650;
}

.nav-links > a { color: var(--text); }

.dropdown { position: relative; }
.dropdown > button {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 34px;
  width: 280px;
  padding: 8px;
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: grid;
}

.dropdown-menu a {
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
}

.dropdown-menu a:hover {
  background: var(--soft);
  text-decoration: none;
}

main { min-height: 70vh; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding: 70px 0 42px;
  background:
    linear-gradient(135deg, rgba(13, 92, 74, .12), rgba(124, 45, 62, .08)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: 0; }
h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 760;
}
h1 { margin: 10px 0 16px; font-size: clamp(2rem, 6vw, 4rem); }
h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 4vw, 2.45rem); }
h3 { margin: 0 0 10px; font-size: 1.12rem; }

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.14rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  font-weight: 750;
}

.button.secondary {
  background: #fff;
  color: var(--blue);
}

.button:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }

.hero-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.metric:last-child { border-bottom: 0; }
.metric span { color: var(--muted); }
.metric strong { color: var(--green); font-size: 1.18rem; }

.quick-tools {
  display: grid;
  gap: 12px;
}

.quick-tools a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-weight: 700;
}

.quick-tools a:hover {
  border-color: var(--blue);
  background: var(--soft);
  text-decoration: none;
}

.section { padding: 48px 0; }
.section.soft { background: var(--soft); border-block: 1px solid var(--line); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card p { color: var(--muted); margin: 0 0 18px; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: grid;
  gap: 12px;
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.article-card time,
.tag {
  color: var(--green);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.article-card h3 { margin: 0; }
.article-card p { margin: 0; color: var(--muted); }

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 28px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  position: absolute;
  left: 4px;
  top: .55em;
}

.calculator-page {
  padding: 42px 0 54px;
  background: var(--soft);
}

.page-hero {
  padding: 48px 0 24px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.article-page { padding: 42px 0 58px; }

.article-body {
  max-width: 780px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.article-body p,
.article-body li {
  color: #354052;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(290px, 2fr);
  gap: 24px;
  align-items: start;
}

.tool-panel,
.result-panel,
.content-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 28px rgba(26, 26, 46, .05);
  min-width: 0;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 700;
}

input, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus, select:focus {
  outline: 3px solid rgba(37, 99, 235, .18);
  border-color: var(--blue);
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.result-item strong { color: var(--green); text-align: right; }

.notice {
  margin-top: 16px;
  padding: 14px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  color: #124534;
}

.warning {
  margin-top: 16px;
  padding: 14px;
  border-left: 4px solid #f59e0b;
  background: var(--warn);
  color: #653b08;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  overflow: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #fff;
}

th, td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th { background: var(--soft); font-size: .9rem; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.legal-layout {
  max-width: 820px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.legal-layout h2 { font-size: 1.45rem; margin-top: 28px; }
.legal-layout p,
.legal-layout li { color: #354052; }

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: 920px;
  margin: 0 auto;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible { display: grid; }
.cookie-banner p { margin: 0; color: var(--muted); }
.cookie-banner a { font-weight: 700; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-widget label {
  margin: 18px 0;
}

.hero-widget input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}

.widget-result {
  display: grid;
  gap: 4px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.widget-result span {
  color: var(--muted);
  font-weight: 700;
}

.widget-result strong {
  color: var(--accent);
  font-size: 1.85rem;
}

.card-featured {
  border-color: rgba(13, 92, 74, .35);
  box-shadow: 0 16px 36px rgba(13, 92, 74, .10);
}

.card-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(124, 45, 62, .10);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .9rem;
}

.breadcrumbs a {
  color: var(--blue);
  font-weight: 700;
}

.article-meta,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 18px;
}

.trust-row {
  margin-bottom: 26px;
}

.author-chip,
.updated-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: .92rem;
  font-weight: 700;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: .75rem;
  font-weight: 850;
}

.article-extra {
  margin-top: 28px;
}

.compact-table table {
  min-width: 0;
}

.compact-table th {
  width: 45%;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px 16px;
  background: var(--soft);
}

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.related-links {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.related-links h2 {
  font-size: 1.35rem;
}

.related-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 750;
}

.author-bio {
  display: flex;
  gap: 14px;
  margin: 30px 0 24px;
  padding: 18px;
  border: 1px solid rgba(13, 92, 74, .22);
  border-radius: var(--radius);
  background: rgba(13, 92, 74, .06);
}

.author-bio p {
  margin: 4px 0 0;
}

.result-primary {
  background: rgba(13, 92, 74, .07);
  border-color: rgba(13, 92, 74, .28);
}

.result-primary strong {
  color: var(--blue-dark);
  font-size: 1.15rem;
}

.comparison-table th {
  color: var(--text);
}

.comparison-body {
  max-width: 980px;
}

.comparison-intro p {
  color: #354052;
  font-size: 1.04rem;
}

.comparison-table-wrap {
  max-height: none;
}

.comparison-table {
  min-width: 920px;
}

.comparison-table th,
.comparison-table td {
  vertical-align: top;
}

.comparison-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.comparison-table thead .sticky-col {
  z-index: 2;
  background: var(--soft);
}

.comparison-table .criterion {
  color: var(--text);
  font-weight: 800;
}

.comparison-mobile-cards {
  display: none;
}

.recommended-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(124, 45, 62, .10);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.product-review-list {
  display: grid;
  gap: 16px;
}

.product-review {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-review.is-recommended,
.mobile-product-card.is-recommended {
  border-color: rgba(124, 45, 62, .35);
  background: rgba(124, 45, 62, .045);
}

.product-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.scenario-list {
  display: grid;
  gap: 12px;
}

.scenario-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.scenario-list h3 {
  margin-bottom: 6px;
}

.comparison-disclaimer {
  margin-top: 30px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: rgba(124, 45, 62, .06);
  color: #3f2630;
}

.footer-author {
  margin-top: 6px;
  color: #334155;
  font-weight: 700;
}

.contact-section {
  background: #fff;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-email {
  display: inline-flex;
  width: fit-content;
  padding: 12px 14px;
  border: 1px solid rgba(13, 92, 74, .25);
  border-radius: 7px;
  background: rgba(13, 92, 74, .06);
  color: var(--blue-dark);
  font-size: 1.08rem;
  font-weight: 850;
}

.contact-email:hover {
  background: rgba(13, 92, 74, .10);
  text-decoration: none;
}

@media (max-width: 860px) {
  .hero-grid, .calculator-shell, .cards, .article-grid, .two-column { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; justify-content: flex-start; gap: 10px 14px; }
  .dropdown-menu { left: 0; right: auto; width: min(280px, calc(100vw - 32px)); }
}

@media (max-width: 560px) {
  .hero { padding-top: 44px; }
  .container { padding: 0 16px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .nav-links { font-size: .92rem; }
  .article-body, .legal-layout { padding: 20px; }
  .author-chip, .updated-chip { border-radius: 7px; }
  .tool-panel, .result-panel, .content-panel { padding: 18px; }
  .cookie-banner { grid-template-columns: 1fr; left: 12px; right: 12px; bottom: 12px; }
  .cookie-actions .button { width: auto; }
  .comparison-table-wrap { display: none; }
  .comparison-mobile-cards {
    display: grid;
    gap: 14px;
  }
  .mobile-product-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }
  .mobile-product-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
  }
  .mobile-product-card dt {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
  }
  .mobile-product-card dd {
    margin: 0 0 8px;
    color: var(--text);
  }
}



