* {
  box-sizing: border-box;
}

:root {
  --ink: #172033;
  --muted: #647083;
  --line: #d9e0e8;
  --paper: #ffffff;
  --soft: #f4f7f5;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --gold: #f6c453;
  --danger: #b42318;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

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

.link-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 24px;
  align-items: stretch;
  padding: 54px 28px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  min-height: 330px;
  display: grid;
  align-content: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 26px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  width: fit-content;
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(15, 118, 110, .16), rgba(246, 196, 83, .22)),
    #fff;
}

.mini-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

.mini-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notice,
.section,
.answer-summary,
.document,
.app-shell,
.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.notice {
  margin-top: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #425466;
  font-size: 13px;
}

.answer-summary {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.answer-summary h2 {
  margin-bottom: 0;
}

.answer-summary p {
  max-width: 940px;
  margin-bottom: 0;
  color: #425466;
}

.summary-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: #425466;
  font-size: 14px;
}

.summary-list li::marker {
  color: var(--accent);
}

.section {
  padding-top: 44px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.filters button.active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

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

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.product-image.placeholder {
  display: grid;
  place-items: center;
  color: #315a54;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .13), rgba(246, 196, 83, .2)),
    #f8fafc;
  font-size: 13px;
  font-weight: 850;
}

.product-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.product-body p {
  color: var(--muted);
  font-size: 14px;
}

.fit,
.caution {
  margin-bottom: 0;
}

.fit strong,
.caution strong {
  color: var(--ink);
}

.point-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #425466;
  font-size: 13px;
}

.point-list li::marker {
  color: var(--accent);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.product-meta span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

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

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.guide-grid article {
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.guide-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.guide-grid p,
.about-grid p,
.faq p {
  color: var(--muted);
  font-size: 14px;
}

.comparison-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: #425466;
  background: #f8fafc;
  font-size: 12px;
}

.about-grid article,
.auth-panel,
.dashboard,
.editor,
.table-wrap,
.document {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.about-grid article {
  padding: 18px;
}

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

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 850;
}

.faq details p {
  margin: 0;
  padding: 0 16px 16px;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 34px 28px;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  text-decoration: none;
}

.app-shell,
.admin-shell {
  padding-top: 34px;
  padding-bottom: 42px;
}

.auth-panel {
  max-width: 620px;
  padding: 28px;
}

.hint {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.pill.ok {
  color: #0f5132;
  border-color: #badbcc;
  background: #f0fff7;
}

.editor {
  padding: 18px;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #425466;
  font-size: 13px;
  font-weight: 800;
}

label.wide {
  grid-column: 1 / -1;
}

label.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input {
  min-height: 40px;
  padding: 0 10px;
}

textarea {
  padding: 10px;
  resize: vertical;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
}

td small {
  display: block;
  color: var(--muted);
}

.table-action {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.table-action.danger {
  color: var(--danger);
}

.document {
  max-width: 860px;
  margin-top: 34px;
  padding: 28px;
}

@media (max-width: 820px) {
  .site-header,
  .section-head,
  .product-meta {
    align-items: stretch;
  }

  .site-header,
  .hero,
  .section-head {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .hero-copy {
    min-height: 260px;
  }

  h1 {
    font-size: 32px;
  }

  .product-grid,
  .about-grid,
  .guide-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }
}
