:root {
  --navy: #0b1f33;
  --navy-2: #143049;
  --ink: #1a2330;
  --muted: #5b6775;
  --line: #d7dee6;
  --paper: #f4f1ea;
  --white: #fff;
  --accent: #c45c26;
  --accent-2: #a34718;
  --ok: #1f7a4d;
  --bad: #b42318;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
  --max: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.brand img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.site-nav { display: flex; gap: 14px; flex: 1; flex-wrap: wrap; }
.site-nav a {
  color: #d7e2ec;
  text-decoration: none;
  font-size: 0.92rem;
}
.site-nav a.is-active,
.site-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: 0.8rem; color: #9bb0c3; }
.lang-switch span { opacity: 0.45; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: 1px solid #3a5168;
  padding: 8px 12px;
  border-radius: 8px;
}

.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #6b849b; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }

.hero {
  background: var(--navy) url("../img/hero.jpg") center / cover no-repeat;
  color: #fff;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,31,51,.92) 0%, rgba(11,31,51,.62) 58%, rgba(11,31,51,.28) 100%);
}
.hero-inner { position: relative; padding: 72px 0 80px; max-width: 720px; }
.eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #f0c3a8;
  margin: 0 0 12px;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 16px; font-weight: 650; }
.hero p { color: #d5e0ea; max-width: 58ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.section { padding: 64px 0; }
.section-alt { background: var(--paper); }
.section h2 { margin: 0 0 8px; font-size: 1.7rem; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 70ch; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0 0 14px; color: var(--muted); }
.meta { font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.product-kind { margin: 0 0 8px; font-weight: 600; color: var(--navy); }
.tools-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.tools-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.tools-nav a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tools-lead {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--muted);
  margin: 0 0 22px;
}
.doc-list { list-style: none; padding: 0; }
.doc-list li { margin: 0 0 10px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.steps article { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 1rem; }
.article-body p { margin: 0 0 12px; }
.article-body h3 { margin: 1.3em 0 0.5em; font-size: 1.15rem; }
.article-body h2 { margin: 1.3em 0 0.5em; font-size: 1.2rem; }
.article-body ul { margin: 0 0 16px; padding-left: 1.2em; }
.article-body li { margin: 0 0 8px; }
.article-hero-img { width: 100%; max-height: 280px; object-fit: cover; display: block; border-radius: 8px 8px 0 0; }
.breadcrumbs { margin: 0 0 12px; font-size: 0.88rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: 0.55; }
.breadcrumbs a { color: inherit; }

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  background: var(--navy-2);
  color: #fff;
  padding: 18px;
  border-radius: var(--radius);
}
.trust-item strong { display: block; font-size: 1.05rem; }
.trust-item span { color: #b9c7d4; font-size: 0.88rem; }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.feature-list article { border-top: 2px solid var(--accent); padding-top: 12px; }
.feature-list h3 { margin: 0 0 6px; font-size: 1rem; }

.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 48px 0;
}
.cta-band .container { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.cta-band p { color: #c5d3df; margin: 8px 0 0; }

.site-footer { background: #081624; color: #c5d3df; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid h2 { color: #fff; font-size: 1rem; }
.footer-grid a { color: #e8eef3; text-decoration: none; }
.footer-logo { height: 28px; width: auto; margin-bottom: 12px; }
.footer-copy { margin-top: 28px; border-top: 1px solid #1c3348; padding-top: 14px; font-size: 0.85rem; }

.page-hero { background: var(--navy); color: #fff; padding: 40px 0; }
.page-hero h1 { margin: 0 0 8px; }
.page-hero p { color: #c5d3df; margin: 0; max-width: 70ch; }
.page-hero a { color: #d7e2ec; }
.page-hero .meta { color: #c5d3df; margin: 0 0 8px; }

.table-wrap { overflow-x: auto; }
table.specs { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.specs th, table.specs td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
table.specs th { width: 48%; color: var(--muted); font-weight: 500; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.88rem; margin-bottom: 4px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
textarea { min-height: 110px; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
.alert-ok { background: #e8f6ee; color: var(--ok); }
.alert-err { background: #fdecea; color: var(--bad); }
.result-card { margin-top: 20px; }
.fit-ok { color: var(--ok); font-weight: 700; }
.fit-no { color: var(--bad); font-weight: 700; }
.sticky-cta {
  position: sticky;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.sticky-cta a { pointer-events: auto; box-shadow: var(--shadow); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table td, .admin-table th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .trust, .feature-list, .footer-grid, .form-grid, .cta-band .container, .steps {
    grid-template-columns: 1fr;
    display: grid;
  }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .site-nav, .header-actions { display: none; width: 100%; }
  .site-nav.is-open, .header-actions.is-open { display: flex; flex-direction: column; padding-bottom: 16px; }
  .hero-inner { padding: 40px 0; }
}
