/* isquant.online — стили страницы. Шрифт Inter — свой, без сторонних сервисов. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-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; }

:root {
  --navy-950: #0d0e20; --navy-900: #14152c; --navy-800: #1a1a2e; --navy-700: #26274a;
  --cyan: #4fc3f7; --cyan-d: #0288d1; --orange: #ff7043;
  --ink: #1b1c2b; --muted: #5a5e72; --line: #e2e5ee; --soft: #f5f6fa;
  --radius: 14px; --wrap: 1160px;
  /* цвета типов квантов — как в системе (QUANT_TYPE_COLORS) */
  --t1: #1565c0; --t1b: #bbdefb; --t2: #2e7d32; --t2b: #c8e6c9; --t3: #7b1fa2; --t3b: #e1bee7;
  --t4: #e65100; --t4b: #ffe0b2; --t5: #00838f; --t5b: #b2ebf2; --t6: #c62828; --t6b: #ffcdd2;
  --t7: #4527a0; --t7b: #d1c4e9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: #fff; font-size: 17px; line-height: 1.6;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-d); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── шапка ── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(20, 21, 44, .92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.top .logo img { height: 30px; width: auto; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: #c9cbe0; text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 12px 22px;
  font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.2; transition: .15s; }
.btn-main { background: var(--cyan); color: var(--navy-950); }
.btn-main:hover { background: #81d4fa; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 15px; }

/* ── первый экран ── */
.hero { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(900px 480px at 85% -10%, rgba(79,195,247,.22), transparent 60%),
              radial-gradient(700px 420px at 0% 30%, rgba(123,31,162,.25), transparent 60%),
              linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.hero .wrap { padding-top: 88px; padding-bottom: 0; }
.kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--cyan); }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 750; max-width: 920px; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lead { font-size: clamp(18px, 1.7vw, 21px); color: #cfd2e6; max-width: 760px; margin-top: 24px; }
.hero .not { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .not span { border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 14px;
  font-size: 14px; color: #e3e5f3; text-decoration: line-through; text-decoration-color: rgba(255,112,67,.85); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero .note { font-size: 14px; color: #9ea2bf; margin-top: 14px; }
.hero.full { min-height: 100vh; }
.hero .shot { margin-top: 64px; margin-bottom: -2px; }

/* ── снимок экрана в рамке окна ── */
.shot { border-radius: 12px 12px 0 0; overflow: hidden; background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08); }
.shot::before { content: ""; display: block; height: 30px; background:
  radial-gradient(circle at 18px 15px, #ff5f57 5px, transparent 6px),
  radial-gradient(circle at 36px 15px, #febc2e 5px, transparent 6px),
  radial-gradient(circle at 54px 15px, #28c840 5px, transparent 6px), #e9ebf2; }
.shot.round { border-radius: 12px; box-shadow: 0 18px 50px rgba(20,21,44,.18), 0 0 0 1px var(--line); }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ── разделы ── */
section { padding: 96px 0; }
section.soft { background: var(--soft); }
section.dark { background: var(--navy-800); color: #fff; }
section.dark .sub, section.dark p { color: #c9cbe0; }
.head { max-width: 780px; margin-bottom: 48px; }
.head .sub { font-size: 19px; color: var(--muted); margin-top: 18px; }
.head .kicker { margin-bottom: 14px; color: var(--cyan-d); }
section.dark .head .kicker { color: var(--cyan); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin-top: 10px; font-size: 16px; }
section.dark .card { background: var(--navy-700); border-color: rgba(255,255,255,.08); }
section.dark .card p { color: #c2c5dc; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1.25fr 1fr; }
.bul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.bul li { position: relative; padding-left: 28px; }
.bul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(79,195,247,.18); }
.split .kicker { margin-bottom: 14px; }
.split h2 + .sub { margin-top: 18px; }
.big { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; font-weight: 500; }
.accent { color: var(--cyan-d); }

/* проблема: инструменты по одной стороне */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.tools div { border: 1px dashed #c9cde0; border-radius: 12px; padding: 18px; font-size: 15px; color: var(--muted); }
.tools b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.all { margin-top: 26px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }

/* типы квантов */
.types { grid-template-columns: repeat(4, 1fr); }
.type { border-left: 4px solid var(--c); }
.type .pill { display: inline-block; font-size: 13px; font-weight: 650; color: var(--c); background: var(--b);
  border-radius: 6px; padding: 3px 10px; }
.type h3 { margin-top: 12px; }
.t1 { --c: var(--t1); --b: var(--t1b); } .t2 { --c: var(--t2); --b: var(--t2b); } .t3 { --c: var(--t3); --b: var(--t3b); }
.t4 { --c: var(--t4); --b: var(--t4b); } .t5 { --c: var(--t5); --b: var(--t5b); } .t6 { --c: var(--t6); --b: var(--t6b); }
.t7 { --c: var(--t7); --b: var(--t7b); }
.type.more { border-left-color: var(--line); background: transparent; border-style: dashed; display: flex; align-items: center; }
.type.more p { margin: 0; color: var(--ink); font-size: 16px; }

/* сущности */
.ent .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--cyan); }
.ent .ico svg { width: 26px; height: 26px; fill: currentColor; }
.ent h3 { margin-top: 18px; font-size: 22px; }
.oper { margin-top: 28px; padding: 26px 30px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(79,195,247,.12), rgba(79,195,247,0)); border-left: 4px solid var(--cyan); }
.oper p { font-size: 18px; }

/* связи */
.links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.links div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--muted); }
.links b { color: var(--ink); display: block; font-size: 16px; }
.diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.diagram svg { width: 100%; height: auto; display: block; }

/* режимы */
.group { margin-top: 44px; }
.group:first-of-type { margin-top: 0; }
.group > h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 650;
  margin-bottom: 16px; }
.mode { display: flex; gap: 16px; align-items: flex-start; }
.mode .ico { flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--cyan); }
.mode .ico svg { width: 24px; height: 24px; fill: currentColor; }
.mode p { margin-top: 6px; }
.soon { display: inline-block; font-size: 12px; font-weight: 600; color: var(--t4); background: var(--t4b);
  border-radius: 6px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 52px; }
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; }
.tip { border-radius: var(--radius); padding: 22px 24px; background: var(--navy-800); color: #fff; }
.tip p { color: #c9cbe0; margin-top: 8px; font-size: 16px; }
kbd { font-family: inherit; font-size: .85em; border: 1px solid rgba(255,255,255,.35); border-bottom-width: 2px;
  border-radius: 5px; padding: 0 6px; }

/* сравнение */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.cmp th, .cmp td { position: relative; padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th { background: var(--soft); font-weight: 650; font-size: 15px; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .q { background: rgba(79,195,247,.10); }
.cmp thead .q { background: var(--navy-800); color: #fff; }
.cmp td[data-check]::before { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 15px; font-weight: 800; }
.cmp td[data-check="yes"]::before { content: "✓"; background: #25b309; color: #fff; }
.cmp td[data-check="no"]::before { content: "—"; background: #f1f2f6; color: #a2a6b8; }
.cmp td[data-check="soon"]::before { content: ""; background: conic-gradient(var(--t4) 0 50%, var(--t4b) 0); }
.legend { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* призыв */
.cta-box { border-radius: 22px; padding: 56px; color: #fff; text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(79,195,247,.25), transparent 70%), var(--navy-800); }
.cta-box h2 { max-width: 760px; margin: 0 auto; }
.cta-box p { color: #c9cbe0; max-width: 680px; margin: 18px auto 0; font-size: 18px; }
.cta-box .cta { justify-content: center; display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* подвал */
footer { background: var(--navy-950); color: #9ea2bf; padding: 40px 0; font-size: 15px; }
footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
footer img { height: 24px; width: auto; }
footer a { color: #c9cbe0; }
footer .r { margin-left: auto; }

/* ── узкие экраны ── */
@media (max-width: 1020px) {
  .types, .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 36px; }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .wrap { padding: 0 18px; }
  .types, .g4, .g3, .g2, .shots, .tips, .links, .tools { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 56px; }
  .cta-box { padding: 36px 22px; }
  .cmp { font-size: 14px; table-layout: fixed; }
  .cmp th:first-child, .cmp td:first-child { width: 36%; }
  .cmp thead th { font-size: 11.5px; hyphens: auto; overflow-wrap: anywhere; }
  .cmp th, .cmp td { padding: 10px 5px; }
  .cmp td[data-check]::before { width: 22px; height: 22px; font-size: 13px; }
}
