:root {
  --bg: #f4f6f4;
  --paper: #ffffff;
  --paper-soft: #f9faf8;
  --ink: #16201d;
  --muted: #5e6b66;
  --line: #d9dfdb;
  --line-strong: #b9c3bd;
  --accent: #135d73;
  --accent-dark: #0d4353;
  --accent-soft: #e4f0f2;
  --green: #26734d;
  --warning: #8a5b00;
  --shadow: 0 16px 42px rgba(24, 33, 30, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(19, 93, 115, 0.35);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
}

.nav-main,
.language-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.nav-main {
  justify-content: center;
}

.nav-main a,
.language-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
}

.nav-main a:hover,
.language-nav a:hover,
.language-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 62px;
}

.hero-main {
  max-width: 820px;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

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

.hero-panel {
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 12px;
}

.metric {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 16px 10px;
}

.metric:last-child {
  border-bottom: 0;
}

.metric strong {
  color: var(--accent-dark);
  font-size: 34px;
  line-height: 1;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 24px;
}

.section-muted {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ecefed;
}

.section-muted > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2,
.contact-band h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0;
}

.section-copy {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--accent-dark);
}

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

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

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

.category-panel,
.article-card,
.product-card,
.standards-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.category-panel {
  padding: 20px;
}

.category-panel h3,
.article-card h3,
.product-body h3,
.standards-grid h3 {
  margin: 0;
  letter-spacing: 0;
}

.category-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.category-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.category-link:hover {
  border-color: var(--line-strong);
  background: var(--paper-soft);
}

.category-link span {
  font-weight: 800;
}

.category-link small {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
}

.category-link strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--accent);
  font-size: 24px;
}

.article-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 18px;
}

.article-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.25;
}

.article-card p:not(.category) {
  margin: 0 0 16px;
  color: var(--muted);
}

.article-card a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 800;
}

.product-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(24, 33, 30, 0.04);
}

.product-visual {
  display: grid;
  min-height: 92px;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 30px;
  font-weight: 900;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-body h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.24;
}

.category {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary,
.meta-line {
  color: var(--muted);
}

.summary {
  margin: 0 0 16px;
}

.meta-line {
  margin: 0 0 12px;
}

.features {
  margin: 0 0 18px;
  padding-left: 18px;
}

[dir="rtl"] .features,
[dir="rtl"] .article-body ul,
[dir="rtl"] .article-extra ul,
[dir="rtl"] .source-box ul {
  padding-right: 18px;
  padding-left: 0;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.price {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 16px;
}

.button.secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--accent-dark);
}

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

.button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.content-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 34px;
}

.article-shell {
  max-width: 920px;
}

.content-detail h2 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.lede {
  max-width: 780px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 20px;
}

.article-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 860px;
  margin: 24px 0;
}

.article-facts span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--muted);
  padding: 12px;
}

.article-facts strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.article-body,
.article-extra,
.source-box {
  max-width: 780px;
}

.article-body p {
  margin: 0 0 18px;
}

.article-extra {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.article-extra h3,
.source-box h3 {
  margin: 0 0 12px;
}

.recommendation-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 18px 20px;
}

.recommendation-box ul,
.pros-cons ul,
.source-box ul {
  margin-bottom: 0;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin-top: 28px;
}

.pros-cons > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 18px;
}

.comparison-table-wrap {
  max-width: 100%;
  margin-top: 30px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 14px;
}

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

[dir="rtl"] .comparison-table th,
[dir="rtl"] .comparison-table td {
  text-align: right;
}

.comparison-table th {
  background: var(--paper-soft);
  font-weight: 900;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.article-extra details {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.article-extra summary {
  cursor: pointer;
  font-weight: 900;
}

.editorial-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 18px;
}

.editorial-note h3:not(:first-child) {
  margin-top: 18px;
}

.editorial-note p {
  margin: 0;
  color: var(--muted);
}

.source-box {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.source-box a {
  color: var(--accent);
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  padding: 20px;
}

.empty-state strong {
  display: block;
  color: var(--ink);
}

.empty-state a {
  color: var(--accent);
  font-weight: 700;
}

.language-notice {
  max-width: 780px;
  margin-bottom: 18px;
  border: 1px solid #e6c36f;
  border-radius: 8px;
  background: #fff8e1;
  color: var(--warning);
  padding: 12px 14px;
}

.standards-section {
  padding-top: 34px;
}

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

.standards-grid article {
  padding: 20px;
}

.standards-grid h3 {
  font-size: 18px;
}

.standards-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto 58px;
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-band p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 24px 44px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

[dir="rtl"] .nav,
[dir="rtl"] .hero,
[dir="rtl"] .section-heading,
[dir="rtl"] .price-row,
[dir="rtl"] .contact-band {
  direction: rtl;
}

[dir="rtl"] .article-card,
[dir="rtl"] .product-card,
[dir="rtl"] .category-panel,
[dir="rtl"] .content-detail,
[dir="rtl"] .standards-grid article {
  text-align: right;
}

@media (max-width: 1020px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .nav-main {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    align-self: stretch;
  }

  .product-grid,
  .article-grid,
  .standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav,
  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .section-heading,
  .contact-band {
    align-items: stretch;
    flex-direction: column;
  }

  .product-grid,
  .article-grid,
  .category-board,
  .standards-grid,
  .pros-cons,
  .article-facts {
    grid-template-columns: 1fr;
  }

  .content-detail {
    padding: 22px 16px;
  }

  .content-detail h2 {
    font-size: 32px;
  }

  .hero-copy,
  .lede {
    font-size: 18px;
  }

  .price-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
