:root {
  --bg: #131d3a;
  --surface: #1c2545;
  --card: #1e2848;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .2);
  --text: #f1f5f9;
  --muted: #a8b4c4;
  --primary: #5b6ef5;
  --secondary: #3b82f6;
  --accent: #60a5fa;
  --success: #49d59d;
  --max: 1180px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(110, 122, 255, .11), transparent 40rem),
    radial-gradient(ellipse at 90% 70%, rgba(59, 130, 246, .08), transparent 38rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; }
h1, h2, .td-brand { font-family: Outfit, Inter, ui-sans-serif, system-ui, sans-serif; }

.td-skip { position: fixed; top: -5rem; left: 1rem; z-index: 30; padding: .7rem 1rem; background: #fff; color: #111; border-radius: 8px; }
.td-skip:focus { top: 1rem; }

.td-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: auto;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.td-brand { text-decoration: none; font-size: 1.42rem; font-weight: 800; letter-spacing: -.045em; }
.td-brand span { color: var(--accent); }
.td-nav-links { display: flex; align-items: center; gap: 24px; }
.td-nav-links a { text-decoration: none; color: var(--muted); font-size: .83rem; font-weight: 650; transition: color .15s; }
.td-nav-links a:hover { color: #fff; }
.td-nav-links .td-submit {
  padding: .66rem 1rem;
  border: 1px solid rgba(91, 110, 245, .55);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(91, 110, 245, .3), rgba(59, 130, 246, .2));
}

main { max-width: var(--max); margin: auto; padding: 0 24px; }
.td-breadcrumb { display: flex; flex-wrap: wrap; gap: .55rem; margin: 28px 0; color: #8290a7; font-size: .78rem; }
.td-breadcrumb a { text-decoration: none; color: #b9c3d2; }
.td-hero { padding: 42px 0 62px; border-bottom: 1px solid var(--line); }
.td-kicker, .td-section-label { text-transform: uppercase; letter-spacing: .14em; font-size: .69rem; font-weight: 800; color: var(--accent); }
.td-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 52px; align-items: center; }
.td-hero h1 { max-width: 920px; font-size: clamp(2.65rem, 6vw, 4.25rem); line-height: 1; letter-spacing: -.05em; margin: .5rem 0 1.25rem; }
.td-deck { max-width: 760px; font-size: clamp(1.03rem, 2vw, 1.22rem); color: #c3cfdd; line-height: 1.62; margin: 0; }
.td-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.td-actions a { padding: .78rem 1.12rem; border-radius: 8px; text-decoration: none; font-size: .84rem; font-weight: 760; }
.td-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 8px 24px rgba(59, 92, 246, .24); }
.td-secondary { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); }
.td-mark {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}
.td-mark img { width: 56px; height: 56px; padding: 4px; border-radius: 12px; object-fit: contain; background: rgba(255, 255, 255, .94); }

.td-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 64px; padding: 64px 0 96px; }
.td-layout article section { padding: 0 0 58px; }
.td-layout h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; line-height: 1.18; margin: .55rem 0 1.15rem; }
.td-layout article p { font-size: 1.02rem; color: #c3cfdd; max-width: 760px; }
.td-checks { list-style: none; padding: 0; margin: 1.35rem 0; display: grid; gap: .8rem; }
.td-checks li { position: relative; padding: 1rem 1rem 1rem 3rem; border: 1px solid var(--line); background: rgba(30, 40, 72, .76); border-radius: 12px; }
.td-checks li::before { content: "✓"; position: absolute; left: 1rem; color: var(--accent); font-weight: 900; }
.td-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.5rem 0; }
.td-fact { padding: 1.15rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.td-fact dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 800; }
.td-fact dd { margin: .42rem 0 0; color: #cbd4e1; }
.td-caution { margin-top: 1.5rem; padding: 1.2rem 1.35rem; border-left: 3px solid #e9b85b; background: rgba(233, 184, 91, .07); border-radius: 0 10px 10px 0; }
.td-caution strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: #f2c976; }
.td-caution p { margin: .35rem 0 0 !important; font-size: .94rem !important; }
.td-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.td-related { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--card); font-weight: 750; }
.td-related span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.td-related:hover { border-color: rgba(91, 110, 245, .65); background: #222e53; }
.td-faq-item { border-top: 1px solid var(--line); }
.td-faq-item:last-child { border-bottom: 1px solid var(--line); }
.td-faq-item summary { cursor: pointer; padding: 1rem 0; font-weight: 720; }
.td-faq-item p { margin: 0 0 1.25rem; }

.td-sidebar { display: flex; flex-direction: column; gap: 16px; }
.td-review-card, .td-source-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(30, 40, 72, .86); }
.td-sidebar h2 { font-size: 1rem; margin: .8rem 0 1.1rem; }
.td-status { display: flex; align-items: center; gap: .5rem; color: #b7f2df; font-size: .73rem; font-weight: 750; }
.td-status span { width: 7px; height: 7px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(73, 213, 157, .12); }
.td-review-card dl { margin: 0; }
.td-review-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); font-size: .78rem; }
.td-review-card dt { color: var(--muted); }
.td-review-card dd { margin: 0; text-align: right; }
.td-source-card ul { list-style: none; padding: 0; margin: 0; }
.td-source-card li { padding: .62rem 0; border-top: 1px solid var(--line); }
.td-source-card a { display: flex; justify-content: space-between; text-decoration: none; font-size: .8rem; }
.td-source-card p { font-size: .72rem; color: #8795ab; margin: 1rem 0 0; }

.td-footer { max-width: var(--max); margin: auto; padding: 36px 24px 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.td-footer-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.td-footer-cats a { padding: .42rem .66rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: rgba(255, 255, 255, .035); }
.td-footer-bottom { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; }
.td-footer-bottom p { margin: .25rem 0 0; }
.td-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.td-footer nav a { text-decoration: none; }
.td-footer a:hover { color: #fff; }

@media (max-width: 900px) {
  .td-nav-links a:nth-child(n+5):not(.td-submit) { display: none; }
  .td-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 48px; }
  .td-sidebar { grid-row: 1; }
}
@media (max-width: 680px) {
  .td-nav-links a:not(.td-submit) { display: none; }
  .td-hero { padding-top: 26px; }
  .td-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .td-mark { grid-row: 1; width: 80px; height: 80px; border-radius: 16px; }
  .td-mark img { width: 48px; height: 48px; }
  .td-facts, .td-related-grid { grid-template-columns: 1fr; }
  .td-footer-bottom { grid-template-columns: 1fr; gap: 16px; }
  .td-footer nav { gap: 10px 16px; }
}
