:root {
  color-scheme: light;
  --bg: #f3f8fc;
  --bg-soft: #eaf5fb;
  --panel: #ffffff;
  --panel-tint: #f8fcff;
  --text: #17324d;
  --muted: #5f7284;
  --line: #c9dfef;
  --line-soft: #e2eef6;
  --accent: #2f91c4;
  --accent-dark: #0f6795;
  --accent-soft: #dff2fb;
  --green: #609c7c;
  --danger: #ad4a4a;
  --ok: #3f8b62;
  --shadow: 0 18px 45px rgba(56, 95, 125, .16);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(98, 169, 210, .20), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(128, 190, 168, .16), transparent 22rem),
    linear-gradient(180deg, #f7fbfe 0%, var(--bg) 62%, #eef6fb 100%);
  color: var(--text);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-dark); }
button, input, textarea { font: inherit; }
button, .button {
  border: 1px solid #247eae;
  border-radius: 999px;
  padding: .78rem 1.05rem;
  background: linear-gradient(180deg, #4ea9d4, #267cae);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  box-shadow: 0 8px 20px rgba(38, 124, 174, .18);
}
button:hover, .button:hover { filter: brightness(1.03); }
button.secondary, .button.secondary {
  background: #ffffff;
  color: var(--accent-dark);
  border: 1px solid var(--line);
  box-shadow: none;
}
.copy { white-space: nowrap; }

.hero {
  padding: 1.1rem clamp(1rem, 3vw, 3rem) 3rem;
  min-height: auto;
}
.nav {
  display: flex;
  gap: .85rem;
  align-items: center;
  justify-content: flex-end;
  margin: 0 auto 2.2rem;
  max-width: 1180px;
  flex-wrap: wrap;
}
.nav a {
  color: #426174;
  text-decoration: none;
  font-weight: 700;
  font-size: .96rem;
}
.nav .logo {
  margin-right: auto;
  color: var(--accent-dark);
  font-size: 1.12rem;
  letter-spacing: .01em;
}

.hero-grid, .two-col {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(285px, .84fr);
  gap: 1.25rem;
  align-items: stretch;
}
.card, .soft-box, .dark-box {
  background: linear-gradient(180deg, var(--panel), var(--panel-tint));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.05rem, 2.3vw, 1.8rem);
  box-shadow: var(--shadow);
}
.soft-box, .dark-box {
  background: linear-gradient(180deg, #f9fdff, #eaf6fc);
}
.main-card { min-height: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--accent-dark);
  font-size: .76rem;
  font-weight: 850;
  margin: 0 0 .45rem;
}
h1 {
  font-size: clamp(1.45rem, 2.9vw, 2.45rem);
  line-height: 1.18;
  margin: .1rem 0 .75rem;
  letter-spacing: -.015em;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.16;
  margin: .15rem 0 .85rem;
  letter-spacing: -.01em;
  font-weight: 800;
}
h3 { margin-top: 0; line-height: 1.25; }
p { margin-top: 0; }

.box-intro {
  max-width: 60rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: -.15rem 0 .95rem;
}
code {
  background: rgba(47, 145, 196, .09);
  border: 1px solid rgba(47, 145, 196, .16);
  border-radius: .4rem;
  padding: .02rem .28rem;
  font-size: .94em;
}

.ip-row {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  align-items: center;
  margin: .35rem 0 1rem;
}
.ip-value {
  flex: 0 0 100%;
  max-width: 100%;
  font-size: clamp(2.15rem, 4.9vw, 4.35rem);
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  word-break: normal;
  color: #064f78;
  text-shadow: 0 1px 0 #fff;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem .95rem;
  margin: 1.25rem 0;
}
.facts.compact { grid-template-columns: 1fr; }
.facts div {
  border-top: 1px solid var(--line-soft);
  padding-top: .58rem;
  min-width: 0;
}
dt {
  color: var(--muted);
  font-size: .83rem;
  font-weight: 650;
}
dd {
  margin: .08rem 0 0;
  font-weight: 750;
  overflow-wrap: anywhere;
  letter-spacing: .005em;
}
.actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.small {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}
.notice {
  max-width: 1180px;
  margin: .8rem auto;
  padding: 1rem 1.2rem;
  border-radius: 16px;
}
.notice.ok { background: #e9f8ef; border: 1px solid #a8daba; color: #21573a; }
.notice.error { background: #fff0f0; border: 1px solid #e6b5b5; color: #8d2f2f; }
meter { width: 100%; height: .8rem; }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.7rem clamp(1rem, 3vw, 0rem);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.content-grid a {
  text-decoration: none;
  font-weight: 850;
  min-height: 110px;
  display: flex;
  align-items: end;
}
.inline-form { display: flex; gap: .7rem; margin-top: .5rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: .85rem .95rem;
  outline-color: var(--accent);
}
textarea { min-height: 170px; resize: vertical; }
label { display: grid; gap: .35rem; color: var(--muted); font-weight: 700; }
.contact-form { display: grid; gap: 1rem; }
.terminal {
  position: relative;
  background: #f8fbfe;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 1.1rem;
  overflow: auto;
  color: #1c3c58;
}
.terminal-copy {
  position: absolute;
  right: .8rem;
  top: .8rem;
  font-size: .85rem;
  padding: .55rem .8rem;
}
pre {
  margin: 0;
  color: #17324d;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .93rem;
  line-height: 1.55;
}
.footer { text-align: center; padding: 2rem; color: var(--muted); }

.result-card h3 { margin-bottom: .8rem; color: #123b59; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  padding: .75rem .55rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.data-table th { color: var(--muted); width: 34%; font-weight: 800; }

.support-report {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-soft);
}
.support-report h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  margin-bottom: .45rem;
}
.support-report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
}
.report-actions { margin-top: .2rem; }
.report-box { min-height: 320px; }
.compact-report {
  min-height: 0;
  max-height: 220px;
  margin-top: .8rem;
  box-shadow: none;
}
.geo-map {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #eaf5fb;
  margin: 1rem 0 .55rem;
  min-height: 245px;
}
.geo-map iframe {
  width: 100%;
  height: 245px;
  display: block;
  border: 0;
}
.geo-map-wide {
  min-height: 360px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.geo-map-wide iframe {
  height: 360px;
}
.map-link {
  margin: .25rem 0 .7rem;
  font-size: .95rem;
}
.badge-frame {
  border: 0;
  max-width: 100%;
  border-radius: 16px;
  background: #f6fbff;
  display: block;
  margin-bottom: 1rem;
}
.embed-code { margin-top: 1rem; box-shadow: none; }
strong { color: #0f5278; }

@media (max-width: 860px) {
  .nav { margin-bottom: 1.4rem; }
  .nav .logo { width: 100%; margin-right: 0; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .tool-grid, .content-grid { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .ip-value { font-size: clamp(2rem, 11vw, 3.25rem); }
  .geo-map-wide, .geo-map-wide iframe { min-height: 275px; height: 275px; }
}

/* Reklamní plochy: oddělené od navigace a akčních tlačítek kvůli omylovým klikům. */
.ad-wrap {
  max-width: 1180px;
  margin: 1.2rem auto 2.1rem;
  padding: .75rem clamp(1rem, 3vw, 0rem);
  clear: both;
}
.ad-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .4rem;
  text-align: center;
}
.adsbygoogle {
  background: #f7fbfe;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  min-height: 90px;
  overflow: hidden;
}
.ad-top .adsbygoogle, .ad-mid .adsbygoogle, .ad-bottom .adsbygoogle {
  min-height: 90px;
}
@media (max-width: 860px) {
  .ad-wrap { margin: .7rem auto 1.45rem; }
  .adsbygoogle { min-height: 100px; }
}


/* OpenStreetMap bez iframe: skládá se z běžných mapových dlaždic, aby ho neblokovalo X-Frame-Options/CSP iframe omezení. */
.osm-tile-map {
  position: relative;
  overflow: hidden;
  background: #dbeaf2;
}
.osm-tile-map .osm-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.osm-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #d64141;
  border: 3px solid #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.35);
  z-index: 4;
}
.osm-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid rgba(214, 65, 65, .42);
}
.osm-attribution {
  position: absolute;
  right: .45rem;
  bottom: .35rem;
  z-index: 5;
  padding: .15rem .4rem;
  border-radius: .35rem;
  background: rgba(255,255,255,.9);
  color: #31566d;
  font-size: .76rem;
  line-height: 1.3;
  text-decoration: none;
}
.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  z-index: 1;
}

.map-tile-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  background: rgba(238, 248, 252, .72);
}

/* V10: IP adresa zůstává dominantní, ale neláme běžnou IPv4 na dva řádky. */
.ip-value {
  font-size: clamp(2.15rem, 5.2vw, 4.35rem);
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 860px) {
  .ip-value { font-size: clamp(2rem, 10vw, 3.25rem); overflow-wrap: anywhere; }
}

.premium-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: .4rem 0 0;
  padding: .42rem .72rem;
  border-radius: 999px;
  background: #e7f7ef;
  border: 1px solid #a7dbc0;
  color: #1f6844;
  font-weight: 800;
}
.premium-section {
  align-items: stretch;
}
.premium-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.premium-benefits article {
  padding: .9rem;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}
.premium-benefits strong { display: block; margin-bottom: .2rem; }
.premium-benefits span { color: var(--muted); font-size: .94rem; }
.premium-card .price { font-size: 1.45rem; color: #0f5278; }
.premium-form { margin-top: 1rem; }

.support-section { padding-top: 1.5rem; }
.support-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 900;
  font-size: 1.35rem;
}
.support-details summary::-webkit-details-marker { display: none; }
.support-details summary::after {
  content: '+';
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  flex: 0 0 auto;
}
.support-details[open] summary::after { content: '−'; }
.support-details summary small {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: .15rem;
}
.support-body {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.inside-details { max-width: none; padding: 0; }
.support-details .contact-form { box-shadow: none; border: 0; padding: 0; background: transparent; }

/* Mapa přes CARTO/OSM dlaždice. CSP musí povolit img-src na basemaps.cartocdn.com. */
.geo-map-wide { min-height: 360px; }
.osm-tile-map { background: #dbeaf2; }
.map-tile-error { font-weight: 750; }
@media (max-width: 860px) {
  .premium-benefits { grid-template-columns: 1fr; }
  .support-details summary { align-items: flex-start; }
  .support-details summary small { max-width: 100%; }
}

/* V11 premium platba převodem */
.premium-order { margin-top: 1rem; }
.payment-info {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #f7fcff;
}
.payment-qr {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  margin: 1rem auto .25rem;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: #fff;
}
.form-error {
  margin: .6rem 0 0;
  color: var(--danger);
  font-weight: 800;
}
.soft-line {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 1.25rem 0;
}
.premium-card h3 + p { margin-top: .2rem; }

/* V19: IPv6 je dlouhá – v hlavním boxu ji zobrazujeme menším technickým písmem. */
.ip-value.ip-value-v6 {
  font-size: clamp(1.15rem, 2.45vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: .005em;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
}
@media (max-width: 860px) {
  .ip-value.ip-value-v6 {
    font-size: clamp(1rem, 5.4vw, 1.75rem);
  }
}

/* V20: WebRTC leak test jako sdílitelný kontrolní prvek. */
.webrtc-section {
  align-items: stretch;
}
.webrtc-card {
  background: linear-gradient(180deg, #ffffff, #f7fcff);
}
.leak-list {
  display: grid;
  gap: .55rem;
  padding: 0;
  margin: 1rem 0;
  list-style: none;
}
.leak-list li {
  display: grid;
  gap: .15rem;
  padding: .75rem .85rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}
.leak-list strong {
  color: #0b5278;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .95rem;
}
.leak-list span {
  color: var(--muted);
  font-size: .9rem;
}
.muted { color: var(--muted); }

/* V22: report field toggles, pricing, DNSBL, VPN compare, honeypot */
.report-fields {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  margin: 1rem 0;
  padding: .85rem;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.65);
}
.report-fields label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--muted);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.pricing-card {
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255,255,255,.76);
}
.pricing-card.featured {
  box-shadow: 0 18px 40px rgba(15, 88, 130, .12);
  border-color: rgba(47, 150, 199, .35);
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .78rem;
  font-weight: 850;
  color: #075985;
  background: #e0f2fe;
  margin-bottom: .55rem;
}
.price {
  font-size: 1.35rem;
  margin: .45rem 0;
}
.price small, .price-sub {
  color: var(--muted);
}
.compare-rows, .dnsbl-table {
  display: grid;
  gap: .6rem;
  margin-top: 1rem;
}
.compare-rows div, .dnsbl-table div {
  display: grid;
  gap: .25rem;
  padding: .75rem .85rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.compare-rows span, .dnsbl-table span {
  color: var(--muted);
}
.dnsbl-table .listed {
  border-color: rgba(180, 35, 24, .35);
  background: #fff5f5;
}
.dnsbl-table .listed span {
  color: var(--danger);
  font-weight: 850;
}
.dnsbl-table .ok span {
  color: #166534;
  font-weight: 850;
}
@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Samostatná stránka výsledku kontroly IP */
.topbar {
  display: flex;
  gap: .85rem;
  align-items: center;
  justify-content: flex-end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem clamp(1rem, 3vw, 3rem);
  flex-wrap: wrap;
}
.topbar a { color: #426174; text-decoration: none; font-weight: 700; }
.topbar .brand { margin-right: auto; color: var(--accent-dark); font-weight: 900; letter-spacing: .02em; }
.page-shell { max-width: 1180px; margin: 0 auto; padding: 1.2rem clamp(1rem, 3vw, 3rem) 3rem; }
.lookup-page h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; margin: .2rem 0 .8rem; }
.compact-section { margin-top: 1.4rem; }
.dnsbl-table .unknown {
  border-color: rgba(202, 138, 4, .35);
  background: #fffbeb;
}
.dnsbl-table .unknown span {
  color: #92400e;
  font-weight: 850;
}
.dnsbl-table .locked {
  border-color: rgba(0, 92, 143, .22);
  background: #f6fbff;
}
.dnsbl-table .locked span {
  color: var(--muted);
  font-weight: 800;
}
.dnsbl-table .locked a {
  color: var(--accent-dark);
  font-weight: 900;
}

.dnsbl-form { margin-top: 1rem; display: grid; gap: .55rem; max-width: 620px; }
.dnsbl-form .inline-form { align-items: stretch; }
.dnsbl-form .inline-form input { min-width: 0; }
.dnsbl-form .inline-form button { white-space: nowrap; }
.dnsbl-actions { margin-top: 1rem; }
@media (max-width: 720px) {
  .dnsbl-form .inline-form { flex-direction: column; }
  .dnsbl-form .inline-form button { width: 100%; }
}

/* V34: lookup stránka – formuláře vlevo pod sebou, jeden výsledkový box vpravo. */
.lookup-page-shell {
  max-width: 1280px;
}
.lookup-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
  gap: 1.25rem;
  align-items: start;
}
.lookup-tools h1 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.08;
  margin: .2rem 0 .8rem;
}
.tool-stack {
  display: grid;
  gap: .9rem;
  margin-top: 1rem;
}
.tool-card {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 36px rgba(15, 88, 130, .06);
}
.tool-card h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin: 0 0 .35rem;
}
.tool-card p {
  margin: .2rem 0 .85rem;
}
.lookup-result-panel {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0;
}
.result-block h2 {
  margin-top: 0;
}
.result-block-dnsbl {
  padding-bottom: .25rem;
}
.lookup-ip-line strong {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--accent-dark);
}
@media (max-width: 980px) {
  .lookup-layout {
    grid-template-columns: 1fr;
  }
  .lookup-result-panel {
    position: static;
  }
}
.related-tools {
  margin: 3.5rem auto 1.5rem;
  padding: 0 1rem;
}

.related-tools-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem;
  border: 1px solid rgba(120, 130, 150, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.94));
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

.related-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.related-tools h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
  color: #1e293b;
}

.related-intro {
  max-width: 820px;
  margin: 0.75rem 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.related-card {
  display: block;
  min-height: 130px;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.related-card:hover,
.related-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  outline: none;
}

.related-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
  line-height: 1.25;
  color: #0f172a;
}

.related-card span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #475569;
}

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

  .related-tools-inner {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .related-card {
    min-height: auto;
  }
}
