/* tools.internet10k.com — simplified copy of internet10k.com design (a/s/redesign.css there).
   Palette mirrors internet10k.com data/theme.json: change both together. */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../f/inter-tight/inter-tight-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../f/inter-tight/inter-tight-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Avenir Next';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url(../f/avenir-next/avenir-next-cyr-heavy-italic.woff2) format('woff2');
}

:root {
  --bg: #1a1410;
  --bg-2: #221b15;
  --bg-deep: #0a0b0b;
  --fg: #f3ede3;
  --fg-dim: rgba(243,237,227,0.55);
  --fg-mute: rgba(243,237,227,0.35);
  --accent: #d97757;
  --accent-hi: #e88863;
  --line: rgba(243,237,227,0.10);
  --line-2: rgba(243,237,227,0.18);
  /* Check results only (tool pages): muted to sit on the dark palette */
  --ok: #8fbf7a;
  --warn: #e6b450;
  --bad: #ec6a55;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --pad: 60px;
}
@media (max-width: 900px) { :root { --pad: 24px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); color: var(--fg); font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.45; }
html { scrollbar-gutter: stable; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.r_arrow { display: inline-block; transition: transform .2s; }

/* === Header ============================================================ */
header.r_header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 22px 0; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
header.r_header._move { background: rgba(26,20,16,0.72); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%); border-bottom-color: var(--line); }
header.r_header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.r_brand { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.r_logo { font-family: 'Avenir Next', 'Inter Tight', -apple-system, sans-serif; font-style: italic; font-weight: 900; font-size: 15px; letter-spacing: 0.02em; color: var(--fg); text-transform: uppercase; }
.r_brand_sub { font-size: 13px; color: var(--fg-dim); }
.r_brand_sub::before { content: "/"; margin-right: 10px; color: var(--fg-mute); }
.r_brand_sub:hover, .r_logo:hover { color: var(--fg); }
.r_brand_sub:hover::before { color: var(--fg-mute); }
.r_nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.r_nav_link { color: var(--fg-dim); transition: color .2s; }
.r_nav_link:hover { color: var(--fg); }
.r_pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid var(--line-2); transition: background .2s, border-color .2s, color .2s; }
.r_pill:hover { background: rgba(243,237,227,0.06); border-color: rgba(243,237,227,0.4); }
.r_pill--filled { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.r_pill--filled:hover { background: #fff; color: var(--bg); }
.r_lang { font-size: 13px; letter-spacing: 0.04em; color: var(--fg-dim); padding: 6px 10px; border-radius: 999px; transition: color .2s; }
.r_lang:hover { color: var(--fg); }
@media (max-width: 768px) {
  header.r_header { padding: 14px 0; }
  .r_nav { gap: 8px; }
  .r_nav_link { display: none; }
  .r_pill { padding: 8px 14px; font-size: 12px; }
}
@media (max-width: 420px) {
  .r_brand_sub { display: none; }
  .r_pill:not(.r_pill--filled) { display: none; }
}

/* === Section primitives =============================================== */
section { padding: 100px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
@media (max-width: 900px) { section { padding: 56px 0; } }

.r_eyebrow { font-size: 12px; letter-spacing: 0.16em; color: var(--fg-dim); text-transform: uppercase; font-weight: 500; }
.r_h2 { font-size: clamp(40px, 5.5vw, 80px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; }
.r_lead { font-size: 17px; color: var(--fg-dim); max-width: 560px; }
@media (max-width: 768px) { .r_lead { font-size: 15px; } }
.r_section_head { display: grid; gap: 18px; margin-bottom: 56px; }
@media (max-width: 900px) { .r_section_head { margin-bottom: 36px; } }

/* === Hero (static glow instead of the three.js shader of the main site) === */
section.r_hero { padding-top: 180px; padding-bottom: 110px; border-top: 0; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(217,119,87,0.22), transparent 70%), radial-gradient(ellipse 50% 50% at 0% 100%, rgba(217,119,87,0.08), transparent 70%), var(--bg); }
.r_hero_top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 72px; }
.r_hero_top .r_meta { font-size: 12px; letter-spacing: 0.16em; color: var(--fg-dim); text-transform: uppercase; }
.r_hero_top .r_meta::before { content: "● "; color: var(--accent); margin-right: 4px; }
.r_hero_h1 { font-size: clamp(48px, 9vw, 120px); font-weight: 500; letter-spacing: -0.03em; line-height: 0.95; max-width: 11ch; }
.r_hero_sub { font-size: 19px; color: var(--fg-dim); line-height: 1.4; max-width: 560px; margin-top: 36px; }
@media (max-width: 900px) {
  section.r_hero { padding-top: 120px; padding-bottom: 64px; }
  .r_hero_top { margin-bottom: 48px; }
  .r_hero_sub { font-size: 17px; margin-top: 24px; }
}

/* === Tool catalog (row list in the style of the main site's service list) === */
.r_tool_list { border-top: 1px solid var(--line); }
/* On the home page the list sits inside the hero, under the subtitle */
.r_hero .r_tool_list { margin-top: 80px; }
@media (max-width: 900px) { .r_hero .r_tool_list { margin-top: 48px; } }
.r_tool_row { display: grid; grid-template-columns: 42px minmax(180px, 1.1fr) 2fr 120px 110px; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.r_tool_num { font-size: 11.5px; color: var(--fg-mute); letter-spacing: 0.1em; }
.r_tool_title { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.r_tool_descr { color: var(--fg-dim); font-size: 14px; line-height: 1.45; }
.r_tool_cat { font-size: 11px; color: var(--fg-mute); letter-spacing: 0.14em; text-transform: uppercase; }
.r_tool_status { justify-self: end; font-size: 12px; font-weight: 500; color: var(--fg-dim); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.r_tool_status--live { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.r_tool_row:not(.r_tool_row--live) .r_tool_title { color: rgba(243,237,227,0.82); }
a.r_tool_row--live:hover { background: rgba(243,237,227,0.04); }
a.r_tool_row--live:hover .r_tool_title { color: var(--accent); }
a.r_tool_row--live:hover .r_arrow { transform: translateX(4px); }
@media (max-width: 900px) {
  .r_tool_row { grid-template-columns: 28px 1fr auto; gap: 6px 12px; padding: 18px 0; align-items: start; }
  .r_tool_title, .r_tool_descr, .r_tool_cat { grid-column: 2; }
  .r_tool_title { font-size: 18px; }
  .r_tool_descr { font-size: 13px; }
  .r_tool_cat { margin-top: 4px; }
  .r_tool_num { padding-top: 5px; }
  .r_tool_status { grid-column: 3; grid-row: 1; align-self: start; }
}

/* === Final CTA ======================================================== */
section.r_final { background: var(--bg-deep); border-top: 0; }
.r_final .r_eyebrow { color: var(--fg-mute); }
.r_final_h { font-size: clamp(44px, 7vw, 104px); font-weight: 500; line-height: 0.96; letter-spacing: -0.035em; margin-top: 24px; max-width: 14ch; }
.r_final_lead { font-size: 19px; color: rgba(243,237,227,0.62); line-height: 1.5; max-width: 580px; margin-top: 28px; }
.r_final_btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 44px; }
.r_cta_btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 28px; min-height: 52px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid var(--line-2); transition: background .2s, border-color .2s, transform .2s, box-shadow .25s; }
.r_cta_btn:hover { transform: translateY(-1px); }
.r_cta_btn--primary { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
.r_cta_btn--primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); box-shadow: 0 12px 36px -8px rgba(217,119,87,0.45); }
.r_cta_btn--ghost { background: rgba(243,237,227,0.04); color: var(--fg); border-color: rgba(243,237,227,0.16); }
.r_cta_btn--ghost:hover { background: rgba(243,237,227,0.08); border-color: rgba(243,237,227,0.32); }
.r_text_link { margin-left: 12px; font-size: 15px; color: var(--fg-dim); transition: color .2s; }
.r_text_link:hover { color: var(--fg); }
@media (max-width: 900px) { .r_final_lead { font-size: 16px; } .r_text_link { margin-left: 0; padding: 8px 0; } }
@media (max-width: 480px) { .r_cta_btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .r_cta_btn:hover { transform: none; } .r_arrow { transition: none; } }

/* === Tool pages ======================================================= */
.r_sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
section.r_hero--tool { padding-top: 150px; padding-bottom: 90px; }
.r_hero--tool .r_hero_h1 { font-size: clamp(40px, 6.5vw, 88px); max-width: 16ch; }
.r_hero--tool .r_hero_sub { margin-top: 24px; }
.r_crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 40px; font-weight: 500; }
.r_crumbs a { color: var(--fg-dim); transition: color .2s; }
.r_crumbs a:hover { color: var(--fg); }
@media (max-width: 900px) { section.r_hero--tool { padding-top: 110px; padding-bottom: 56px; } .r_crumbs { margin-bottom: 28px; } }

.r_tool_card { margin-top: 44px; max-width: 880px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
@media (max-width: 600px) { .r_tool_card { padding: 20px; border-radius: 18px; margin-top: 32px; } }
.r_label { font-size: 13px; color: var(--fg-dim); font-weight: 500; }
.r_input { font: inherit; font-size: 17px; color: var(--fg); background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 18px; min-height: 52px; width: 100%; transition: border-color .2s; }
.r_input:focus { outline: none; border-color: var(--accent); }
.r_input::placeholder { color: var(--fg-mute); }
.r_input--num { width: 84px; text-align: center; padding: 10px 8px; min-height: 44px; }
.r_note { font-size: 13px; color: var(--fg-mute); line-height: 1.45; }
.r_form_error { margin-top: 14px; color: var(--bad); font-size: 15px; }
.r_icon_btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(243,237,227,0.04); color: var(--fg); transition: background .2s, border-color .2s, transform .3s; flex: none; }
.r_icon_btn:hover { background: rgba(243,237,227,0.08); border-color: rgba(243,237,227,0.32); }
.r_icon_btn:active svg { transform: rotate(-90deg); transition: transform .2s; }
.r_cta_btn.is-done { background: var(--ok); border-color: var(--ok); }
.r_cta_btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* Password generator */
.r_pw_out { display: flex; align-items: center; gap: 16px; padding: 18px 18px 18px 24px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; }
.r_pw_value { flex: 1; min-width: 0; font-family: var(--mono); font-size: clamp(18px, 2.6vw, 26px); line-height: 1.35; letter-spacing: 0.02em; word-break: break-all; user-select: all; }
.r_pw_actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 600px) { .r_pw_out { flex-direction: column; align-items: stretch; padding: 16px; } .r_pw_actions { justify-content: space-between; } .r_pw_actions .r_cta_btn { flex: 1; justify-content: center; } }
.r_meter { margin-top: 18px; height: 6px; border-radius: 999px; background: rgba(243,237,227,0.08); overflow: hidden; }
.r_meter_bar { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--bad); transition: width .25s, background .25s; }
.r_meter_bar[data-level="1"] { background: var(--warn); }
.r_meter_bar[data-level="2"], .r_meter_bar[data-level="3"] { background: var(--ok); }
.r_meter_text { margin-top: 10px; font-size: 14px; font-weight: 500; }
.r_meter_bits { color: var(--fg-mute); font-weight: 400; }
.r_pw_len { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.r_pw_len .r_label { flex: none; min-width: 52px; }
.r_range { flex: 1; min-width: 0; accent-color: var(--accent); height: 28px; }
.r_checks { border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 24px; }
.r_check { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; min-height: 32px; }
.r_check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; cursor: pointer; }
.r_check--wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .r_checks { grid-template-columns: 1fr; } }
.r_pw_more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.r_pw_more .r_note { flex: 1; min-width: 220px; }
.r_pw_list { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.r_pw_list li { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.r_pw_list code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 15px; word-break: break-all; }
.r_copy_btn { flex: none; font-size: 13px; font-weight: 500; color: var(--fg); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; min-height: 36px; transition: background .2s, border-color .2s; }
.r_copy_btn:hover { background: rgba(243,237,227,0.06); }
.r_copy_btn.is-done { color: var(--bg); background: var(--ok); border-color: var(--ok); }

/* Server check form + result */
.r_check_form .r_label { display: block; margin-bottom: 10px; }
.r_inline { display: flex; gap: 12px; }
.r_inline .r_cta_btn { flex: none; }
@media (max-width: 600px) { .r_inline { flex-direction: column; } }
.r_hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.r_check_form .r_note { margin-top: 12px; }
.r_result { margin-top: 28px; max-width: 880px; display: grid; gap: 16px; }
.r_result_head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.r_result_host { font-size: clamp(22px, 3vw, 30px); font-weight: 500; letter-spacing: -0.01em; word-break: break-all; }
.r_result_meta { font-size: 13px; color: var(--fg-mute); }
.r_result { scroll-margin-top: 96px; }
.r_again { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.r_note--stale { margin-top: 14px; color: var(--warn); font-size: 15px; }
.r_big_label { font-size: 13px; color: var(--fg-mute); margin-bottom: 4px; }
.r_rcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
.r_rcard--bad { border-color: rgba(236,106,85,0.5); }
.r_rcard--warn { border-color: rgba(230,180,80,0.45); }
@media (max-width: 600px) { .r_rcard { padding: 20px; border-radius: 16px; } }
.r_rcard_head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.r_rcard_title { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); font-weight: 500; }
.r_big { font-size: clamp(28px, 4vw, 42px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
.r_big_sub { margin-top: 6px; font-size: 16px; color: var(--fg-dim); }
.r_big_sub b { font-weight: 500; color: var(--fg); }
.r_rcard--bad .r_big_sub b { color: var(--bad); }
.r_rcard--warn .r_big_sub b { color: var(--warn); }
.r_rcard_text { font-size: 16px; color: rgba(243,237,227,0.82); line-height: 1.55; }
.r_kv { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px 24px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.r_kv dt { color: var(--fg-mute); }
.r_kv dd { overflow-wrap: anywhere; }
@media (max-width: 600px) { .r_kv { grid-template-columns: 1fr; gap: 2px; } .r_kv dd { margin-bottom: 10px; } }
.r_issues { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.r_issues li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.r_issues li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); }
.r_issues li.is-warn::before { background: var(--warn); }
.r_issues li.is-info::before { background: var(--fg-mute); }
.r_chip { flex: none; font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--fg-dim); }
.r_chip--ok { color: var(--ok); border-color: rgba(143,191,122,0.45); background: rgba(143,191,122,0.08); }
.r_chip--warn { color: var(--warn); border-color: rgba(230,180,80,0.45); background: rgba(230,180,80,0.08); }
.r_chip--bad { color: var(--bad); border-color: rgba(236,106,85,0.5); background: rgba(236,106,85,0.1); }
.r_rcard--advice .r_final_btns { margin-top: 20px; }
.r_rcard--advice .r_text_link { margin-left: 0; }

/* Result notes: levels */
.r_issues--top { margin-top: 0; }
.r_issues li.is-ok::before { background: var(--ok); }
.r_big_link { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 2px; text-underline-offset: 8px; transition: text-decoration-color .2s; }
.r_big_link:hover { text-decoration-color: var(--accent); }
.r_big_sub a, .r_kv dd a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.r_big_sub a:hover, .r_kv dd a:hover { text-decoration-color: var(--accent); }

/* DNS records */
.r_dns_group + .r_dns_group { margin-top: 24px; }
.r_dns_type { font-size: 14px; line-height: 1.45; }
.r_dns_type b { font-family: var(--mono); font-weight: 600; color: var(--accent-hi); margin-right: 8px; }
.r_dns_type span { color: var(--fg-mute); }
.r_dns_table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.r_dns_table td { padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.r_dns_val { font-family: var(--mono); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
.r_dns_val code { font: inherit; }
.r_dns_prio { width: 44px; font-family: var(--mono); font-size: 14px; color: var(--fg-dim); }
.r_dns_ttl { width: 84px; padding-left: 16px !important; text-align: right; white-space: nowrap; font-size: 13px; color: var(--fg-mute); }
.r_dns_empty { margin-top: 20px; }

/* Web archive month grid */
.r_wa_title { margin-top: 26px; }
.r_wa { display: grid; gap: 4px; margin-top: 10px; }
.r_wa_row { display: grid; grid-template-columns: 44px repeat(12, minmax(0, 1fr)); gap: 4px; align-items: center; }
.r_wa_year { font-size: 12px; color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.r_wa_cell { display: block; height: 14px; border-radius: 3px; background: rgba(243,237,227,0.06); }
.r_wa_cell--ok { background: var(--ok); }
.r_wa_cell--redir { background: rgba(230,180,80,0.6); }
.r_wa_cell--err { background: rgba(236,106,85,0.65); }
.r_wa_legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 10px; font-size: 12px; color: var(--fg-dim); }
.r_wa_legend span { display: inline-flex; align-items: center; gap: 6px; }
.r_wa_legend i { width: 14px; height: 10px; }
@media (max-width: 600px) { .r_wa_row { grid-template-columns: 36px repeat(12, minmax(0, 1fr)); gap: 3px; } .r_wa_cell { height: 12px; } }

/* Snippet preview: inputs */
.r_field + .r_field { margin-top: 18px; }
.r_field_head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.r_field .r_label { display: block; margin-bottom: 8px; }
.r_count { font-size: 12px; color: var(--fg-mute); white-space: nowrap; }
.r_count.is-warn { color: var(--warn); }
.r_textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.r_seg { display: inline-flex; margin-top: 22px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; gap: 4px; }
.r_seg label { position: relative; cursor: pointer; }
.r_seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.r_seg span { display: inline-block; padding: 8px 18px; border-radius: 999px; font-size: 14px; color: var(--fg-dim); transition: background .2s, color .2s; }
.r_seg input:checked + span { background: var(--fg); color: var(--bg); }
.r_seg input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

/* Snippet preview: emulated result cards. Fixed widths on purpose: the cut is measured against them,
   so on narrow screens the card scrolls sideways instead of shrinking. */
.r_serps { margin-top: 32px; max-width: 880px; display: grid; gap: 26px; }
.r_serp_wrap { overflow-x: auto; }
.r_serp { width: max-content; background: #fff; color: #202124; border-radius: 16px; padding: 20px 24px; font-family: Arial, Helvetica, 'Liberation Sans', sans-serif; }
.r_serp_site { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.r_serp_fav { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #f1f3f4; border: 1px solid #dadce0; color: #5f6368; font-size: 13px; font-weight: 700; }
.r_serp_site_txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.r_serp_name { font-size: 14px; color: #202124; }
.r_serp_url { font-size: 12px; color: #4d5156; max-width: 540px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r_serp_title { width: 600px; font-size: 20px; line-height: 26px; color: #1a0dab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r_serp_desc { width: 600px; margin-top: 4px; font-size: 14px; line-height: 22px; color: #4d5156; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.r_serp--yandex .r_serp_fav { border-radius: 6px; }
.r_serp--yandex .r_serp_url { color: #006000; }
.r_serp--yandex .r_serp_title { width: 560px; font-size: 18px; line-height: 24px; color: #000; font-weight: 500; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.r_serp--yandex .r_serp_desc { width: 560px; font-size: 15px; line-height: 20px; color: #333; -webkit-line-clamp: 3; }
.r_serps[data-device="mobile"] .r_serp { padding: 16px; }
.r_serps[data-device="mobile"] .r_serp_title,
.r_serps[data-device="mobile"] .r_serp_desc { width: 328px; }
.r_serps[data-device="mobile"] .r_serp_url { max-width: 280px; }
.r_serps[data-device="mobile"] .r_serp--google .r_serp_title { font-size: 18px; line-height: 24px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.r_serps[data-device="mobile"] .r_serp--google .r_serp_desc { -webkit-line-clamp: 3; }
.r_serps[data-device="mobile"] .r_serp--yandex .r_serp_title { -webkit-line-clamp: 3; }
.r_serps[data-device="mobile"] .r_serp--yandex .r_serp_desc { -webkit-line-clamp: 4; }
.r_serp_title.is-empty { color: #70757a; }
.r_serp_verdict { margin-top: 10px; font-size: 14px; color: var(--ok); }
/* Phones: give the cards the page gutter so a 360 px mobile result fits without sideways scroll */
@media (max-width: 600px) {
  .r_serps { margin-left: calc(8px - var(--pad)); margin-right: calc(8px - var(--pad)); }
  .r_serps > .r_note, .r_serp_wrap > .r_big_label, .r_serp_verdict { padding: 0 calc(var(--pad) - 8px); }
}
.r_serp_verdict.is-warn { color: var(--warn); }

/* Article + FAQ */
.r_tool_text_grid { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; }
@media (max-width: 900px) { .r_tool_text_grid { grid-template-columns: 1fr; gap: 8px; } }
.r_article { max-width: 760px; }
.r_article h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; margin-top: 52px; }
.r_article h2:first-child { margin-top: 0; }
.r_article p, .r_article li { font-size: 17px; line-height: 1.6; color: rgba(243,237,227,0.78); }
.r_article p { margin-top: 16px; }
.r_article ul { margin-top: 14px; padding-left: 22px; display: grid; gap: 8px; }
.r_article li::marker { color: var(--accent); }
.r_article a, .r_faq_a a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.r_article code, .r_faq_a code { font-family: var(--mono); font-size: .9em; background: rgba(243,237,227,0.06); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 768px) { .r_article p, .r_article li { font-size: 16px; } }
.r_faq { border-top: 1px solid var(--line); max-width: 980px; }
.r_faq details { border-bottom: 1px solid var(--line); }
.r_faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.r_faq summary::-webkit-details-marker { display: none; }
.r_faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.r_faq details[open] summary::after { transform: rotate(45deg); }
.r_faq summary:hover { color: var(--accent-hi); }
.r_faq_a { padding: 0 0 26px; max-width: 760px; font-size: 16px; line-height: 1.6; color: rgba(243,237,227,0.72); }
@media (max-width: 768px) { .r_faq summary { font-size: 17px; padding: 20px 0; } }
.r_final_h--tool { font-size: clamp(36px, 5.2vw, 72px); max-width: 18ch; }
.r_final_links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; }
.r_final_links .r_text_link { margin-left: 0; }

/* === 404 ============================================================== */
section.r_hero--nf { padding-bottom: 90px; }
section.r_hero--nf .r_final_btns { margin-top: 36px; }

/* === Footer =========================================================== */
footer.r_footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--bg-deep); }
footer.r_footer .wrap { display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: center; gap: 24px; font-size: 13px; color: var(--fg-dim); }
footer.r_footer .r_foot_mid { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
footer.r_footer .r_foot_mid a { color: var(--fg-dim); transition: color .2s; }
footer.r_footer .r_foot_mid a:hover { color: var(--fg); }
footer.r_footer .r_foot_right { text-align: right; }
@media (max-width: 900px) {
  footer.r_footer { padding: 28px 0; }
  footer.r_footer .wrap { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  footer.r_footer .r_brand { justify-self: center; }
  footer.r_footer .r_foot_right { text-align: center; }
}

/* === Skip link ======================================================== */
.skip_link { position: absolute; top: -100px; left: 12px; background: var(--accent); color: var(--bg); padding: 12px 20px; font-size: 14px; font-weight: 500; border-radius: 0 0 8px 8px; z-index: 1000; transition: top .2s ease; }
.skip_link:focus { top: 0; }
main:focus { outline: none; }

/* === PD consent banner (a/j/pd-consent.js, only when Metrika is on) ==== */
.pd_consent { position: fixed; left: 16px; bottom: 16px; z-index: 9999; max-width: 360px; padding: 16px 18px; background: rgba(26,20,16,0.92); color: var(--fg); border: 1px solid rgba(243,237,227,0.12); border-radius: 14px; -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 10px 40px rgba(0,0,0,0.45); font-size: 13px; line-height: 1.45; }
.pd_consent_text { margin: 0 0 12px; opacity: .92; }
.pd_consent_btns { display: flex; gap: 8px; }
.pd_consent_btn { flex: 1; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(243,237,227,0.18); background: transparent; color: var(--fg); font: inherit; font-weight: 500; cursor: pointer; transition: background-color .15s; }
.pd_consent_btn:hover { background: rgba(243,237,227,0.06); }
.pd_consent_ok { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pd_consent_ok:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
@media (max-width: 480px) { .pd_consent { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 12px 14px; font-size: 11.5px; } }

/* === tool: email-check === */
.r_mail_sel { margin-top: 18px; }
.r_mail_sel .r_label { display: block; margin-bottom: 8px; }
.r_mail_sel .r_input { max-width: 360px; font-size: 15px; min-height: 44px; padding: 10px 16px; }
.r_mail_lead { margin-top: 10px; }
.r_mail_note { margin-top: 14px; }
.r_mail_rec { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 10px 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.r_mail_rec code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
.r_mail_fix + .r_mail_fix { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.r_mail_kv { margin-top: 12px; padding-top: 0; border-top: 0; grid-template-columns: 90px minmax(0, 1fr); gap: 6px 16px; }
.r_mail_kv code { font-family: var(--mono); font-size: 14px; }
.r_mail_help { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .r_mail_rec { flex-direction: column; align-items: stretch; } .r_mail_rec .r_copy_btn { align-self: flex-start; } .r_mail_sel .r_input { max-width: none; } }
/* === /tool: email-check === */

/* === tool: is-it-down, redirect-chain, cms-detect === */
.r_hops td { vertical-align: baseline; }
.r_hops_n { width: 30px; font-family: var(--mono); font-size: 13px; color: var(--fg-mute); }
.r_hops_code { width: 66px; }
.r_code { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-dim); }
.r_code--ok { color: var(--ok); border-color: rgba(143,191,122,0.45); background: rgba(143,191,122,0.08); }
.r_code--warn { color: var(--warn); border-color: rgba(230,180,80,0.45); background: rgba(230,180,80,0.08); }
.r_code--bad { color: var(--bad); border-color: rgba(236,106,85,0.5); background: rgba(236,106,85,0.1); }
.r_hops_err, .r_hops_sub { display: block; margin-top: 2px; font-family: 'Inter Tight', -apple-system, sans-serif; font-size: 13px; color: var(--fg-mute); overflow-wrap: anywhere; }
.r_hops_err { color: var(--bad); }
.r_hops_stop td { color: var(--fg-mute); }
.r_down_where { margin-top: 18px; }
.r_rc_variants { margin-top: 4px; }
.r_cms_group + .r_cms_group { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.r_cms_items { list-style: none; display: grid; gap: 14px; margin-top: 10px; }
.r_cms_head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.r_cms_name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.r_cms_ver { font-family: var(--mono); font-size: 14px; color: var(--fg-dim); }
.r_cms_head .r_chip { padding: 3px 10px; }
.r_cms_ev { list-style: none; margin-top: 6px; display: grid; gap: 3px; font-size: 13px; color: var(--fg-mute); }
.r_cms_ev code { font-family: var(--mono); color: var(--fg-dim); overflow-wrap: anywhere; word-break: break-word; }
.r_cms_main .r_cms_name { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; line-height: 1.08; }
@media (max-width: 600px) { .r_hops_code { width: 56px; } .r_hops_n { width: 22px; } .r_hops .r_dns_ttl { width: 58px; padding-left: 8px !important; } .r_hops .r_dns_val { font-size: 13px; } }
/* === /tool: is-it-down, redirect-chain, cms-detect === */

/* === tool: shared by redirect-generator, utm-builder, qr-code === */
.r_seg--wrap { display: inline-flex; flex-wrap: wrap; border-radius: 22px; }
.r_check--sub { padding-left: 32px; font-size: 14px; color: var(--fg-dim); }
.r_check input:disabled + span { opacity: .45; }
.r_codeblock { margin-top: 18px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--fg); white-space: pre; overflow: auto; max-height: 560px; tab-size: 4; }
.r_codeblock code { font: inherit; }
.r_btn_row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.r_cta_btn.is-disabled { opacity: .5; }
.r_note a { color: var(--fg-dim); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.r_note a:hover { color: var(--fg); }
.r_tool_card + .r_tool_card { margin-top: 20px; }
#rd-issues[hidden], #utm-issues[hidden], #qr-issues[hidden], .r_qr_utm[hidden] { display: none; }
@media (max-width: 600px) { .r_codeblock { padding: 14px; font-size: 12.5px; } .r_tool_card + .r_tool_card { margin-top: 16px; } }
/* === /tool: shared === */

/* === tool: redirect-generator === */
.r_rd .r_field + .r_seg { margin-top: 20px; }
.r_rd_pane { margin-top: 6px; }
.r_rd_group { margin-top: 22px; }
.r_rd_group + .r_seg { margin-top: 10px; }
.r_rd_list { font-family: var(--mono); font-size: 14px; min-height: 168px; white-space: pre; overflow-x: auto; }
.r_rd_hint { margin-top: 10px; }
.r_rd_collapse { margin-top: 16px; }
.r_rd_out_head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; }
.r_rd_out_head .r_seg { margin-top: 0; }
.r_rd_fmt .r_seg { margin-top: 14px; }
.r_rd_summary { margin-top: 12px; font-size: 14px; font-weight: 500; }
.r_rd_risk { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .r_rd_out_head .r_cta_btn { width: 100%; justify-content: center; } }
/* === /tool: redirect-generator === */

/* === tool: utm-builder === */
.r_chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.r_chip_btn { font: inherit; font-size: 14px; color: var(--fg-dim); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; min-height: 40px; transition: background .2s, color .2s, border-color .2s; }
.r_chip_btn:hover { color: var(--fg); border-color: rgba(243,237,227,0.32); }
.r_chip_btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.r_utm_hint { margin-top: 10px; }
.r_utm_hint:empty { display: none; }
.r_utm_url { margin-top: 22px; }
.r_utm_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 18px; }
.r_utm_grid .r_field + .r_field { margin-top: 0; }
.r_utm_key { font-family: var(--mono); font-size: 13px; color: var(--fg); }
.r_utm_req { color: var(--accent); }
.r_utm_what { color: var(--fg-mute); font-weight: 400; }
.r_utm_clean { margin-top: 18px; }
.r_utm_box { margin-top: 10px; }
.r_utm_value { font-size: clamp(14px, 1.8vw, 17px); line-height: 1.5; letter-spacing: 0; }
.r_utm_value.is-empty { color: var(--fg-mute); }
.r_utm_out .r_issues { margin-top: 16px; }
.r_utm_naming { margin-top: 18px; }
.r_utm_recent { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.r_utm_recent .r_field_head { align-items: center; }
.r_utm_recent .r_pw_list code { font-size: 13px; }
@media (max-width: 600px) { .r_utm_grid { grid-template-columns: 1fr; } .r_btn_row .r_cta_btn { flex: 1 1 100%; justify-content: center; } }
/* === /tool: utm-builder === */

/* === tool: qr-code === */
.r_qr { max-width: 980px; }
.r_qr_grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.r_qr_side { position: sticky; top: 96px; }
.r_qr_img { aspect-ratio: 1; max-width: 360px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--bg); }
.r_qr_img svg { display: block; width: 100%; height: auto; }
.r_qr_img.is-empty { border: 1px dashed var(--line-2); }
.r_qr_meta { margin-top: 10px; text-align: center; min-height: 1.45em; }
.r_qr_btns { justify-content: center; }
.r_qr_btns .r_cta_btn { flex: 1 1 150px; justify-content: center; padding-left: 18px; padding-right: 18px; }
.r_qr_side .r_issues { margin-top: 16px; }
.r_qr_utm_on { margin-top: 16px; }
.r_qr_utm { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 14px; }
.r_qr_utm .r_field + .r_field { margin-top: 0; }
.r_qr_more { margin-left: 0; font-size: 14px; }
.r_qr_opts { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.r_qr_opts .r_field + .r_field { margin-top: 0; }
.r_qr_opts .r_seg { margin-top: 0; }
.r_qr_len { margin-top: 0; }
.r_qr_ec_note { margin-top: 8px; }
.r_qr_colors { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.r_qr_color { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.r_qr_color input { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); cursor: pointer; }
.r_qr_final { margin-top: 22px; overflow-wrap: anywhere; }
.r_qr_final code { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); }
.r_qr_local { margin-top: 16px; }
@media (max-width: 760px) {
  .r_qr_grid { grid-template-columns: 1fr; gap: 24px; }
  .r_qr_side { position: static; }
  .r_qr_img { max-width: 280px; }
}
/* === /tool: qr-code === */
