:root {
  --bg: #d5dce6;
  --bg2: #c7d0dc;
  --ink: #132033;
  --mute: #4a5a6e;
  --line: rgba(19, 32, 51, 0.14);
  --glass: rgba(244, 248, 252, 0.78);
  --glass-solid: #f3f7fb;
  --accent: #245fd6;
  --accent-soft: #9ec0ff;
  --steel: #6d7c90;
  --shadow: 0 18px 40px rgba(19, 32, 51, 0.12);
  --font: "Sora", system-ui, sans-serif;
  --display: "Spectral", Georgia, serif;
  --cut: 48%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  background:
    linear-gradient(160deg, #e4eaf1 0%, var(--bg) 42%, var(--bg2) 100%);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 12% 8%, rgba(158, 192, 255, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 18%, rgba(255, 255, 255, 0.45), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(19, 32, 51, 0.03) 47px 48px);
  z-index: 0;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: #1747a8; }
img { max-width: 100%; display: block; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; z-index: 20; background: #fff; padding: 8px 12px; }

.desk {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 3.5rem;
}

.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand-loupe {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--accent-soft);
  position: relative;
}
.brand-loupe::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--accent-soft);
  left: 9px; top: 8px;
}
.brand-loupe::before {
  content: "";
  position: absolute;
  width: 8px; height: 2px; background: var(--accent-soft);
  left: 20px; top: 22px; transform: rotate(40deg);
}
.brand b { display: block; font-weight: 600; letter-spacing: -0.02em; }
.brand span { display: block; font-size: 0.78rem; color: var(--mute); }
.rail nav { display: flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; }
.rail nav a { color: var(--mute); text-decoration: none; font-size: 0.92rem; }
.rail nav a:hover { color: var(--ink); }

.hero-line {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem 2rem;
  padding: 1.6rem 0 1.1rem;
  align-items: end;
}
.hero-line h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-line .lead {
  margin: 0;
  color: var(--mute);
  font-size: 1.02rem;
  max-width: 34ch;
}

.glass {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(243,247,251,0.88));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.85);
  padding: 0.85rem;
  margin-bottom: 1.4rem;
}
.glass-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.15rem 0.35rem 0.7rem;
  font-size: 0.82rem;
  color: var(--mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.glass-top strong { color: var(--ink); font-weight: 600; letter-spacing: 0; text-transform: none; }

.compare {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  background: #0f1722;
  max-height: min(78vh, 780px);
  margin-inline: auto;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
}
.compare canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.compare .after { z-index: 1; }
.compare .before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--cut)) 0 0);
}
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--cut);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  z-index: 4;
  pointer-events: none;
}
.compare-handle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  border: 2px solid var(--ink);
}
.compare-handle::after {
  content: "◀ ▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  color: var(--ink);
  letter-spacing: -1px;
}
.compare-tags {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.compare-tags span {
  position: absolute;
  top: 12px;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(19, 32, 51, 0.62);
  color: #fff;
  font-size: 0.75rem;
  backdrop-filter: blur(6px);
}
.compare-tags .t-soft { left: 12px; }
.compare-tags .t-sharp { right: 12px; }

.ruler {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0 0.2rem;
}
.ruler label { font-size: 0.82rem; color: var(--mute); }
.ruler input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.ruler-cap {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--mute);
}

.sheet {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  margin: 1.8rem 0 1.5rem;
}
.cardish {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.25rem;
  backdrop-filter: blur(8px);
}
.cardish h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}
.cardish p { margin: 0 0 0.7rem; color: var(--mute); }
.cardish p:last-child { margin-bottom: 0; }
.ticks { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 8px; height: 2px;
  background: var(--accent);
}
.aside-note {
  border-left: 3px solid var(--accent-soft);
  padding-left: 0.9rem;
  color: var(--mute);
  font-size: 0.95rem;
}

.catalog {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--ink);
  color: #e8eef8;
  margin: 1.4rem 0;
}
.catalog .label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.catalog img {
  width: 56px; height: 56px; border-radius: 12px;
  background: #fff;
}
.catalog a {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.2rem;
}
.catalog a b { font-size: 1.05rem; }
.catalog a i { font-style: normal; color: rgba(232,238,248,0.7); font-size: 0.88rem; }
.catalog a u {
  text-decoration: none;
  color: var(--accent-soft);
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.faq {
  margin: 1.6rem 0 1.2rem;
}
.faq h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.4rem;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0.45rem 0 0; color: var(--mute); }

.foot {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.88rem;
}
.foot p { margin: 0 0 0.45rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; margin-top: 0.6rem; }
.foot nav a { color: var(--mute); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

.dials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem 1.4rem;
  margin: 1rem 0.2rem 0;
}
.dial { display: grid; gap: 0.3rem; font-size: 0.82rem; color: var(--mute); }
.dial span { display: flex; justify-content: space-between; gap: 0.5rem; }
.dial output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dial input[type="range"] { width: 100%; accent-color: var(--accent); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0.2rem 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--glass-solid);
  color: var(--ink);
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font: 600 0.88rem var(--font);
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: #fff; border-color: rgba(19, 32, 51, 0.3); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-main { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-main:hover { background: #1c2f4a; }
.compare.is-drop { outline: 3px dashed var(--accent); outline-offset: -6px; }

.prose {
  max-width: 42rem;
  margin: 1.5rem auto 2rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.35rem 1.6rem;
}
.prose h1 { margin-top: 0; font-family: var(--display); }

@media (max-width: 860px) {
  .hero-line, .sheet { grid-template-columns: 1fr; }
  .hero-line .lead { max-width: none; }
  .rail { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .desk { width: calc(100% - 1.25rem); }
  .glass { padding: 0.55rem; }
  .catalog { grid-template-columns: 56px 1fr; }
  .dials { grid-template-columns: 1fr; }
}
