/* Стили для сайта "Помощь с чертежами" (статический HTML, без JS) */
:root {
  --bgTop: #f6f8ff;
  --bgMid: #eff9ff;
  --bgBottom: #f7fbf8;
  --text: #0b1b3a;
  --muted: #415076;
  --line: rgba(11, 27, 58, 0.12);
  --card: #ffffff;
  --accent: #2563eb; /* синий */
  --accent2: #16a34a; /* зеленый */
  --link: #1d4ed8;
  --shadow: 0 12px 34px rgba(2, 6, 23, 0.08);
  --radius: 18px;
  --radius2: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(700px 380px at 85% 0%, rgba(22, 163, 74, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bgTop), var(--bgMid) 40%, var(--bgBottom));
}

a {
  color: inherit;
  text-decoration: none;
}

.cx-wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.cx-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 255, 0.82);
  backdrop-filter: blur(10px);
}

.cx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.cx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.cx-brand-badge {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.cx-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cx-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.95rem;
}

.cx-nav a:hover {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.07);
  color: var(--text);
}

.cx-nav a.active {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
}

.cx-main {
  padding: 26px 0 48px;
}

.cx-top {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.cx-top + .cx-top {
  margin-top: 18px;
}

.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 850;
  font-size: 0.72rem;
  color: rgba(37, 99, 235, 0.98);
}

.cx-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

h1 {
  margin: 10px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.lead {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
  max-width: 72ch;
  margin-bottom: 0;
}

.cx-criteria {
  margin: 12px 0 0;
  padding-left: 18px;
}

.cx-criteria li {
  margin: 9px 0;
}

.cx-gridTop5 {
  margin-top: 14px;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

.cx-rank {
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.05);
}

.cx-rank-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cx-rank-num {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--accent);
}

.cx-rank.brand1 .cx-rank-num {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.3);
  color: var(--accent2);
}

.cx-rank h3 {
  margin: 0;
  font-size: 1.12rem;
}

.cx-score {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cx-rank-desc {
  margin: 12px 0 0;
  line-height: 1.55;
}

.cx-rank ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.cx-rank li {
  margin: 7px 0;
  color: var(--muted);
}

.cx-rank li strong {
  color: var(--text);
}

.cx-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.cx-pill-row a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.06);
  color: var(--link);
  font-weight: 820;
  font-size: 0.95rem;
}

.cx-pill-row a:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
}

.cx-twoCol {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cx-cardLite {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius2);
  padding: 18px;
}

.cx-cardLite h2 {
  margin-top: 0;
}

.cx-footer {
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  padding: 22px 0 0;
}

@media (max-width: 900px) {
  .cx-twoCol {
    grid-template-columns: 1fr;
  }
}

