.smolny-mark {
  flex: none;
  width: 28px;
  height: 24px;
}

.dark .home-footer-brand .smolny-mark {
  filter: none;
}

@media (min-width: 1101px) {
  .machine-capabilities .capability-panel {
    display: flex;
    flex-direction: column;
  }

  .machine-capabilities .capability-panel-copy {
    margin-bottom: 6px;
  }

  .machine-capabilities .capability-panel > .capability-graphic {
    flex: none;
    margin-top: auto;
  }
}

#faq-title {
  scroll-margin-top: 105px;
}

.smolny-guide {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--line-strong, #d6d9e3);
  border-radius: 14px;
  padding: 0;
  background: var(--bg, #f7f7f9);
  color: var(--ink, #292b34);
  box-shadow: 0 24px 70px #0f141e38;
}

.smolny-guide::backdrop {
  background: #19223846;
  backdrop-filter: blur(4px);
}

.smolny-guide-panel {
  padding: clamp(22px, 5vw, 36px);
}

.smolny-guide h2 {
  margin: 24px 0 12px;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.smolny-guide p, .smolny-guide li {
  margin-block: 10px;
  color: var(--muted, #676d7a);
  font-size: 15px;
  line-height: 1.6;
}

.smolny-guide ol {
  margin-block: 16px 23px;
  padding-inline-start: 1.35rem;
  list-style: decimal;
}

.smolny-guide .open-button {
  margin-top: 16px;
}

.smolny-guide-close {
  display: block;
  margin-inline-start: auto;
  padding: 5px 9px;
  border: 1px solid var(--line, #dddfe7);
  border-radius: 5px;
  color: var(--muted, #676d7a);
  cursor: pointer;
  font-size: 12px;
}

.smolny-guide-links {
  display: grid;
  align-items: start;
  justify-items: start;
  gap: 10px;
  margin-top: 18px;
}

.cmdk__input {
  cursor: text;
}

.cmdk__esc {
  cursor: pointer;
}

@media (min-width: 761px) {
  .open-hero-glass .open-hero-copy p {
    max-width: 600px;
  }
}

.open-hero-support > .open-actions:first-child {
  margin-top: 28px;
}

.build-prompt-text {
  display: block;
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cobalt-prompt-target {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 640px) {
  .build-section .build-prompt-text {
    font-size: clamp(11.5px, 3.2vw, 14px);
    line-height: 1.55;
  }

  .build-section .build-heading h2 {
    font-size: clamp(28px, 8vw, 38px);
  }
}



/* Animated hover + click/focus FAQ accordion (all 8 answers in raw SSR HTML) */
article.home-faq-item {
  border-bottom: 1px solid var(--section-line, #d9deea);
}
article.home-faq-item .home-faq-question {
  margin: 0;
  font: inherit;
}
article.home-faq-item .home-faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #474b5a;
}
article.home-faq-item .home-faq-trigger svg {
  color: #9a9fb1;
  flex-shrink: 0;
  transition: transform .26s ease;
}
article.home-faq-item .home-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .26s ease, opacity .26s ease;
}
article.home-faq-item .home-faq-answer-inner {
  overflow: hidden;
}
article.home-faq-item .home-faq-answer p {
  margin: 0;
  padding: 0 26px 24px 0;
  font-size: 13px;
  line-height: 1.8;
}
article.home-faq-item:hover .home-faq-answer,
article.home-faq-item:focus-within .home-faq-answer,
article.home-faq-item.is-open .home-faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}
article.home-faq-item:hover .home-faq-trigger svg,
article.home-faq-item:focus-within .home-faq-trigger svg,
article.home-faq-item.is-open .home-faq-trigger svg {
  transform: rotate(180deg);
}

.home-section.home-faq { border-top: 0 !important; }
.home-section.build-section { border-bottom: 0 !important; }


/* Animated deep-blue Hero CTA ("Быстрый старт") + matching Header "Войти" */
@keyframes smolnyCtaShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.open-hero .open-actions {
  justify-content: center !important;
}
.open-hero a.open-button:not(.open-button-secondary) {
  min-width: 0 !important;
  padding-inline: 24px !important;
  background: linear-gradient(125deg, #253685 0%, #344cb8 50%, #1e2d70 100%) !important;
  background-size: 220% 220% !important;
  animation: smolnyCtaShimmer 6s ease-in-out infinite !important;
  color: #ffffff !important;
  border-color: #2f45a8 !important;
  box-shadow: 0 6px 20px rgba(47, 69, 168, 0.24) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease !important;
}
.open-hero a.open-button:not(.open-button-secondary):hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 10px 26px rgba(47, 69, 168, 0.34) !important;
  filter: brightness(1.06) !important;
  color: #ffffff !important;
}
a.bg-primary[href="https://api.smolny.tech/dashboard"] {
  background: #253685 !important;
  color: #ffffff !important;
  border-color: #253685 !important;
  box-shadow: none !important;
}
a.bg-primary[href="https://api.smolny.tech/dashboard"]:hover {
  background: #2f45a8 !important;
  color: #ffffff !important;
}
@media (prefers-reduced-motion: reduce) {
  .open-hero a.open-button:not(.open-button-secondary) {
    animation: none !important;
  }
}


/* Remove corner arrows from Row 2 capability cards & footer captions/arrows from Row 3 guide cards */
.capability-panel-copy h3 a svg,
.home-guides--grid-row .guide-card-link {
  display: none !important;
}
.home-guides--grid-row .guide-card p {
  margin-bottom: 0 !important;
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 10px 16px;
  background: #1d2230;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus { left: 16px; }

/* === Unified 9-element 3x3 grid: Benefits + Capabilities + Guides === */
.home-section.machine-benefits { padding-bottom: 0; }
.home-section.machine-capabilities { padding-block: 0; scroll-margin-top: 105px; }
.home-section.machine-capabilities .capabilities-panels { border-top: 0; }
.home-section.home-guides.home-guides--grid-row {
  width: min(calc(100% - 100px), 1220px);
  margin-inline: auto;
  padding-block: 0 72px;
  scroll-margin-top: 105px;
}
.home-section.home-guides.home-guides--grid-row .home-guide-rail {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
  padding-inline: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  list-style: none;
  overflow: visible;
  scroll-snap-type: none;
  border: 1px solid #d9deea;
  border-top: 0;
}
.home-guides--grid-row .home-guide-rail > li { min-width: 0; width: auto; flex: none; }
.home-guides--grid-row .home-guide-rail > li + li { border-left: 1px solid #d9deea; }
.home-guides--grid-row .guide-card {
  border: 0;
  border-radius: 0;
  min-height: 368px;
  height: 100%;
  background: transparent;
}
.home-guides--grid-row .guide-card:hover { background: #f2f4fb; }
.home-guides--grid-row :is(.guide-illustration, .guide-mark) { border-radius: 0; }
.grid9-footer { display: flex; justify-content: flex-end; padding-top: 16px; }

@media (max-width: 1100px) {
  .home-section.home-guides.home-guides--grid-row .home-guide-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .home-guides--grid-row .home-guide-rail > li + li { border-left: 0; }
  .home-guides--grid-row .home-guide-rail > li { border-top: 1px solid #d9deea; }
  .home-guides--grid-row .home-guide-rail > li:first-child,
  .home-guides--grid-row .home-guide-rail > li:nth-child(2) { border-top: 0; }
  .home-guides--grid-row .home-guide-rail > li:nth-child(even) { border-left: 1px solid #d9deea; }
}
@media (max-width: 760px) {
  .home-section.home-guides.home-guides--grid-row {
    width: calc(100% - 48px);
    padding-bottom: 48px;
  }
  .home-section.home-guides.home-guides--grid-row .home-guide-rail {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .home-guides--grid-row .home-guide-rail > li {
    border-left: 0;
    border-top: 1px solid #d9deea;
  }
  .home-guides--grid-row .home-guide-rail > li:first-child { border-top: 0; }
  .home-guides--grid-row .home-guide-rail > li:nth-child(even) { border-left: 0; }
  .home-guides--grid-row .guide-card { min-height: auto; }
}

/* === Boat.dev x Lizard.build Cost Comparison & Benchmarks (#pricing) === */
.boat-section {
  scroll-margin-top: 96px;
  padding-block: 56px 84px;
  font-variant-numeric: tabular-nums;
}
.boat-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.boat-header p { margin-top: 10px; max-width: 62ch; }
.boat-header-links { display: flex; align-items: center; gap: 20px; }

.boat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 44px;
  padding: 32px;
  border: 1px solid #d9deea;
  background: #ffffff;
}
.boat-controls { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 100%; }
.boat-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.boat-lbl { font-size: 13px; color: #676d7a; }
.boat-slider-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; width: 100%; }
.boat-slider-wrap input[type="range"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  accent-color: #2f45a8;
  cursor: pointer;
}
.boat-slider-val {
  flex-shrink: 0;
  min-width: 48px;
  white-space: nowrap;
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #1d2230;
}
.boat-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.boat-pills button {
  padding: 6px 10px;
  border: 1px solid #e2e6f0;
  background: #f5f7fc;
  color: #4a5160;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.boat-pills button:hover { background: #e8edf9; color: #1d2230; }
.boat-pills button.is-active {
  background: #2f45a8;
  border-color: #2f45a8;
  color: #ffffff;
  font-weight: 600;
}
.boat-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12.5px;
  color: #5b6270;
  cursor: pointer;
}
.boat-check input { accent-color: #2f45a8; width: 14px; height: 14px; }

.boat-readout { margin-top: auto; padding-top: 28px; border-top: 0; }
.boat-price-big {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: #1d2230;
}
.boat-price-big small { font-size: 16px; font-weight: 450; color: #676d7a; letter-spacing: 0; }
.boat-formula {
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #676d7a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.boat-tier-wrap {
  margin-top: 12px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.boat-tier-caption {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #676d7a;
  margin-bottom: 6px;
}
.boat-tier-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d9deea;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.boat-tier-table th,
.boat-tier-table td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid #ebedf5;
}
.boat-tier-table th { color: #676d7a; font-weight: 500; background: #f8f9fc; }
.boat-tier-table tr:last-child td { border-bottom: 0; }
.boat-tier-row { cursor: pointer; transition: background .12s; }
.boat-tier-row:hover { background: #f3f5fb; }
.boat-tier-row.is-active { background: #2f45a8; color: #ffffff; }
.boat-tier-row.is-active td { color: #ffffff; }
.boat-tier-foot {
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #7b8291;
}

/* Right column: Boat horizontal bar chart */
.boat-results { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-width: 0; max-width: 100%; }
.boat-bars { display: flex; flex-direction: column; gap: 9px; }
.boat-bar-row {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) 98px 42px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #5b6270;
}
.boat-bar-row.is-smolny { color: #1d2230; font-weight: 650; }
.boat-bar-name { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.boat-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #edf1fa;
  color: #2f45a8;
  font-weight: 600;
}
.boat-bar-track { height: 14px; background: transparent; display: flex; align-items: center; }
.boat-bar-fill {
  height: 11px;
  border-radius: 2px;
  background: #d5dcf2;
  transition: width .22s ease;
}
.boat-bar-row.is-smolny .boat-bar-fill { background: #2f45a8; }
.boat-bar-price {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  white-space: nowrap;
}
.boat-bar-mult {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #7b8291;
}

.boat-notes { padding-top: 8px; border-top: 0; }
.boat-notes h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #1d2230; }
.boat-notes ul { margin: 0; padding-left: 16px; display: grid; gap: 6px; font-size: 13px; color: #5b6270; line-height: 1.5; }
.boat-notes strong { color: #1d2230; font-weight: 600; }
.boat-source { margin: 12px 0 0 !important; font-size: 11.5px !important; color: #838a99 !important; line-height: 1.45 !important; }

/* Compact Lizard-style speed benchmarks */
.lizard-bench { margin-top: 24px; }
.lizard-bench-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lizard-bench-head h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.025em; color: #1d2230; }
.lizard-bench-head span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #676d7a;
}
.lizard-bench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #d9deea;
  background: #ffffff;
}
.lizard-bench-card {
  padding: 18px 20px;
  border-right: 1px solid #d9deea;
  border-bottom: 1px solid #d9deea;
}
.lizard-bench-card:nth-child(3n) { border-right: 0; }
.lizard-bench-card:nth-child(n+4) { border-bottom: 0; }
.lizard-bench-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.lizard-bench-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 650;
  color: #2f45a8;
  white-space: nowrap;
}
.lizard-bench-bar {
  flex: 1;
  height: 5px;
  background: #eef1f8;
  border-radius: 99px;
  overflow: hidden;
}
.lizard-bench-bar > span { display: block; height: 100%; background: #4054b5; border-radius: 99px; }
.lizard-bench-card h4 { margin: 0; font-size: 14px; font-weight: 550; color: #1d2230; }
.lizard-bench-card p { margin: 4px 0 0 !important; font-size: 12.5px !important; line-height: 1.45 !important; color: #676d7a !important; }

@media (max-width: 980px) {
  .boat-grid { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 32px; }
  .lizard-bench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lizard-bench-card:nth-child(3n) { border-right: 1px solid #d9deea; }
  .lizard-bench-card:nth-child(2n) { border-right: 0; }
  .lizard-bench-card:nth-child(n+4) { border-bottom: 1px solid #d9deea; }
  .lizard-bench-card:nth-child(n+5) { border-bottom: 0; }
}
@media (max-width: 640px) {
  .boat-grid { padding: 16px; gap: 24px; }
  .boat-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .boat-readout { padding-top: 16px; }
  .boat-tier-table { font-size: 11px; }
  .boat-tier-table th,
  .boat-tier-table td { padding: 6px 7px; white-space: nowrap; }
  .boat-bars { gap: 12px; }
  .boat-bar-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "name price mult"
      "track track track";
    column-gap: 8px;
    row-gap: 5px;
    font-size: 12.5px;
  }
  .boat-bar-name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .boat-bar-price { grid-area: price; font-size: 12px; }
  .boat-bar-mult { grid-area: mult; font-size: 11.5px; min-width: 34px; }
  .boat-bar-track { grid-area: track; height: 10px; background: #f2f4fa; border-radius: 3px; overflow: hidden; }
  .boat-bar-fill { height: 10px; border-radius: 3px; }
  .lizard-bench-grid { grid-template-columns: minmax(0, 1fr); }
  .lizard-bench-card { border-right: 0 !important; border-bottom: 1px solid #d9deea !important; }
  .lizard-bench-card:last-child { border-bottom: 0 !important; }
}

@media (max-width: 720px) {
  .sub-header-in {
    width: calc(100% - 32px) !important;
    height: auto !important;
    min-height: 56px;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .sub-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 14px !important;
    font-size: 13px !important;
  }
  .sub-nav .sub-cta {
    margin-left: auto;
    padding: 6px 12px;
  }
}
