:root {
  color-scheme: light dark;
  --bg: #f4f7f5;
  --surface: #fff;
  --surface-soft: #edf5f1;
  --ink: #172620;
  --muted: #60716a;
  --line: #dce6e0;
  --accent: #087a5b;
  --accent-strong: #05674d;
  --accent-soft: #e5f3ec;
  --warning: #865b0a;
  --shadow: 0 14px 38px rgb(21 49 38 / 7%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101815;
    --surface: #18221d;
    --surface-soft: #1d2a23;
    --ink: #ecf3ee;
    --muted: #a4b5aa;
    --line: #304138;
    --accent: #54c59b;
    --accent-strong: #74d7b1;
    --accent-soft: #21392e;
    --warning: #e1b761;
    --shadow: 0 14px 38px rgb(0 0 0 / 20%);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--accent-strong);
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

header {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: 0 6px 16px rgb(8 122 91 / 22%);
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.08em;
}

nav:not(.crumbs) {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
}
nav:not(.crumbs) a,
nav:not(.crumbs) button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 8px 13px;
  font:
    600 0.9rem/1.2 system-ui,
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
nav:not(.crumbs) a:hover,
nav:not(.crumbs) button:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
main {
  width: min(100% - 32px, 1152px);
  margin: 0 auto;
  padding: 24px 0 40px;
}
[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}
h2 {
  margin: 28px 0 14px;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}
h3 {
  margin: 0 0 7px;
  font-size: 1.08rem;
}
p {
  margin: 0 0 14px;
}
.hero {
  position: relative;
  margin: 4px 0 30px;
  padding: clamp(24px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 95% 2%, rgb(8 122 91 / 14%), transparent 36%),
    linear-gradient(135deg, var(--accent-soft), var(--surface) 72%);
  box-shadow: var(--shadow);
}
.hero h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 5.2vw, 3.45rem);
  line-height: 1.08;
}
.hero p {
  max-width: 66ch;
  color: var(--muted);
}
.hero input[type="search"] {
  width: min(100%, 760px);
  margin-top: 10px;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgb(21 49 38 / 6%);
  font-size: 1.04rem;
}
.hero .trust {
  margin: 15px 0 0;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
}
.card {
  margin: 0 0 20px;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}
label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
textarea {
  min-height: 150px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 20%, transparent);
  outline-offset: 1px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 14px;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 7px 18px rgb(8 122 91 / 18%);
}
.btn.alt {
  border-color: var(--line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.btn:disabled {
  transform: none;
  opacity: 0.58;
  cursor: wait;
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr));
  gap: 12px;
  margin: 12px 0 22px;
}
.tool {
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 7px rgb(21 49 38 / 3%);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.tool:hover,
.tool[aria-pressed="true"] {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: 0 9px 22px rgb(21 49 38 / 8%);
}
.tool b {
  display: block;
  font-size: 0.97rem;
  font-weight: 720;
}
.tool small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 450;
  line-height: 1.4;
}
.drop {
  padding: clamp(18px, 4vw, 30px);
  border: 2px dashed color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease;
}
.drop:hover,
.drop.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.res {
  overflow-wrap: anywhere;
}
.res a {
  display: inline-block;
  margin: 8px 10px 0 0;
  font-weight: 650;
  text-decoration: none;
}
.note {
  color: var(--muted);
  font-size: 0.9rem;
}
.warn,
.banner {
  color: var(--warning);
}
.banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--warning) 8%, var(--surface));
  font-size: 0.92rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    color 140ms ease,
    background 140ms ease;
}
.chips a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.chips.big a {
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 650;
}
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 12px;
  margin: 14px 0 24px;
}
.cat {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.cat:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.cat .ico {
  margin-bottom: 4px;
  font-size: 1.35rem;
}
.cat small {
  color: var(--muted);
}
.fcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}
.fcats a {
  font-size: 0.85rem;
}
.crumbs {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}
.crumbs a {
  color: var(--accent-strong);
}
.big {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1.8rem;
  font-weight: 800;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
tr.net td {
  border-bottom: 0;
  color: var(--accent-strong);
  font-size: 1.08rem;
  font-weight: 750;
}
details {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  font-weight: 680;
  cursor: pointer;
}
article h2 {
  margin-top: 26px;
}
article p,
article li {
  max-width: 76ch;
}
article img,
img {
  max-width: 100%;
  height: auto;
}
.grp {
  margin-bottom: 10px;
}
.ad-slot {
  width: min(100%, 970px);
  min-height: 90px;
  margin: 24px auto;
  text-align: center;
}
.ad-slot[data-active="true"] {
  display: block;
}
.ad-slot .adsbygoogle {
  display: block;
  min-height: 90px;
}
footer {
  width: min(100% - 32px, 1152px);
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
footer a {
  color: var(--accent-strong);
}

@media (max-width: 640px) {
  header {
    padding: 18px 16px 8px;
  }
  nav:not(.crumbs) {
    gap: 4px;
    padding: 8px 12px;
  }
  nav:not(.crumbs) a,
  nav:not(.crumbs) button {
    padding: 8px 11px;
    font-size: 0.84rem;
  }
  main {
    width: min(100% - 24px, 1152px);
    padding-top: 18px;
  }
  .hero {
    border-radius: 18px;
  }
  .tools {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
    gap: 9px;
  }
  .tool {
    min-height: 78px;
    padding: 13px;
  }
  footer {
    width: min(100% - 24px, 1152px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
