:root {
  color-scheme: light;
  --paper: #fbfcfd;
  --white: #fff;
  --ink: #20242b;
  --muted: #737985;
  --line: #e8ebef;
  --blue: #4168d5;
  --blue-dark: #3154bb;
  --blue-soft: #eef3ff;
  --serif: "Manrope", "DM Sans", Arial, sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
}

.service-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-block: 8px 27px;
}

.service-card {
  min-height: 225px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.section-wrap,
.site-header,
.site-footer {
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 0;
  background: var(--blue);
  color: #fff;
  font-size: 0;
}

.brand-mark::before {
  position: absolute;
  inset: 0;
  background: #c4c8cf;
  clip-path: polygon(0 100%, 0 64%, 23% 23%, 38% 48%, 61% 0, 79% 42%, 88% 27%, 100% 62%, 100% 100%);
  content: "";
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.brand-name span {
  color: var(--blue);
}

.product-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-tab {
  padding: 7px 10px;
  border-radius: 4px;
  color: #697180;
  font-size: 11px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.product-tab:hover,
.product-tab[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.portrait-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #4e5561;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease;
}

.portrait-link:hover {
  border-color: #b9c7e8;
  color: var(--blue);
}

.portrait-link[hidden] {
  display: none;
}

.footer-github:hover {
  color: var(--blue);
}

.hero {
  display: grid;
  min-height: 564px;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 54px;
  padding-block: 76px 72px;
}

.hero-copy {
  padding-bottom: 5px;
}

.eyebrow {
  margin: 0;
  color: #69758b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
}

.status-dot,
.meta-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6ba984;
  box-shadow: 0 0 0 3px #eaf4ee;
}

.eyebrow-separator {
  color: #b4bac5;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
}

h1 {
  margin-bottom: 21px;
  font-size: clamp(43px, 5vw, 62px);
  letter-spacing: -0.075em;
  line-height: 1.11;
}

h1 span,
h2 span {
  color: var(--blue);
}

.hero-description {
  max-width: 470px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  border-color: #e0e4eb;
  background: white;
  color: #454c59;
}

.button-secondary:hover {
  border-color: #cdd5e6;
  background: #f9faff;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: #818793;
  font-size: 10px;
}

.meta-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.meta-divider {
  color: #c1c5cd;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  min-height: 352px;
  overflow: hidden;
  border: 1px solid #e6e9ef;
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 253, 0.96));
  box-shadow: 0 20px 70px rgba(45, 63, 103, 0.07);
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  top: -112px;
  right: -80px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(93, 124, 210, 0.09);
  border-radius: 50%;
  content: "";
}

.visual-topline {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 16px;
  border-bottom: 1px solid #eceef3;
  color: #818795;
  font-family: var(--mono);
  font-size: 9px;
}

.visual-topline > span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}

.visual-topline i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e1e4eb;
}

.visual-topline i:first-child {
  background: #e99a94;
}

.visual-topline i:nth-child(2) {
  background: #e8c67c;
}

.visual-topline i:nth-child(3) {
  background: #8eb99b;
  margin-right: 7px;
}

.version-label {
  color: #8992a2;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.visual-content {
  padding: 21px 22px 15px;
}

.code-comment {
  margin-bottom: 11px;
  color: #a1a7b2;
  font-family: var(--mono);
  font-size: 9px;
}

.tool-row {
  display: grid;
  min-height: 52px;
  grid-template-columns: 30px minmax(125px, 1fr) minmax(95px, auto) 13px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f4;
}

.tool-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 6px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.icon-blue {
  background: #eef3ff;
  color: #5476d5;
}

.icon-purple {
  background: #f4f0ff;
  color: #8a6dcc;
}

.icon-green {
  background: #edf7f1;
  color: #5c9b74;
}

.icon-orange {
  background: #fff4e9;
  color: #cf8b4c;
}

.tool-name {
  color: #363c47;
  font-size: 11px;
  font-weight: 600;
}

.tool-items {
  color: #9298a3;
  font-size: 9px;
  text-align: right;
}

.tool-chevron {
  color: #9ca5b4;
  font-size: 11px;
  text-align: right;
}

.visual-footer {
  display: flex;
  min-height: 47px;
  align-items: center;
  color: #737d8d;
  font-family: var(--mono);
  font-size: 9px;
}

.terminal-cursor {
  margin-right: 9px;
  color: var(--blue);
  font-size: 14px;
}

.cursor-block {
  width: 5px;
  height: 11px;
  margin-left: 5px;
  background: #8298dd;
  animation: blink 1.15s steps(2, start) infinite;
}

.visual-footer-note {
  margin-left: auto;
  color: #a0a6b0;
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.visual-orbit {
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(86, 120, 213, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a {
  right: -82px;
  bottom: -94px;
}

.orbit-b {
  right: -46px;
  bottom: -130px;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.tutorials-heading .eyebrow {
  margin-bottom: 16px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 47px);
  letter-spacing: -0.075em;
  line-height: 1.16;
}

.tutorial-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #3e5fb4;
  font-size: 10px;
  font-weight: 600;
}

.tutorial-link:hover {
  color: #223f94;
}

.tutorials {
  background: #f5f7fb;
}

.tutorials-inner {
  padding-block: 87px 86px;
}

.tutorials-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 33px;
}

.tutorials-heading > p {
  max-width: 295px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.tutorial-browse-hint {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.tutorial-browse-hint a {
  color: var(--blue);
  text-decoration: underline;
}

.quickstart-card {
  padding: 22px;
  border: 1px solid #e1e6f0;
  border-radius: 5px;
  background: #fff;
}

.quickstart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}

.tutorial-label,
.tutorial-time,
.tutorial-tag {
  color: #7c8492;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tutorial-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutorial-label .status-dot {
  width: 6px;
  height: 6px;
}

.tutorial-time {
  color: #a0a6b1;
  font-family: var(--mono);
}

.quickstart-card h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.quickstart-card > p {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.code-block {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #e5e9f0;
  border-radius: 4px;
  background: #f8f9fc;
}

.code-prompt {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
}

.code-block code,
.quickstart-note code {
  font-family: var(--mono);
  font-size: 8px;
}

.code-block code {
  overflow-wrap: anywhere;
  color: #4f5869;
  line-height: 1.6;
}

.copy-button {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid #e0e5ef;
  border-radius: 3px;
  background: white;
  color: #697286;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 8px;
}

.copy-button:hover {
  border-color: #b9c7e8;
  color: var(--blue);
}

.quickstart-note {
  margin-top: 12px;
  color: #818895 !important;
  font-size: 9px !important;
}

.quickstart-note code {
  color: #59657a;
}

.tutorial-link {
  margin-top: 1px;
}

.tutorial-list {
  height: 440px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border: 1px solid #e1e6f0;
  border-radius: 5px;
  background: #fff;
}

.tutorial-item {
  display: grid;
  min-height: 96px;
  grid-template-columns: 28px minmax(0, 1fr) 240px 18px;
  grid-template-areas: "count copy preview arrow";
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border-bottom: 1px solid #edf0f5;
}

.tutorial-preview {
  grid-area: preview;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 240px;
  height: 96px;
  border: 1px solid #edf0f5;
  border-radius: 4px;
  background: #fff;
}

.tutorial-preview img {
  display: block;
  flex-shrink: 0;
  width: 180%;
  max-width: none;
  height: 180%;
  object-fit: cover;
}

.tutorial-list:focus-visible,
.tutorial-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
}

@media (max-width: 650px) {
  .tutorial-list {
    height: 400px;
  }

  .tutorial-item {
    grid-template-columns: minmax(0, 1fr) 100px 14px;
    grid-template-areas: "copy preview arrow";
    gap: 10px;
  }

  .tutorial-count {
    display: none;
  }

  .tutorial-preview {
    width: 100px;
    height: 64px;
  }
}

.tutorial-item:last-child {
  border-bottom: 0;
}

.tutorial-item:hover {
  background: #fbfcff;
}

.tutorial-count {
  grid-area: count;
  align-self: start;
  padding-top: 4px;
  color: #99a3b5;
  font-family: var(--mono);
  font-size: 9px;
}

.tutorial-item-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.tutorial-tag {
  color: #808da9;
  font-size: 7px;
}

.tutorial-item-copy strong {
  color: #363d49;
  font-size: 11px;
  font-weight: 600;
}

.tutorial-item-copy > span:last-child {
  color: #818895;
  font-size: 9px;
  line-height: 1.5;
}

.tutorial-arrow {
  grid-area: arrow;
  color: #758cc7;
  font-size: 12px;
}

.docs-note {
  margin: 17px 0 0;
  color: #8b919d;
  font-size: 9px;
  text-align: right;
}

.docs-note a {
  color: #4e67a6;
}

.docs-note a:hover {
  text-decoration: underline;
}

.site-footer {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.site-footer .brand-mark {
  width: 23px;
  height: 23px;
}

.site-footer .brand-name {
  font-size: 11px;
}

.footer-note,
.copyright,
.footer-github {
  color: #838a96;
  font-size: 9px;
}

.footer-github span {
  margin-left: 3px;
  color: var(--blue);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .section-wrap,
  .site-header,
  .site-footer {
    width: calc(100% - 48px);
  }

  .hero {
    grid-template-columns: 1fr 0.88fr;
    gap: 30px;
  }

  .tool-row {
    grid-template-columns: 30px 1fr 13px;
  }

  .tool-items {
    display: none;
  }

}

@media (max-width: 650px) {
  html {
    scroll-padding-top: 72px;
  }

  .section-wrap,
  .site-header,
  .site-footer {
    width: calc(100% - 40px);
  }

  .site-header {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding-block: 10px;
  }

  .product-nav {
    flex-wrap: wrap;
    gap: 2px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 37px;
    padding-block: 62px 49px;
  }

  .hero .eyebrow {
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 8px;
  }

  h1 {
    font-size: clamp(42px, 11.7vw, 57px);
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-meta {
    margin-top: 19px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .visual-content {
    padding-inline: 15px;
  }

  .tool-row {
    grid-template-columns: 30px 1fr 13px;
  }

  .tutorials-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
  }

  h2 {
    font-size: clamp(34px, 9.5vw, 44px);
  }

  .tutorials-inner {
    padding-block: 72px 71px;
  }

  .tutorials-heading > p {
    max-width: 430px;
  }

  .tutorial-layout {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .quickstart-card {
    padding: 17px;
  }

  .code-block {
    gap: 6px;
    padding-inline: 8px;
  }

  .code-block code {
    font-size: 7px;
  }

  .tutorial-item {
    min-height: 92px;
    padding-inline: 13px;
  }

  .docs-note {
    line-height: 1.6;
    text-align: left;
  }

  .site-footer {
    min-height: 88px;
    flex-wrap: wrap;
    gap: 7px 14px;
    padding-block: 15px;
  }

  .footer-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.docs-wrap {
  width: min(1000px, calc(100% - 80px));
  margin-inline: auto;
  padding-block: 38px 74px;
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 35px;
  color: #69758b;
  font-size: 10px;
  font-weight: 600;
}

.breadcrumb:hover {
  color: var(--blue);
}

.lesson-hero {
  max-width: 760px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.lesson-hero .eyebrow {
  margin-bottom: 16px;
}

.lesson-hero h1 {
  margin-bottom: 15px;
  font-size: clamp(43px, 6vw, 64px);
}

.lesson-lede {
  max-width: 660px;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lesson-meta span,
.catalog-number {
  padding: 6px 8px;
  border: 1px solid #e5e9f0;
  border-radius: 3px;
  background: #fff;
  color: #737d8d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.lesson-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 225px;
  align-items: start;
  gap: 48px;
  padding-top: 34px;
}

.lesson-content {
  min-width: 0;
}

.lesson-content section {
  margin-bottom: 39px;
  scroll-margin-top: 30px;
}

.lesson-content h2 {
  margin-bottom: 11px;
  font-size: 23px;
  letter-spacing: -0.055em;
  line-height: 1.3;
}

.lesson-content p {
  margin-bottom: 13px;
  color: #69717e;
  font-size: 11px;
  line-height: 1.85;
}

.lesson-content p a,
.source-note a {
  color: #3e5fb4;
  font-weight: 600;
}

.lesson-content p a:hover,
.source-note a:hover {
  text-decoration: underline;
}

.lesson-content p code,
.notice-box code,
.aside-card code {
  padding: 2px 4px;
  border-radius: 3px;
  background: #f1f3f7;
  color: #4c5871;
  font-family: var(--mono);
  font-size: 0.9em;
}

.code-panel {
  display: block;
  overflow: hidden;
  margin-block: 16px;
  border: 1px solid #e3e8f0;
  border-radius: 5px;
  background: #fff;
}

.code-head {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 12px;
  border-bottom: 1px solid #edf0f4;
  color: #818b9d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.code-panel pre {
  overflow-x: auto;
  margin: 0;
  padding: 14px 15px;
  color: #414b5c;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.75;
  tab-size: 4;
}

.code-panel pre code {
  font-family: inherit;
}

.code-panel .copy-button {
  min-width: 42px;
  padding: 5px 8px;
}

.language-example {
  margin-block: 18px;
}

.language-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  border: 1px solid #e3e8f0;
  border-radius: 5px;
  background: #f5f7fb;
}

.language-tabs [role="tab"] {
  padding: 7px 11px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #69758b;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
}

.language-tabs [role="tab"][aria-selected="true"] {
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 44, 73, 0.12);
  color: var(--blue);
}

.language-panel[hidden] {
  display: none;
}

.plot-preview {
  margin: 26px 0 42px;
  overflow: hidden;
  border: 1px solid #e3e8f0;
  border-radius: 7px;
  background: #fff;
}

.plot-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.plot-preview figcaption {
  padding: 10px 14px;
  border-top: 1px solid #edf0f4;
  color: #768196;
  font-size: 10px;
  line-height: 1.6;
}

.language-unavailable {
  margin-top: 10px;
  padding: 15px 16px;
  border: 1px solid #e3e8f0;
  border-radius: 5px;
  background: #f8f9fc;
}

.language-unavailable p {
  margin: 0;
}

.language-unavailable p + p {
  margin-top: 8px;
}

.lesson-aside {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 12px;
}

.aside-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.aside-label {
  margin: 0 0 2px;
  color: #8993a3;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.aside-card > a {
  color: #606a7a;
  font-size: 9px;
  line-height: 1.5;
}

.aside-card > a:hover {
  color: var(--blue);
}

.aside-tint {
  background: #f5f7fb;
}

.aside-tint p:not(.aside-label) {
  margin: -3px 0 0;
  color: #727b89;
  font-size: 9px;
  line-height: 1.7;
}

.aside-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 5px;
  background: #e8eefb;
  color: #536fc0;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
}

.aside-tint > a {
  color: #3e5fb4;
  font-weight: 600;
}

.notice-box {
  margin-bottom: 31px;
  padding: 16px 17px;
  border: 1px solid #dfe6f5;
  border-left: 3px solid #6f89d2;
  border-radius: 4px;
  background: #f6f8fd;
}

.notice-box strong {
  display: block;
  margin-bottom: 7px;
  color: #3e4b68;
  font-size: 11px;
}

.notice-box p {
  margin-bottom: 0;
}

.inline-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 1px 0 14px;
  color: #3e5fb4;
  font-size: 10px;
  font-weight: 600;
}

.lesson-pager {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 5px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.lesson-pager a {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lesson-pager a:last-child {
  margin-left: auto;
  text-align: right;
}

.lesson-pager span {
  color: #939baa;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.lesson-pager strong {
  color: #3d5eae;
  font-size: 10px;
  font-weight: 600;
}

.tutorial-index {
  padding-top: 77px;
}

.tutorial-index .lesson-hero {
  padding-bottom: 25px;
  border: 0;
}

.tutorial-index .lesson-hero h1 {
  font-size: clamp(46px, 6vw, 66px);
}

.tutorial-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-block: 12px 27px;
}

.product-catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.catalog-card {
  display: flex;
  min-height: 195px;
  flex-direction: column;
  align-items: flex-start;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.catalog-card:hover {
  transform: translateY(-2px);
  border-color: #d4dced;
  box-shadow: 0 10px 26px rgba(48, 66, 107, 0.06);
}

.product-card {
  min-height: 275px;
  padding-top: 140px;
  background-color: #fff;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.simulator-battery {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0.92) 88%, #fff 100%),
    url("assets/battery-simulator-preview.svg");
}

.simulator-lng {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0.92) 88%, #fff 100%),
    url("assets/lng-simulator-preview.svg");
}

.simulator-robot {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0.92) 88%, #fff 100%),
    url("assets/robot-simulator-preview.png");
}

.catalog-number {
  margin-bottom: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8b96a8;
}

.catalog-card h2 {
  margin-bottom: 8px;
  font-size: 17px;
  letter-spacing: -0.045em;
}

.catalog-card p {
  max-width: 390px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: #3e5fb4;
  font-size: 9px;
  font-weight: 600;
}

.source-note {
  margin: 0;
  color: #858d9a;
  font-size: 9px;
}

.install-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 15px 17px;
  border: 1px solid #e1e6f0;
  border-radius: 5px;
  background: #f5f7fb;
}

.install-prompt > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.install-prompt strong {
  color: #414a5a;
  font-size: 10px;
}

.install-prompt > span:first-child > span {
  color: #7a8290;
  font-size: 9px;
}

.install-prompt .catalog-link {
  flex: 0 0 auto;
  margin-top: 0;
}

@media (max-width: 800px) {
  .docs-wrap {
    width: calc(100% - 48px);
  }

  .product-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-grid {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 28px;
  }
}

@media (max-width: 650px) {
  .docs-wrap {
    width: calc(100% - 40px);
    padding-block: 27px 57px;
  }

  .breadcrumb {
    margin-bottom: 25px;
  }

  .lesson-hero {
    padding-bottom: 24px;
  }

  .lesson-hero h1 {
    font-size: clamp(40px, 11vw, 54px);
  }

  .lesson-lede {
    font-size: 12px;
  }

  .lesson-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 27px;
  }

  .lesson-content section {
    margin-bottom: 32px;
  }

  .lesson-content h2 {
    font-size: 21px;
  }

  .lesson-content p {
    font-size: 10px;
  }

  .code-panel pre {
    font-size: 9px;
  }

  .lesson-aside {
    position: static;
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-content {
    grid-row: 2;
  }

  .lesson-aside .aside-card:first-child {
    display: none;
  }

  .lesson-pager {
    margin-top: 5px;
  }

  .tutorial-index {
    padding-top: 54px;
  }

  .tutorial-catalog {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .service-catalog {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .product-catalog {
    grid-template-columns: 1fr;
  }

  .install-prompt {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .catalog-card {
    min-height: 165px;
  }
}

@media (max-width: 390px) {
  .lesson-aside {
    grid-template-columns: 1fr;
  }
}
