:root {
  --brand: #8f34d6;
  --brand-dark: #6d28d9;
  --ink: #16141c;
  --muted: #5c5670;
  --line: #ece7f3;
  --bg: #f4f2f7;
  --card: #ffffff;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", Calibri, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--brand-dark); }
img { max-width: 100%; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9; }

.shophead { background: #fff; border-bottom: 0; }
.shophead-top {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
a.wordmark {
  color: #111 !important;
  text-decoration: none !important;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.wordmark span { color: #8f34d6 !important; font-weight: 400; padding: 0 2px; }
.shophead-note { margin: 0; color: #5c5670; font-size: 14px; }
.shophead-bar {
  background: #8f34d6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 52px;
  padding: 0 12px;
}
.shophead-bar a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 14px 16px;
  position: relative;
}
.shophead-bar a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: rgba(255,255,255,.55);
}
.shophead-bar a.on,
.shophead-bar a:hover { background: rgba(255,255,255,.12); }

.crumb {
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 14px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brand-dark); }

.layout {
  width: min(var(--max), calc(100% - 32px));
  margin: 14px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
article, .side, .hero, .catalog {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(22, 20, 28, .04);
}
article { padding: 36px 40px 42px; }
.kicker {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin: 8px 0 12px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.meta { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.lead {
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 8px;
  color: #2a2438;
}
.answer {
  background: #f6effc;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 16px;
  font-size: 18px;
}
h2 {
  margin: 34px 0 10px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.02em;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { margin: 22px 0 6px; font-size: 20px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 8px; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 8px;
}
.fact {
  background: linear-gradient(180deg, #faf8fd, #f3eefb);
  border: 1px solid #eadff6;
  border-radius: 14px;
  padding: 14px 16px;
}
.fact b {
  display: block;
  font-size: 12px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.note {
  border-left: 4px solid var(--brand);
  background: #f8f4fd;
  padding: 14px 16px;
  border-radius: 0 14px 14px 0;
  margin: 22px 0 0;
}
.cmp { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.cmp th { background: #f6effc; font-weight: 700; }
.toc {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.toc h2 { margin: 0 0 8px; font-size: 16px; border: 0; padding: 0; }
.toc a {
  display: block;
  padding: 7px 0;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
details { border-top: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 4px; }
.side { padding: 18px 18px 20px; position: sticky; top: 12px; }
.side h2 { margin: 0 0 8px; font-size: 16px; border: 0; padding: 0; }
.side > a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.cta {
  display: block;
  margin-top: 14px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
}
.side p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.hero, .catalog { padding: 28px 28px 24px; margin: 18px auto; width: min(var(--max), calc(100% - 32px)); }
.hero { background: linear-gradient(135deg, #fff 0%, #f7f2fc 55%, #fff 100%); }
.tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }
.tools input, .tools button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
.tools input { flex: 1; min-width: 240px; }
.tools button { cursor: pointer; font-weight: 700; }
.tools button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.band { margin: 28px 0 8px; }
.band h2 { margin: 0 0 6px; border: 0; padding: 0; font-size: 24px; }
.band p { margin: 0; color: var(--muted); font-size: 15px; }
.postlist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.postlist a {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 12px 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
}
.postlist a:hover { border-color: #d8c4ef; }
.postlist strong { font-size: 16px; }
.postlist span { color: var(--muted); font-size: 14px; font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  text-decoration: none;
  background: #fff;
  min-height: 168px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #d8c4ef;
  box-shadow: 0 14px 28px rgba(143, 52, 214, .12);
}
.card strong { display: block; color: var(--ink); font-size: 18px; line-height: 1.3; }
.card span:last-child { color: var(--muted); font-size: 14px; line-height: 1.45; }
.tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #f6effc;
  border-radius: 999px;
  padding: 4px 8px;
}
footer.site {
  background: #16141c;
  color: #efe8f8;
  padding: 32px 0;
  font-size: 15px;
}
footer.site a { color: #fff; }
footer.site .inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  h1 { font-size: 32px; }
  .wordmark { font-size: 28px; }
  article { padding: 22px 18px 28px; }
  .facts { grid-template-columns: 1fr; }
  .postlist a { grid-template-columns: 1fr; }
  .shophead-top { min-height: 64px; }
  footer.site .inner { display: grid; }
}
