/* YMapster от ALPINE – продуктовая страница /ymapster (v3).
   Фирменный стиль YMapster: тёплый графит и жёлтый акцент Яндекс Карт (#e5b422 / #f5ca42),
   без градиентов, стекла, свечений и анимаций появления. */

:root {
  --ym-bg: #151513;
  --ym-surface: #1a1a17;
  --ym-card: #20201c;
  --ym-card-2: #282823;
  --ym-hover: #302f29;
  --ym-line: #2c2b27;
  --ym-line-strong: #3c3a34;
  --ym-line-hover: #524f47;
  --ym-ink: #f3f2ed;
  --ym-muted: #9e9b92;
  --ym-dim: #79766d;
  --ym-accent: #e5b422;
  --ym-accent-hover: #f2c53a;
  --ym-accent-light: #f5ca42;
  --ym-accent-ink: #141310;
  --ym-accent-soft: rgba(245, 202, 66, 0.12);
  --ym-accent-line: rgba(245, 202, 66, 0.42);
  --ym-pin: #e5484d;
  --ym-pin-soft: rgba(229, 72, 77, 0.14);
  --ym-ok: #30a46c;
  --ym-ok-soft: rgba(48, 164, 108, 0.14);
  --ym-star: #f5ca42;
  --ym-light-bg: #f5f4ef;
  --ym-light-ink: #151513;
  --ym-light-muted: #59564e;
  --ym-light-line: #dedbd2;
  --ym-sans: "Golos Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ym-mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
  --ym-radius: 14px;
  --ym-radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ym-bg);
  color: var(--ym-ink);
  font: 400 16px/1.65 var(--ym-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ym-accent-light); color: var(--ym-accent-ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; color: var(--ym-ink); text-wrap: balance; }
h1 { font-size: clamp(36px, 4.3vw, 56px); line-height: 1.07; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
a { color: inherit; }
button, input { font-family: inherit; }
code {
  font-family: var(--ym-mono);
  font-size: 0.88em;
  background: var(--ym-card-2);
  color: #e6e3d8;
  padding: 2px 6px;
  border-radius: 5px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ym-accent);
  outline-offset: 3px;
}

.ym-skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: #ffffff;
  color: #141310;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.ym-skip:focus { top: 16px; }

.ym-wrap {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.ym-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ym-bg);
  border-bottom: 1px solid var(--ym-line);
}
.ym-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
.ym-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.ym-brand__logo {
  display: block;
  height: 26px;
  width: auto;
}
.ym-brand__family {
  font-size: 12px;
  color: var(--ym-dim);
  padding-left: 10px;
  border-left: 1px solid var(--ym-line-strong);
  line-height: 1.2;
}
.ym-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ym-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ym-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.ym-nav a:hover { color: var(--ym-ink); }
.ym-nav a.is-current {
  color: var(--ym-ink);
  border-bottom-color: var(--ym-accent-light);
}
.ym-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.ym-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--ym-radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.ym-btn--sm { padding: 9px 15px; font-size: 13.5px; }
.ym-btn--lg { padding: 13px 22px; font-size: 15px; }
.ym-btn--full { width: 100%; justify-content: space-between; padding: 14px 20px; font-size: 15px; }
.ym-btn--primary {
  background: var(--ym-accent);
  border-color: var(--ym-accent);
  color: var(--ym-accent-ink);
}
.ym-btn--primary:hover {
  background: var(--ym-accent-hover);
  border-color: var(--ym-accent-hover);
}
.ym-btn--secondary {
  background: var(--ym-card);
  border-color: var(--ym-line-strong);
  color: var(--ym-ink);
}
.ym-btn--secondary:hover {
  background: var(--ym-card-2);
  border-color: var(--ym-line-hover);
}
.ym-btn--ghost {
  background: transparent;
  color: var(--ym-muted);
  padding: 9px 12px;
}
.ym-btn--ghost:hover { color: var(--ym-ink); }

.ym-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ym-accent);
  flex-shrink: 0;
}
.ym-dot--ok { background: var(--ym-ok); }

/* 1. Hero */
.ym-hero {
  padding: 60px 0 72px;
  border-bottom: 1px solid var(--ym-line);
}
.ym-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.12fr);
  gap: 44px;
  align-items: center;
}
.ym-lead {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ym-muted);
  max-width: 500px;
}
.ym-hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.ym-hero__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--ym-line);
  gap: 16px;
}
.ym-hero__specs strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ym-ink);
  line-height: 1.3;
}
.ym-hero__specs span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ym-dim);
  line-height: 1.4;
}

/* Hero Cartographic Stage */
.ym-hero__stage {
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
  border-radius: 16px;
  overflow: hidden;
}
.ym-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--ym-card);
  border-bottom: 1px solid var(--ym-line);
}
.ym-stage-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--ym-bg);
  border: 1px solid var(--ym-line);
  font-size: 13px;
  color: var(--ym-ink);
}
.ym-stage-search svg { color: var(--ym-muted); flex-shrink: 0; }
.ym-stage-search > span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ym-stage-region {
  margin-left: auto;
  font-size: 12px;
  color: var(--ym-muted);
  padding-left: 10px;
  border-left: 1px solid var(--ym-line);
  flex-shrink: 0;
}
.ym-stage-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--ym-accent-light);
  background: var(--ym-accent-soft);
  padding: 5px 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.ym-stage-map {
  position: relative;
  background: #141412;
}
.ym-map-svg {
  display: block;
  width: 100%;
  height: auto;
}
.ym-hero-route { transition: opacity 0.16s ease; }
.ym-hero__stage:not([data-hero-action="route"]) .ym-hero-route { opacity: 0.25; }

.ym-hero-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: min(352px, calc(100% - 32px));
  padding: 14px 16px;
  background: #1c1c18;
  border: 1px solid var(--ym-line-strong);
  border-radius: 12px;
}
.ym-hero-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ym-hero-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ym-ink);
  line-height: 1.3;
}
.ym-hero-card__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ym-muted);
  font-variant-numeric: tabular-nums;
}
.ym-hero-card__meta strong { color: var(--ym-ink); font-weight: 600; }
.ym-star { color: var(--ym-star); }
.ym-hero-card__tag {
  font-size: 11px;
  font-weight: 600;
  color: #ff9c9f;
  background: var(--ym-pin-soft);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.ym-hero-card__body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ym-line);
  min-height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ym-hero-card__route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ym-hero-card__open { color: #5bd698; font-weight: 500; }
.ym-hero-card__time { color: var(--ym-accent-light); font-weight: 500; }
.ym-hero-card__quote {
  font-size: 12px;
  color: var(--ym-ink);
  line-height: 1.4;
}
.ym-hero-card__quote-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ym-muted);
}
.ym-hero-card__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 6px;
  align-items: center;
}
.ym-hero-card__thumb {
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--ym-card-2);
  border: 1px solid var(--ym-line-strong);
  font-size: 11px;
  color: var(--ym-muted);
  text-align: center;
}
.ym-hero-card__photos-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--ym-accent-light);
  white-space: nowrap;
}
.ym-hero-card__mono {
  font-family: var(--ym-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ym-ink);
}
.ym-hero-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.ym-hero-card__pills button {
  font-size: 11px;
  font-weight: 500;
  color: var(--ym-muted);
  background: var(--ym-card-2);
  border: 1px solid transparent;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.ym-hero-card__pills button:hover {
  color: var(--ym-ink);
  border-color: var(--ym-line-strong);
}
.ym-hero-card__pills button[aria-pressed="true"] {
  background: var(--ym-accent);
  border-color: var(--ym-accent);
  color: var(--ym-accent-ink);
  font-weight: 600;
}

.ym-stage-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ym-line);
  background: var(--ym-card);
}
.ym-stage-metrics > div {
  padding: 11px 12px;
  border-left: 1px solid var(--ym-line);
  min-width: 0;
}
.ym-stage-metrics > div:first-child { border-left: 0; }
.ym-stage-metrics span {
  display: block;
  font-size: 11px;
  color: var(--ym-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ym-stage-metrics strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 650;
  color: var(--ym-ink);
  font-variant-numeric: tabular-nums;
}

/* Sections */
.ym-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--ym-line);
}
.ym-section--surface {
  background: var(--ym-surface);
}
.ym-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}
.ym-section-head p {
  color: var(--ym-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}

/* 2. Modes */
.ym-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ym-mode-card {
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
  border-radius: var(--ym-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.ym-mode-visual {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--ym-line);
}
.ym-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--ym-card);
  border: 1px solid var(--ym-line-strong);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ym-ink);
}
.ym-step-chip.is-accent {
  background: var(--ym-accent-soft);
  border-color: var(--ym-accent-line);
  color: var(--ym-accent-light);
}
.ym-step-chip.is-target {
  background: var(--ym-pin-soft);
  border-color: rgba(229, 72, 77, 0.38);
  color: #ffb0b3;
}
.ym-step-num {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--ym-card-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--ym-ink);
  font-variant-numeric: tabular-nums;
}
.ym-step-arrow { color: var(--ym-dim); font-size: 13px; }
.ym-mode-card h3 { font-size: 21px; margin-bottom: 10px; }
.ym-mode-card > p { font-size: 15px; color: var(--ym-muted); line-height: 1.62; }
.ym-mode-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--ym-line);
  display: grid;
  gap: 9px;
}
.ym-mode-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: #dad8cf;
  line-height: 1.5;
}
.ym-mode-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ym-accent);
}
.ym-mode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
}
.ym-mode-tags span {
  font-size: 12px;
  color: var(--ym-muted);
  background: var(--ym-bg);
  border: 1px solid var(--ym-line);
  padding: 4px 9px;
  border-radius: 7px;
}

/* Targets hairline strip */
.ym-targets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--ym-line);
  border-bottom: 1px solid var(--ym-line);
}
.ym-targets article {
  padding: 24px 22px;
  border-left: 1px solid var(--ym-line);
}
.ym-targets article:first-child { border-left: 0; padding-left: 0; }
.ym-targets article:last-child { padding-right: 0; }
.ym-targets h3 { font-size: 16px; margin-bottom: 8px; }
.ym-targets p { font-size: 14px; color: var(--ym-muted); line-height: 1.6; }

/* 3a. Real Screenshots Gallery (.ym-shots) & Native Lightbox (.ym-lightbox) */
.ym-shots {
  background: var(--ym-bg);
  border: 1px solid var(--ym-line-strong);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}
.ym-shots__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 16px 20px;
  background: var(--ym-card);
  border-bottom: 1px solid var(--ym-line);
}
.ym-shots__meta {
  min-width: 0;
  flex: 1 1 360px;
}
.ym-shots__title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ym-shots__num {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--ym-accent-soft);
  border: 1px solid var(--ym-accent-line);
  color: var(--ym-accent-light);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ym-shots__title-row strong {
  font-size: 15px;
  font-weight: 650;
  color: var(--ym-ink);
  line-height: 1.3;
}
.ym-shots__meta p {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ym-muted);
  line-height: 1.5;
}
.ym-shots__controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.ym-shots__counter {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ym-dim);
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}
.ym-shots__nav,
.ym-shots__zoom {
  height: 32px;
  border-radius: 8px;
  background: var(--ym-card-2);
  border: 1px solid var(--ym-line-strong);
  color: var(--ym-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.ym-shots__nav {
  width: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.ym-shots__zoom {
  padding: 0 12px;
  white-space: nowrap;
}
.ym-shots__nav:hover,
.ym-shots__zoom:hover {
  background: var(--ym-hover);
  border-color: var(--ym-line-hover);
  color: var(--ym-accent-light);
}
.ym-shots__stage {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  background: #121210;
  cursor: zoom-in;
  text-align: center;
}
.ym-shots__stage picture {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ym-line);
  background: #151513;
}
.ym-shots__stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1174 / 860;
  object-fit: contain;
  background: #151513;
}
.ym-shots__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
  background: var(--ym-surface);
  border-top: 1px solid var(--ym-line);
}
.ym-shots__thumb {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: var(--ym-bg);
  border: 1px solid var(--ym-line);
  color: var(--ym-muted);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}
.ym-shots__thumb:hover {
  border-color: var(--ym-line-strong);
  background: var(--ym-card);
  color: var(--ym-ink);
}
.ym-shots__thumb[aria-selected="true"] {
  border-color: var(--ym-accent-line);
  background: var(--ym-card);
  color: var(--ym-ink);
}
.ym-shots__thumb-frame {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--ym-line);
  background: #151513;
}
.ym-shots__thumb-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1174 / 860;
  object-fit: cover;
}
.ym-shots__thumb-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0 2px;
}
.ym-shots__thumb-label span {
  font-size: 11px;
  font-weight: 700;
  color: var(--ym-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ym-shots__thumb[aria-selected="true"] .ym-shots__thumb-label span {
  color: var(--ym-accent-light);
}
.ym-shots__thumb-label strong {
  font-size: 12.5px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ym-lightbox {
  padding: 0;
  border: 1px solid var(--ym-line-strong);
  border-radius: 14px;
  background: var(--ym-bg);
  color: var(--ym-ink);
  width: min(1220px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}
.ym-lightbox::backdrop {
  background: rgba(12, 12, 10, 0.88);
}
.ym-lightbox__shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 34px);
}
.ym-lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ym-card);
  border-bottom: 1px solid var(--ym-line);
}
.ym-lightbox__copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.ym-lightbox__copy strong {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ym-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ym-lightbox__copy span {
  font-size: 12px;
  color: var(--ym-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ym-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ym-lightbox__body {
  padding: 12px 16px;
  background: #121210;
  overflow: hidden;
  text-align: center;
}
.ym-lightbox__body img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 188px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid var(--ym-line);
}
.ym-lightbox__caption {
  padding: 11px 16px;
  background: var(--ym-surface);
  border-top: 1px solid var(--ym-line);
  font-size: 13px;
  color: var(--ym-muted);
}

/* 3. Interactive Desktop App Showcase (#interface) */
.ym-app {
  background: var(--ym-bg);
  border: 1px solid var(--ym-line-strong);
  border-radius: 16px;
  overflow: hidden;
}
.ym-app__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 18px;
  background: var(--ym-card);
  border-bottom: 1px solid var(--ym-line);
}
.ym-app__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ym-app__brand img {
  display: block;
  border-radius: 5px;
}
.ym-app__brand strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--ym-ink);
}
.ym-app__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--ym-ok-soft);
  color: #6ce0a8;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ym-app__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ym-app__tabs button {
  padding: 7px 13px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ym-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.ym-app__tabs button:hover {
  color: var(--ym-ink);
  background: var(--ym-card-2);
}
.ym-app__tabs button[aria-selected="true"] {
  background: var(--ym-bg);
  border-color: var(--ym-accent-line);
  color: var(--ym-accent-light);
  font-weight: 600;
}

.ym-app__panel { padding: 20px; }
.ym-app__panel[hidden] { display: none; }

.ym-app__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.ym-app__stats > div {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
}
.ym-app__stats span {
  display: block;
  font-size: 12px;
  color: var(--ym-dim);
}
.ym-app__stats strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ym-ink);
  font-variant-numeric: tabular-nums;
}

.ym-app__workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 16px;
}
.ym-app__threads,
.ym-app__log {
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.ym-app__pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ym-line);
}
.ym-app__pane-head strong { font-size: 14px; color: var(--ym-ink); }
.ym-app__pane-head > span { font-size: 12px; color: var(--ym-dim); font-variant-numeric: tabular-nums; }

.ym-thread-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ym-thread {
  padding: 12px;
  border-radius: 9px;
  background: var(--ym-bg);
  border: 1px solid var(--ym-line);
}
.ym-thread.is-target { border-color: var(--ym-accent-line); }
.ym-thread__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}
.ym-thread__id {
  font-family: var(--ym-mono);
  font-size: 11px;
  color: var(--ym-dim);
}
.ym-thread__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--ym-card-2);
  color: var(--ym-muted);
}
.ym-thread__tag.is-target { background: var(--ym-pin-soft); color: #ff9c9f; }
.ym-thread__tag.is-accent { background: var(--ym-accent-soft); color: var(--ym-accent-light); }
.ym-thread__tag.is-ok { background: var(--ym-ok-soft); color: #6ce0a8; }
.ym-thread__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ym-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ym-thread__sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ym-muted);
  line-height: 1.4;
}

.ym-log-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ym-log-state {
  font-size: 12px;
  color: #6ce0a8;
  font-variant-numeric: tabular-nums;
}
.ym-app__log.is-paused .ym-log-state { color: #eab308; }
.ym-log-pause {
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--ym-card);
  border: 1px solid var(--ym-line-strong);
  color: var(--ym-ink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}
.ym-log-pause:hover { background: var(--ym-hover); border-color: var(--ym-line-hover); }
.ym-log-pause[aria-pressed="true"] {
  background: var(--ym-accent-soft);
  border-color: var(--ym-accent-line);
  color: var(--ym-accent-light);
}

.ym-log-lines {
  display: grid;
  gap: 8px;
  font-family: var(--ym-mono);
  font-size: 12px;
  line-height: 1.45;
}
.ym-log-line {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  color: #dad8cf;
}
.ym-log-line time { color: var(--ym-dim); font-variant-numeric: tabular-nums; }
.ym-log-line .is-ok { color: #5bd698; }
.ym-log-line .is-info { color: var(--ym-accent-light); }
.ym-log-line .is-warn { color: #eab308; }
.ym-log-line .is-dim { color: var(--ym-muted); }

/* Tab 2: Warm-up step builder */
.ym-warm-builder {
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
  border-radius: 12px;
  padding: 18px;
}
.ym-warm-builder__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ym-line);
}
.ym-warm-builder__head strong { display: block; font-size: 15px; color: var(--ym-ink); }
.ym-warm-builder__head p { margin-top: 4px; font-size: 13.5px; color: var(--ym-muted); }

.ym-warm-list {
  display: grid;
  gap: 8px;
}
.ym-warm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ym-bg);
  border: 1px solid var(--ym-line);
}
.ym-warm-row.is-off { opacity: 0.5; }
.ym-warm-row__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ym-warm-row__idx {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ym-card-2);
  color: var(--ym-accent-light);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.ym-warm-row__left strong { display: block; font-size: 14px; color: var(--ym-ink); }
.ym-warm-row__left span { display: block; font-size: 12.5px; color: var(--ym-muted); }
.ym-warm-row__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ym-warm-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--ym-card);
  border: 1px solid var(--ym-line-strong);
  color: var(--ym-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ym-warm-btn:hover:not(:disabled) { background: var(--ym-hover); border-color: var(--ym-line-hover); }
.ym-warm-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ym-warm-btn[aria-pressed="true"] {
  background: var(--ym-accent-soft);
  border-color: var(--ym-accent-line);
  color: var(--ym-accent-light);
}

.ym-warm-summary {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--ym-card);
  border: 1px solid var(--ym-line-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.ym-warm-summary span { color: var(--ym-muted); }
.ym-warm-summary strong { color: var(--ym-ink); font-weight: 600; }

/* Tab 3: Guard & Resources grid */
.ym-guard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ym-guard-grid article {
  padding: 18px;
  border-radius: 11px;
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
}
.ym-guard-k {
  display: block;
  font-size: 12px;
  color: var(--ym-dim);
}
.ym-guard-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  font-weight: 650;
  color: var(--ym-ink);
}
.ym-guard-grid p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ym-muted);
  line-height: 1.55;
}

/* 4. Interactive Simulator (#scenario) */
.ym-sim {
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
  border-radius: 16px;
  padding: 24px;
}
.ym-sim__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ym-line);
}
.ym-sim__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ym-sim__tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--ym-bg);
  border: 1px solid var(--ym-line);
  color: var(--ym-muted);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.ym-sim__tabs button span {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ym-dim);
}
.ym-sim__tabs button:hover {
  border-color: var(--ym-line-strong);
  color: var(--ym-ink);
}
.ym-sim__tabs button[aria-selected="true"] {
  background: var(--ym-accent);
  border-color: var(--ym-accent);
  color: var(--ym-accent-ink);
  font-weight: 600;
}
.ym-sim__tabs button[aria-selected="true"] span { color: rgba(20, 19, 16, 0.72); }

.ym-sim__next {
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--ym-card);
  border: 1px solid var(--ym-line-strong);
  color: var(--ym-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}
.ym-sim__next:hover { background: var(--ym-hover); border-color: var(--ym-line-hover); }

.ym-sim__caption {
  margin: 16px 0 20px;
  font-size: 14.5px;
  color: var(--ym-muted);
  min-height: 24px;
}
.ym-sim__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: stretch;
}
.ym-sim__viewport {
  background: var(--ym-bg);
  border: 1px solid var(--ym-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ym-vp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--ym-card);
  border-bottom: 1px solid var(--ym-line);
}
.ym-vp-url {
  font-family: var(--ym-mono);
  font-size: 12px;
  color: var(--ym-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ym-vp-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--ym-accent-light);
  background: var(--ym-accent-soft);
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.ym-vp-body {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  flex: 1;
}
.ym-vp-sidebar {
  padding: 12px;
  border-right: 1px solid var(--ym-line);
  background: #161614;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ym-vp-query {
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
  font-size: 11.5px;
  color: var(--ym-ink);
  line-height: 1.35;
}
.ym-vp-pane {
  display: grid;
  gap: 8px;
}
.ym-vp-pane[hidden] { display: none; }
.ym-vp-item {
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
}
.ym-vp-item.is-target {
  background: #23211a;
  border-color: var(--ym-accent-line);
}
.ym-vp-item.is-warm {
  background: #21201b;
  border-color: var(--ym-line-strong);
}
.ym-vp-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ym-vp-item strong,
.ym-vp-org strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ym-ink);
  line-height: 1.3;
}
.ym-vp-item em,
.ym-vp-org em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ym-pin-soft);
  color: #ff9c9f;
  flex-shrink: 0;
}
.ym-vp-item.is-warm em {
  background: var(--ym-accent-soft);
  color: var(--ym-accent-light);
}
.ym-vp-item small {
  font-size: 10.5px;
  color: var(--ym-dim);
  font-variant-numeric: tabular-nums;
}
.ym-vp-item span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ym-muted);
  font-variant-numeric: tabular-nums;
}

.ym-vp-org {
  padding: 12px;
  border-radius: 9px;
  background: #23211a;
  border: 1px solid var(--ym-accent-line);
  display: grid;
  gap: 6px;
}
.ym-vp-org__rating {
  font-size: 11.5px;
  color: var(--ym-muted);
  font-variant-numeric: tabular-nums;
}
.ym-vp-org__rating span { color: var(--ym-star); font-weight: 600; }
.ym-vp-org__addr { font-size: 11.5px; color: #dad8cf; line-height: 1.4; }
.ym-vp-org__open { font-size: 11.5px; color: #5bd698; font-weight: 500; }
.ym-vp-org__status {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--ym-bg);
  border: 1px solid var(--ym-line);
  font-size: 11px;
  color: var(--ym-accent-light);
  line-height: 1.35;
}

.ym-vp-canvas {
  display: flex;
  flex-direction: column;
  background: #141412;
}
.ym-vp-svg {
  display: block;
  width: 100%;
  height: auto;
  flex: 1;
}
.ym-map-route,
.ym-map-others,
.ym-map-pin { transition: opacity 0.16s ease; }
.ym-sim[data-step="warm"] .ym-map-route { opacity: 0.08; }
.ym-sim[data-step="warm"] .ym-map-pin { opacity: 0.25; }
.ym-sim[data-step="warm"] .ym-map-others circle { fill: #f5ca42; }
.ym-sim[data-step="search"] .ym-map-route { opacity: 0.18; }
.ym-sim[data-step="card"] .ym-map-route { opacity: 0.28; }
.ym-sim[data-step="actions"]:not([data-action="route"]) .ym-map-route { opacity: 0.2; }

.ym-vp-overlay {
  padding: 13px 15px;
  border-top: 1px solid var(--ym-line);
  background: var(--ym-card);
}
.ym-vp-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ym-vp-overlay__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ym-ink);
}
.ym-vp-overlay__chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--ym-accent-light);
  background: var(--ym-accent-soft);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ym-vp-overlay__sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ym-muted);
  line-height: 1.45;
}

.ym-sim__actions {
  background: var(--ym-bg);
  border: 1px solid var(--ym-line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.ym-sim__actions-head {
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--ym-line);
}
.ym-sim__actions-head strong { display: block; font-size: 15px; color: var(--ym-ink); }
.ym-sim__actions-head span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ym-dim); }
.ym-action-list { display: grid; gap: 6px; }
.ym-action {
  border-radius: 9px;
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
.ym-action[open] {
  background: #23211a;
  border-color: var(--ym-accent-line);
}
.ym-action summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ym-ink);
  cursor: pointer;
}
.ym-action summary::-webkit-details-marker { display: none; }
.ym-action summary::after {
  content: "+";
  font-size: 17px;
  font-weight: 400;
  color: var(--ym-dim);
  line-height: 1;
}
.ym-action[open] summary::after {
  content: "−";
  color: var(--ym-accent-light);
}
.ym-action p {
  padding: 0 13px 12px;
  font-size: 13.5px;
  color: var(--ym-muted);
  line-height: 1.55;
}

/* Pillars */
.ym-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--ym-line);
}
.ym-pillars h3 { font-size: 17px; margin-bottom: 8px; }
.ym-pillars p { font-size: 14.5px; color: var(--ym-muted); line-height: 1.62; }

/* 5. Setup */
.ym-setup {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.ym-setup article {
  padding-top: 20px;
  border-top: 1px solid var(--ym-line-strong);
}
.ym-setup__num {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ym-accent-light);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.ym-setup h3 { font-size: 17px; margin-bottom: 8px; }
.ym-setup p { font-size: 14.5px; color: var(--ym-muted); line-height: 1.6; }

/* 6. Pricing */
.ym-calc {
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
  border-radius: var(--ym-radius);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.ym-calc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.ym-calc__label {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  color: var(--ym-ink);
}
.ym-calc__label output {
  font-size: 28px;
  font-weight: 700;
  color: var(--ym-accent-light);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ym-calc__hint { color: var(--ym-muted); font-size: 14px; }
.ym-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 440px;
}
.ym-stepper button {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ym-card);
  border: 1px solid var(--ym-line-strong);
  color: var(--ym-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.ym-stepper button:hover:not(:disabled) {
  background: var(--ym-hover);
  border-color: var(--ym-line-hover);
}
.ym-stepper button:disabled { opacity: 0.38; cursor: not-allowed; }
.ym-stepper input[type="number"] {
  width: 58px;
  height: 36px;
  border-radius: 9px;
  background: var(--ym-bg);
  border: 1px solid var(--ym-line-strong);
  color: var(--ym-ink);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ym-stepper input[type="range"] {
  flex: 1;
  accent-color: var(--ym-accent);
  cursor: pointer;
  height: 6px;
}
.ym-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ym-line);
}
.ym-presets button {
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--ym-bg);
  border: 1px solid var(--ym-line);
  color: var(--ym-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.ym-presets button:hover {
  border-color: var(--ym-line-strong);
  color: var(--ym-ink);
}
.ym-presets button[aria-pressed="true"] {
  background: var(--ym-accent-soft);
  border-color: var(--ym-accent-line);
  color: var(--ym-accent-light);
  font-weight: 600;
}

.ym-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ym-plan {
  background: var(--ym-surface);
  border: 1px solid var(--ym-line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.ym-plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ym-plan__title {
  font-size: 16px;
  font-weight: 650;
  color: var(--ym-ink);
}
.ym-plan__saving {
  font-size: 12.5px;
  font-weight: 600;
  color: #166534;
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.ym-plan__price {
  margin-top: 18px;
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ym-ink);
  font-variant-numeric: tabular-nums;
}
.ym-plan__period {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ym-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.ym-plan__eff {
  font-weight: 600;
  color: #8f6700;
  font-variant-numeric: tabular-nums;
}
.ym-plan__breakdown {
  margin-top: 22px;
  padding: 16px 0;
  border-top: 1px solid var(--ym-line);
  border-bottom: 1px solid var(--ym-line);
  display: grid;
  gap: 9px;
}
.ym-plan__breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.ym-plan__breakdown span { color: var(--ym-muted); }
.ym-plan__breakdown strong {
  font-weight: 600;
  color: var(--ym-ink);
  font-variant-numeric: tabular-nums;
}
.ym-plan__note {
  margin: 18px 0 26px;
  font-size: 14px;
  color: var(--ym-muted);
  line-height: 1.55;
  flex: 1;
}

/* Контрастная светлая годовая карточка */
.ym-plan--featured {
  background: var(--ym-light-bg);
  border-color: var(--ym-light-line);
  color: var(--ym-light-ink);
}
.ym-plan--featured .ym-plan__title,
.ym-plan--featured .ym-plan__price,
.ym-plan--featured .ym-plan__breakdown strong { color: var(--ym-light-ink); }
.ym-plan--featured .ym-plan__period,
.ym-plan--featured .ym-plan__breakdown span,
.ym-plan--featured .ym-plan__note { color: var(--ym-light-muted); }
.ym-plan--featured .ym-plan__breakdown { border-color: var(--ym-light-line); }

.ym-included {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--ym-line);
  border-bottom: 1px solid var(--ym-line);
  gap: 18px;
}
.ym-included strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ym-ink);
}
.ym-included span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--ym-muted);
  line-height: 1.45;
}

.ym-price-footnote {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ym-dim);
}

/* 7. FAQ & Closing */
.ym-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 48px;
  align-items: start;
}
.ym-faq-side p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ym-muted);
  line-height: 1.6;
}
.ym-text-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ym-accent-light);
  text-decoration: none;
}
.ym-text-link:hover { color: #ffe07d; }

.ym-faq-list { border-top: 1px solid var(--ym-line); }
.ym-faq-item { border-bottom: 1px solid var(--ym-line); }
.ym-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ym-ink);
  cursor: pointer;
}
.ym-faq-item summary::-webkit-details-marker { display: none; }
.ym-faq-item summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--ym-line-strong);
  font-size: 16px;
  font-weight: 400;
  color: var(--ym-muted);
  flex-shrink: 0;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.ym-faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--ym-accent-light);
  border-color: var(--ym-accent-line);
}
.ym-faq-item p {
  padding: 0 36px 20px 0;
  font-size: 15px;
  color: var(--ym-muted);
  line-height: 1.65;
}

/* Closing CTA with clean inner accent bar (zero curved border artifact) */
.ym-closing {
  position: relative;
  margin-top: 64px;
  padding: 36px 40px 36px 44px;
  border-radius: 16px;
  background: var(--ym-bg);
  border: 1px solid var(--ym-line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.ym-closing::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  border-radius: 0;
  background: var(--ym-accent-light);
}
.ym-closing h3 { font-size: 24px; }
.ym-closing p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ym-muted);
  max-width: 520px;
}
.ym-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.ym-footer {
  padding: 36px 0 44px;
  background: var(--ym-bg);
}
.ym-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ym-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.ym-footer__nav a {
  font-size: 13.5px;
  color: var(--ym-muted);
  text-decoration: none;
}
.ym-footer__nav a:hover { color: var(--ym-ink); }
.ym-footer__legal {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--ym-line);
  font-size: 12.5px;
  color: var(--ym-dim);
}

/* Responsive */
@media (max-width: 1080px) {
  .ym-nav { display: none; }
  .ym-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .ym-section-head { grid-template-columns: 1fr; gap: 14px; }
  .ym-modes,
  .ym-app__workspace,
  .ym-sim__grid,
  .ym-faq-layout { grid-template-columns: 1fr; }
  .ym-targets,
  .ym-setup,
  .ym-included { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ym-guard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ym-targets article { padding: 20px; border-left: 0; border-top: 1px solid var(--ym-line); }
  .ym-targets article:first-child { padding-left: 20px; border-top: 0; }
  .ym-targets article:nth-child(2) { border-top: 0; }
  .ym-pillars { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 720px) {
  .ym-wrap { width: calc(100% - 32px); }
  .ym-header__inner { min-height: 60px; }
  .ym-brand__family,
  .ym-btn--ghost { display: none; }
  .ym-hero { padding: 40px 0 48px; }
  .ym-hero__cta { flex-direction: column; align-items: stretch; }
  .ym-hero__specs { grid-template-columns: 1fr; gap: 12px; }
  .ym-hero-card { position: static; width: 100%; border-radius: 0; border: 0; border-top: 1px solid var(--ym-line); }
  .ym-stage-metrics,
  .ym-app__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ym-stage-metrics > div:last-child,
  .ym-app__stats > div:last-child { grid-column: 1 / -1; }
  .ym-stage-metrics > div { border-left: 0; border-top: 1px solid var(--ym-line); }
  .ym-stage-metrics > div:nth-child(even) { border-left: 1px solid var(--ym-line); }
  .ym-stage-metrics > div:nth-child(-n+2) { border-top: 0; }
  .ym-shots__bar { padding: 14px; }
  .ym-shots__controls { width: 100%; justify-content: flex-end; }
  .ym-shots__stage { padding: 10px; }
  .ym-shots__thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .ym-shots__thumb { padding: 6px; gap: 6px; }
  .ym-shots__thumb-label strong { font-size: 12px; }
  .ym-lightbox { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .ym-lightbox__head { padding: 10px 12px; }
  .ym-lightbox__body { padding: 8px; }
  .ym-app__tabs { width: 100%; }
  .ym-app__tabs button { padding: 6px 10px; font-size: 12.5px; border-color: var(--ym-line); }
  .ym-thread-grid,
  .ym-guard-grid { grid-template-columns: 1fr; }
  .ym-section { padding: 54px 0; }
  .ym-mode-card { padding: 22px; }
  .ym-targets,
  .ym-setup,
  .ym-plans,
  .ym-included { grid-template-columns: 1fr; }
  .ym-targets article,
  .ym-targets article:first-child { padding: 18px 0; border-top: 1px solid var(--ym-line); }
  .ym-targets article:first-child { border-top: 0; }
  .ym-sim { padding: 16px; }
  .ym-sim__bar { flex-direction: column; align-items: stretch; }
  .ym-sim__tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .ym-sim__tabs button { justify-content: flex-start; padding: 9px 10px; font-size: 13px; }
  .ym-vp-body { grid-template-columns: 1fr; }
  .ym-vp-sidebar { border-right: 0; border-bottom: 1px solid var(--ym-line); }
  .ym-log-line { grid-template-columns: 1fr; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--ym-line); }
  .ym-log-line:last-child { border-bottom: 0; padding-bottom: 0; }
  .ym-warm-row { flex-direction: column; align-items: stretch; }
  .ym-warm-row__controls { justify-content: flex-end; }
  .ym-calc { padding: 18px; }
  .ym-stepper { max-width: none; width: 100%; }
  .ym-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ym-plan { padding: 24px; }
  .ym-closing { padding: 26px 22px 26px 28px; }
  .ym-closing::before { left: 10px; top: 18px; bottom: 18px; }
  .ym-closing__actions { width: 100%; flex-direction: column; }
  .ym-closing__actions .ym-btn { width: 100%; }
}
