:root {
  --bg: #f4f6f8;
  --card: #fff;
  --ink: #132033;
  --muted: #5a6978;
  --line: #dfe5eb;
  --brand: #0b7a62;
  --brand-ink: #065445;
  --brand-soft: #e6f5f0;
  --warn: #7a4e00;
  --warn-bg: #fff6e5;
  --ad-bg: #eef1f4;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(19, 32, 51, 0.06);
  --nav-h: 64px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-ink); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--brand);
  color: #fff;
  padding: .5rem .8rem;
  z-index: 80;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1120px, calc(100% - 1.6rem)); margin-inline: auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -.03em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-size: .95rem;
}
.menu { display: flex; align-items: center; gap: 1.15rem; }
.menu a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--brand-ink); }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); }

.hero {
  padding: 2.4rem 0 1.4rem;
}
.hero h1, h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; letter-spacing: -.03em; margin: 0 0 .8rem; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 46rem; margin: 0 0 1.2rem; }
.crumbs { font-size: .86rem; color: var(--muted); margin: 1.1rem 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 3rem;
}
.layout.single { grid-template-columns: 1fr; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem;
}
.tool { margin-bottom: 1.2rem; }
.tool h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.fields { display: grid; gap: .85rem; }
.fields.two { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: .35rem; font-weight: 650; font-size: .92rem; }
input[type="text"], input[type="number"], input[type="date"], input[type="email"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem .8rem;
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.modes { display: flex; flex-wrap: wrap; gap: .4rem; }
.modes button, .btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .45rem .85rem;
  cursor: pointer;
  font-weight: 650;
}
.modes button[aria-pressed="true"], .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary { display: inline-flex; text-decoration: none; }
.results {
  margin-top: 1rem;
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 1rem;
  min-height: 8.5rem;
}
.results dl { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin: 0; }
.results dt { color: var(--muted); }
.results dd { margin: 0; font-weight: 750; text-align: right; }
.results .big { grid-column: 1 / -1; font-size: 1.35rem; color: var(--brand-ink); text-align: left; margin-bottom: .3rem; }
.note, .disclaimer {
  font-size: .9rem;
  color: var(--muted);
  background: var(--warn-bg);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin: 1rem 0;
}
.disclaimer { border-left: 3px solid #e0b44d; }

.content h2 { font-size: 1.35rem; margin: 1.8rem 0 .7rem; letter-spacing: -.02em; }
.content h3 { font-size: 1.08rem; margin: 1.2rem 0 .45rem; }
.content p, .content li { color: #243140; }
.content ul, .content ol { padding-left: 1.2rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .55rem .65rem; text-align: left; }
th { background: #f3f6f8; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; background: #fff; margin: .55rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
.tool-card, .post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow);
}
.tool-card:hover, .post-card:hover { border-color: #b7d8ce; }
.tool-card h2, .post-card h2, .tool-card h3, .post-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.tool-card p, .post-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.kicker { color: var(--brand); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .35rem; }

.ad-slot {
  background: var(--ad-bg);
  border: 1px dashed #c9d2da;
  border-radius: 12px;
  color: #4a5560;
  display: grid;
  place-items: center;
  font-size: .8rem;
  min-height: 90px;
  margin: .9rem 0;
}
.ad-slot--side { min-height: 250px; position: sticky; top: calc(var(--nav-h) + 1rem); }
.ad-slot--article { min-height: 120px; }

.related { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.related a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .8rem;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 650;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: .92rem;
}
.footer-inner { display: grid; gap: .8rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--brand-ink); }

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.cookie p { margin: 0 0 .8rem; font-size: .92rem; color: var(--muted); }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .ad-slot--side { position: static; min-height: 100px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .fields.two { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
    padding: 1rem 1.2rem 1.2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  body.nav-open .menu { display: flex; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}
