/* =========================================================
   SuriAPI — landing page
   structure borrowed from openmove.cn (full-bleed rows,
   numbered chapters, catalogue list, centered CTA)
   palette from api.suriapi.com (#3ea4ec on white)
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7fbfe;
  --panel: #ffffff;
  --panel-2: #f8fbfe;
  --line: #e8ebef;
  --line-strong: #d6dde5;
  --text: #0a0a0a;
  --muted: #55606b;
  --muted-2: #78828c;
  --brand: #3ea4ec;
  --brand-deep: #1f7fbf;
  --brand-soft: rgba(62, 164, 236, 0.1);
  --blue: #60a5fa;
  --violet: #a78bfa;
  --purple: #a855f7;
  --ok: #00bb7f;
  --shadow-sm: 0 1px 2px rgba(16, 40, 70, 0.05), 0 12px 30px -24px rgba(16, 40, 70, 0.4);
  --shadow-md: 0 2px 6px rgba(16, 40, 70, 0.06), 0 30px 60px -34px rgba(16, 40, 70, 0.42);
  --wrap: 1240px;
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

code,
pre {
  font-family: var(--mono);
}

::selection {
  background: rgba(62, 164, 236, 0.22);
  color: #0a0a0a;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  background: var(--brand-deep);
  color: #fff;
  border-radius: 0 0 10px 0;
}

.skip:focus {
  left: 0;
}

/* ---------- background ---------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.glow-a {
  width: 820px;
  height: 820px;
  top: -420px;
  left: -200px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.48), transparent 66%);
}

.glow-b {
  width: 700px;
  height: 700px;
  top: -300px;
  right: -220px;
  background: radial-gradient(circle, rgba(56, 189, 200, 0.32), transparent 68%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 60, 100, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 60, 100, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 78% 52% at 50% 0%, #000 18%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 52% at 50% 0%, #000 18%, transparent 76%);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 26px;
  height: 25px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(16, 60, 100, 0.05);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: none;
}

.nav-login {
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-login:hover {
  color: var(--text);
  background: rgba(16, 60, 100, 0.05);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  padding: 8px 20px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a {
  display: block;
  padding: 12px 4px;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.mobile-menu .mobile-cta {
  margin-top: 14px;
  text-align: center;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15.5px;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 22px -10px rgba(62, 164, 236, 0.85);
}

.btn-primary:hover {
  background: #3499e0;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(62, 164, 236, 0.9);
}

.btn-quiet {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: #fff;
}

.btn-quiet:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-soft);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100svh, 880px);
  padding: 92px 28px 190px;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(62, 164, 236, 0.14);
}

.hero h1 {
  margin: 32px 0 0;
  font-size: clamp(46px, 7.6vw, 100px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.hero-title {
  margin: 24px 0 0;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.grad {
  background: linear-gradient(96deg, #60a5fa 4%, #a78bfa 52%, #a855f7 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 640px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  line-height: 1.75;
}

.lede-2 {
  display: block;
}

.hero-lede code {
  padding: 1px 6px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 5px;
  font-size: 0.94em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.hero-meta .sep {
  opacity: 0.5;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(0, 187, 127, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(0, 187, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 187, 127, 0);
  }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, var(--line-strong));
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 10px;
  background: var(--brand);
  animation: drip 2.2s ease-in-out infinite;
}

@keyframes drip {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(34px);
    opacity: 0;
  }
}

/* ---------- rows (showcase) ---------- */

.rows {
  position: relative;
  z-index: 1;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(56px, 7vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.row-copy {
  max-width: 430px;
}

.row-label {
  display: inline-block;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.row h2,
.catalog h2 {
  margin: 20px 0 0;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.row-sub {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.row-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.row-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-link:hover {
  color: var(--brand-deep);
  border-color: var(--brand);
  gap: 11px;
}

.row-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.row-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 14px;
}

.row-list li span {
  display: inline-block;
  min-width: 130px;
  padding-right: 16px;
  color: var(--text);
  font-weight: 600;
}

.row-visual {
  min-width: 0;
}

/* ---------- code card ---------- */

.code-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.code-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--panel-2);
  border-radius: 999px;
}

.code-tab {
  padding: 5px 13px;
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.code-tab.is-active {
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.copy-btn {
  padding: 5px 12px;
  color: var(--muted-2);
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.copy-btn:hover {
  color: var(--brand-deep);
  border-color: var(--brand);
}

.copy-btn.is-done {
  color: var(--ok);
  border-color: rgba(0, 187, 127, 0.4);
}

.code-body {
  margin: 0;
  padding: 22px 22px 24px;
  background: var(--panel-2);
  color: #24303c;
  font-size: 12.6px;
  line-height: 1.9;
  overflow-x: auto;
  tab-size: 2;
}

.code-body code {
  font-size: inherit;
}

.c-kw {
  color: #8b5cf6;
}

.c-str {
  color: #0d9488;
}

.c-fn {
  color: #2563eb;
}

.c-num {
  color: #c2410c;
}

.code-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ---------- bill card ---------- */

.bill-card {
  padding: 6px 22px 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.bill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.bill-range {
  color: var(--muted-2);
  font-weight: 500;
  font-size: 12px;
}

.bill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.bill-table th {
  padding: 11px 2px;
  text-align: left;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
}

.bill-table th:nth-child(2),
.bill-table td:nth-child(2) {
  width: 38%;
}

.bill-table th:last-child,
.bill-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bill-table td {
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.bill-table td:first-child {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.4px;
}

.bill-table tfoot td {
  padding: 14px 2px;
  border-bottom: 0;
  border-top: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(to right, rgba(62, 164, 236, 0.05), transparent 70%);
}

.bill-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 2px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.8px;
}

.dot-ok {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
}

/* ---------- tool panel ---------- */

.panel {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

.panel-dots {
  display: inline-flex;
  gap: 5px;
}

.panel-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.panel-badge {
  margin-left: auto;
  padding: 3px 9px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.tool-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.tool-chips span {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.tool-chips span:hover {
  color: var(--brand-deep);
  border-color: rgba(62, 164, 236, 0.45);
}

.steps {
  margin: 0;
  padding: 6px 18px 10px;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.step-n {
  flex: none;
  padding-top: 1px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.steps h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.steps p {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.65;
}

.steps code {
  padding: 1px 5px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.92em;
}

/* ---------- catalogue ---------- */

.catalog {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 8vw, 104px) 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), #fff 46%);
}

.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(40px, 5vw, 64px);
}

.catalog-title h2 {
  margin-top: 18px;
}

.catalog-note p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.cat-list {
  border-top: 1px solid var(--line-strong);
}

.cat-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.cat-name h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cat-name span {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12px;
}

.cat-models {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px 22px;
}

.cat-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.18s ease;
}

.cat-item:hover {
  color: var(--text);
}

.cat-item i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2.5px;
  background: var(--c, var(--brand));
}

.catalog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 30px;
}

.catalog-foot p {
  margin: 0;
  color: var(--muted-2);
  font-size: 12.5px;
}

.catalog-foot .row-link {
  margin-top: 0;
  flex: none;
}

/* ---------- cta ---------- */

.cta {
  position: relative;
  z-index: 1;
  padding: clamp(84px, 11vw, 148px) 0 clamp(80px, 10vw, 132px);
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 52% 68% at 50% 50%, rgba(96, 165, 250, 0.13), transparent 72%),
    #fff;
}

.cta h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cta p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  padding: 0 0 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
}

.footer-brand p {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.8;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-cols h4 {
  margin: 0 0 14px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-cols a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.18s ease;
}

.footer-cols a:hover {
  color: var(--brand-deep);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12.5px;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
    translate 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .row-copy {
    max-width: 560px;
  }

  .catalog-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .cat-row {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .cat-models {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-inner {
    height: 64px;
  }

  .mobile-menu:not([hidden]) {
    display: block;
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
    z-index: 59;
    padding: 8px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 28px 50px -28px rgba(16, 40, 70, 0.38);
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    min-height: auto;
    padding: 76px 20px 104px;
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 68px);
  }

  .hero-title {
    font-size: clamp(20px, 5.6vw, 26px);
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-meta {
    margin-top: 26px;
    font-size: 11.5px;
  }

  .scroll-hint {
    display: none;
  }

  .row {
    padding: 52px 0;
  }

  .row h2,
  .catalog h2 {
    font-size: clamp(26px, 7.6vw, 34px);
  }

  .row-sub {
    font-size: 14.5px;
  }

  .row-list li {
    padding: 11px 0;
  }

  .row-list li span {
    min-width: 0;
    display: block;
  }

  .code-body {
    padding: 18px 16px 20px;
    font-size: 11.8px;
  }

  .code-foot {
    font-size: 10.5px;
  }

  .bill-card {
    padding: 4px 14px 2px;
  }

  .bill-table {
    font-size: 12.4px;
  }

  .bill-table td:first-child {
    font-size: 11.4px;
  }

  .bill-table th:nth-child(2),
  .bill-table td:nth-child(2) {
    width: 32%;
  }

  .cat-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0 22px;
  }

  .cat-name {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .cat-name span {
    margin-top: 0;
  }

  .cat-models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .cat-item {
    font-size: 13px;
  }

  .tool-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .scroll-line::after,
  .pulse {
    animation: none;
  }
}
