/* ==========================================================================
   Секции лендинга: шаги, бенто, режимы, каталоги, бюджет, команда,
   сравнение, PRO, FAQ, финальный CTA.
   ========================================================================== */

/* --- 01 · три шага -------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: rgba(10, 22, 40, 0.2);
}
.step-num {
  font: 900 46px/1 var(--font);
  letter-spacing: -0.05em;
  color: rgba(10, 22, 40, 0.12);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}
.step-vis {
  margin-top: auto;
  padding-top: 20px;
  position: relative;
  height: 108px;
}
.step-arrow {
  display: none;
  position: absolute;
  top: 50%;
  right: -14px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transform: translateY(-50%);
}
.step-arrow svg { width: 13px; height: 13px; }
.step:last-child .step-arrow { display: none; }
.steps .step-arrow { display: none; }

/* мини-визуалы шагов */
.sv-bubble {
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px 12px 4px 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  max-width: 88%;
  margin-left: auto;
  box-shadow: var(--shadow-1);
}
.sv-bubble .cursor {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: var(--lime);
  vertical-align: -2px;
  animation: caret 1.1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.sv-reply {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(216, 250, 75, 0.32);
  border: 1px solid rgba(182, 217, 43, 0.4);
  border-radius: 999px;
  padding: 5px 9px;
}
.sv-reply i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

.sv-route { display: grid; gap: 5px; }
.sv-seg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.sv-seg b { color: var(--ink); font-weight: 600; }
.sv-seg .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}
.sv-seg .dot--lime { background: var(--lime); box-shadow: 0 0 0 3px rgba(216, 250, 75, 0.35); }
.sv-line {
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(10, 22, 40, 0.24) 0 4px, transparent 4px 8px);
  margin-left: 3px;
  width: 60%;
  flex: none;
}
.sv-people { display: flex; align-items: center; gap: 0; }
.sv-people .pv {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9ecee;
  border: 2px solid #ffffff;
  margin-left: -8px;
  display: grid;
  place-items: center;
  font: 800 11px/1 var(--font);
  color: #4a5230;
  box-shadow: var(--shadow-1);
}
.sv-people .pv:first-child { margin-left: 0; }
.sv-people .pv--lime { background: var(--lime); color: var(--ink); }
.sv-people .pv--teal { background: #d5efec; color: #0c6a61; }
.sv-people .pv--ink { background: var(--ink); color: var(--lime); }
.sv-live {
  margin-left: 10px;
  font: 700 9.5px/1.1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--teal-ink);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sv-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s infinite;
}
.sv-edit {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sv-edit span {
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  border-radius: 4px;
  padding: 2px 5px;
  font-weight: 700;
  font-size: 9.5px;
}

/* --- 02 · бенто ----------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.tile {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 24px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 288px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.tile:hover {
  border-color: rgba(10, 22, 40, 0.22);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.tile--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.tile--lime {
  background: var(--lime);
  border-color: rgba(10, 22, 40, 0.18);
}
.tile--flat { background: var(--paper-2); }
.tile-a { grid-column: span 7; }
.tile-b { grid-column: span 5; }
.tile-c { grid-column: span 5; }
.tile-d { grid-column: span 7; }
.tile-e { grid-column: span 4; }
.tile-f { grid-column: span 4; }
.tile-g { grid-column: span 4; }

.tile-head { display: flex; align-items: flex-start; gap: 10px; }
.tile-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(10, 22, 40, 0.06);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--ink);
}
.tile-ico svg { width: 17px; height: 17px; }
.tile--ink .tile-ico { background: rgba(216, 250, 75, 0.14); color: var(--lime); }
.tile--lime .tile-ico { background: rgba(10, 22, 40, 0.1); }
.tile-tag {
  margin-left: auto;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.tile--ink .tile-tag { border-color: var(--line-inv); color: var(--muted-inv); }
.tile h3 { margin: 14px 0 7px; }
.tile p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 40ch;
}
.tile--ink p { color: var(--muted-inv); }
.tile-vis { margin-top: 18px; flex: 1; min-height: 0; position: relative; }

/* визуал: чат */
.viz-chat { display: grid; gap: 6px; }
.viz-bubble {
  font-size: 11.5px;
  line-height: 1.4;
  border-radius: 10px;
  padding: 8px 10px;
  max-width: 88%;
}
.viz-bubble--user { background: var(--ink); color: var(--paper); margin-left: auto; border-bottom-right-radius: 3px; }
.viz-bubble--ai { background: var(--paper-2); border-bottom-left-radius: 3px; }
.viz-bubble b { color: #3c4a12; }
.viz-tags { display: flex; gap: 5px; margin-top: 3px; flex-wrap: wrap; }
.viz-tag {
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(216, 250, 75, 0.4);
  border: 1px solid rgba(182, 217, 43, 0.45);
  color: #4b5810;
  border-radius: 999px;
  padding: 3px 7px;
}
.viz-map-strip {
  height: 76px;
  border-radius: 9px;
  overflow: hidden;
  background: #e6e9e4;
  border: 1px solid var(--line);
}
.viz-map-strip svg { width: 100%; height: 100%; }

/* визуал: конструктор */
.viz-seg { display: grid; gap: 5px; }
.viz-seg-row {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 11px;
}
.viz-seg-row .g { color: rgba(10, 22, 40, 0.22); line-height: 0; }
.viz-seg-row .g svg { width: 10px; height: 10px; }
.viz-seg-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-seg-row span {
  margin-left: auto;
  font: 600 9px/1 var(--mono);
  color: var(--muted-2);
  flex: none;
}
.viz-seg-row .badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: #d5efec;
  color: #0f766e;
  margin-left: 0;
}
.viz-handle {
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: rgba(10, 22, 40, 0.14);
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
}

/* визуал: команда */
.viz-team { position: relative; }
.viz-presence {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ava-stack { display: flex; }
.ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -7px;
  display: grid;
  place-items: center;
  font: 800 9.5px/1 var(--font);
  color: #37401f;
  background: #e9ecee;
  flex: none;
}
.ava:first-child { margin-left: 0; }
.ava--lime { background: var(--lime); color: var(--ink); }
.ava--teal { background: #d5efec; color: #0f766e; }
.ava--ink { background: var(--ink); color: var(--lime); }
.ava--clay { background: #fbe7c6; color: #f59e0b; }
.presence-txt { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.presence-txt b { color: var(--ink); }
.viz-card-live {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  position: relative;
}
.viz-card-live h5 {
  font: 700 10.5px/1.2 var(--font);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.viz-card-live h5 i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s infinite;
}
.viz-live-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  padding: 5px 0;
  border-top: 1px dashed var(--line-2);
  color: var(--muted);
}
.viz-live-row b { color: var(--ink); font-weight: 600; }
.viz-live-row .val { margin-left: auto; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.viz-live-row.is-edit { background: rgba(216, 250, 75, 0.28); border-radius: 5px; padding-inline: 5px; margin-inline: -5px; }
.cursor-tag {
  position: absolute;
  right: 14px;
  top: -9px;
  background: var(--teal);
  color: #ffffff;
  font: 700 8.5px/1 var(--font);
  padding: 4px 6px;
  border-radius: 4px 4px 4px 0;
  animation: cursor-drift 5s var(--ease) infinite;
}
@keyframes cursor-drift {
  0%, 55% { transform: translate(0, 0); }
  70%, 100% { transform: translate(-58px, 26px); }
}

/* визуал: бюджет */
.viz-budget {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.viz-budget-head,
.viz-budget-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  font-size: 10px;
  align-items: center;
}
.viz-budget-head {
  background: var(--ink);
  color: var(--muted-inv);
  padding: 6px 8px;
  font: 600 8.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.viz-budget-row { padding: 7px 8px; border-top: 1px solid var(--line-2); }
.viz-budget-row b { font-weight: 600; }
.viz-budget-row span { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.viz-budget-row span.hi { color: var(--ink); font-weight: 700; }
.viz-settle {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
}
.viz-settle b { color: var(--ink); }
.viz-settle .arrow { color: var(--teal-ink); font-weight: 700; }

/* визуал: брони */
.viz-mail {
  background: #ffffff;
  border: 1px dashed rgba(10, 22, 40, 0.24);
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
  position: relative;
}
.viz-mail b { display: block; color: var(--ink); font-size: 11px; margin-bottom: 3px; }
.viz-mail .scan {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, transparent, rgba(216, 250, 75, 0.5), transparent);
  height: 40%;
  animation: scan 3.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { transform: translateY(-40%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(240%); opacity: 0; }
}
.viz-parsed {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(20, 184, 166, 0.09);
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 10px;
}
.viz-parsed .ok {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 900;
  flex: none;
}
.viz-parsed b { display: block; font-size: 10.5px; }
.viz-parsed span { color: var(--muted); }

/* визуал: оптимизация */
.viz-sliders { display: grid; gap: 9px; }
.viz-slider label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.viz-slider label b { color: var(--ink); font-weight: 700; }
.viz-track {
  height: 5px;
  border-radius: 99px;
  background: rgba(10, 22, 40, 0.1);
  position: relative;
}
.viz-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: var(--lime-deep);
}
.viz-track b {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--lime);
  transform: translate(-50%, -50%);
}
.viz-opt-note {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.viz-opt-note b { color: #4b5810; }

/* визуал: каталоги */
.viz-covers { display: flex; gap: 8px; }
.viz-cover {
  flex: 1;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.viz-cover svg { width: 100%; height: 100%; }
.viz-cover i {
  position: absolute;
  left: 5px;
  bottom: 5px;
  font: 700 7.5px/1 var(--font);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 3px 5px;
  border-radius: 4px;
  font-style: normal;
}
.viz-copy-row {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.viz-copy-row .mini-copy {
  margin-left: auto;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.viz-copy-row .mini-copy svg { width: 9px; height: 9px; }

/* --- 03 · режимы ---------------------------------------------------------- */

.modes {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.modes::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 30%;
  height: 480px;
  background: radial-gradient(circle, rgba(216, 250, 75, 0.12), transparent 65%);
  pointer-events: none;
}
.modes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
  position: relative;
}
.modes-head h2 { max-width: 22ch; margin-top: 14px; }
.modes-tabs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}
.modes-tabs-row .modes-tabs { margin-bottom: 0; flex: 0 1 auto; min-width: 0; }
.modes-tabs-row .modes-auto { margin-left: 0; }
.modes-auto {
  border: 1px solid var(--line-inv);
  background: transparent;
  color: var(--muted-inv);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  flex: none;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.modes-auto[hidden] { display: none; }
.modes-auto:hover { color: var(--paper); border-color: rgba(242, 243, 240, 0.36); }
.modes-auto:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.modes-auto[aria-pressed="true"] {
  color: var(--lime);
  border-color: rgba(216, 250, 75, 0.45);
  background: rgba(216, 250, 75, 0.08);
}
.ma-ico { width: 9px; height: 10px; position: relative; display: inline-block; }
.ma-ico::before, .ma-ico::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 1px;
  background: currentColor;
}
.ma-ico::before { left: 1px; }
.ma-ico::after { right: 1px; }
.modes-auto[aria-pressed="false"] .ma-ico::before {
  width: 0;
  height: 0;
  top: 0;
  bottom: auto;
  left: 1px;
  background: none;
  border-radius: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.modes-auto[aria-pressed="false"] .ma-ico::after { display: none; }
.modes-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
}
.m-tab {
  border: 1px solid var(--line-inv);
  background: transparent;
  color: var(--muted-inv);
  border-radius: 999px;
  padding: 9px 14px 15px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.m-tab svg { width: 14px; height: 14px; flex: none; }
.m-tab:hover { border-color: rgba(242, 243, 240, 0.36); color: var(--paper); }
.m-tab:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.m-tab.is-on {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  box-shadow: 0 10px 26px -16px rgba(216, 250, 75, 0.9);
  animation: m-tab-pop 0.42s var(--ease);
}
/* T-1415 WAYLAB-MODES-TOUR: таб как прогресс-бар — линия времени до
   перехода на следующий сценарий (длительность = --mtab-ms из landing.js). */
.m-tab-prog {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 7px;
  height: 3px;
  border-radius: 2px;
  background: rgba(11, 45, 60, 0.14);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.m-tab.is-on .m-tab-prog { opacity: 1; }
.m-tab-prog i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #0b2d3c;
  transform: scaleX(0);
  transform-origin: left center;
}
.m-tab.is-on .m-tab-prog i { animation: m-tab-fill var(--mtab-ms, 3000ms) linear forwards; }
.modes-tabs.is-paused .m-tab.is-on .m-tab-prog i { animation-play-state: paused; }
.modes-tabs.is-manual .m-tab-prog { opacity: 0; }
@keyframes m-tab-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes m-tab-pop {
  0% { transform: scale(0.965); }
  60% { transform: scale(1.015); }
  100% { transform: scale(1); }
}
@keyframes m-mode-swap {
  0% { opacity: 0.3; transform: translateY(7px); }
  100% { opacity: 1; transform: none; }
}
.modes-grid.is-swap .m-info { animation: m-mode-swap 0.42s var(--ease) both; }
.modes-grid.is-swap .m-visual { animation: m-mode-swap 0.42s var(--ease) 0.05s both; }
@media (prefers-reduced-motion: reduce) {
  .m-tab.is-on { animation: none; }
  .m-tab-prog, .modes-auto { display: none; }
  .modes-grid.is-swap .m-info, .modes-grid.is-swap .m-visual { animation: none; }
}
.modes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: stretch;
  position: relative;
}
.m-info { display: flex; flex-direction: column; padding-top: 4px; }
.m-eyebrow {
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}
.m-info h3 {
  font: 800 clamp(22px, 2.2vw, 30px)/1.12 var(--font);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.m-info p { font-size: 14.5px; line-height: 1.55; color: var(--muted-inv); max-width: 40ch; }
.m-list { display: grid; gap: 8px; margin-top: 18px; }
.m-list li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(242, 243, 240, 0.8);
}
.m-list li::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(216, 250, 75, 0.16);
  border: 1px solid rgba(216, 250, 75, 0.45);
  flex: none;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23d8fa4b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.m-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}
.m-stats div {
  border-top: 1px solid var(--line-inv);
  padding-top: 10px;
}
.m-stats b {
  display: block;
  font: 800 19px/1 var(--font);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.m-stats span { display: block; margin-top: 4px; font-size: 9.5px; color: rgba(242, 243, 240, 0.42); }
.m-stats b i { font-style: normal; font-size: 11px; color: var(--lime); margin-left: 2px; }

.m-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(242, 243, 240, 0.14);
  background: #e6e9e4;
  min-height: 372px;
  display: flex;
  flex-direction: column;
}
.m-map {
  position: relative;
  flex: 1;
  min-height: 268px;
  color: var(--ink);
}
.m-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-badges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}
.m-badge {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(10, 22, 40, 0.12);
  border-radius: 7px;
  padding: 6px 8px;
  font: 700 9.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #39421e;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px -6px rgba(10, 22, 40, 0.4);
}
.m-badge svg { width: 11px; height: 11px; }
.m-badge--warn { background: #fff7d6; border-color: #e6d488; color: #6b5a10; }
.m-badge--wind { background: #e2f4ff; border-color: #a9d6ef; color: #14536e; }
.m-badge--ok { background: rgba(216, 250, 75, 0.92); border-color: #b6d92b; color: #333d05; }
.m-legend {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 22, 40, 0.12);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 9.5px;
  color: #3b4325;
  display: grid;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 4px 12px -6px rgba(10, 22, 40, 0.4);
}
.m-legend i { display: inline-block; width: 14px; height: 2px; margin-right: 5px; vertical-align: middle; }
.m-legend .l-sea { background: #2d6f8f; }
.m-legend .l-road { background: #b26a2e; }
.m-legend .l-hike { background: #6b7a2a; }
.m-profile {
  height: 96px;
  background: #ffffff;
  border-top: 1px solid rgba(10, 22, 40, 0.1);
  position: relative;
  flex: none;
}
.m-profile > svg { width: 100%; height: 100%; }
.m-profile .p-label {
  position: absolute;
  left: 10px;
  top: 8px;
  font: 700 8.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.m-profile .p-max {
  position: absolute;
  right: 10px;
  top: 8px;
  font: 700 9px/1 var(--mono);
  color: #3a4a10;
}

/* --- 04 · каталоги -------------------------------------------------------- */

.cat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
}
.cat-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.cat-panel--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cat-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.cat-top h3 { margin-bottom: 5px; }
.cat-top p { font-size: 13.5px; color: var(--muted); max-width: 36ch; }
.cat-panel--ink .cat-top p { color: var(--muted-inv); }
.cat-top .cat-count {
  margin-left: auto;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  white-space: nowrap;
}
.cat-panel--ink .cat-count { border-color: var(--line-inv); color: var(--muted-inv); }

.route-cards { display: grid; gap: 10px; }
.rcard {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: var(--paper);
  transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s;
}
.rcard:hover {
  border-color: rgba(10, 22, 40, 0.28);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.rcard-cover {
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  background: #e9ecee;
  position: relative;
}
.rcard-cover svg { width: 100%; height: 100%; }
.rcard-cover .rc-vis {
  position: absolute;
  left: 5px;
  top: 5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 2px 4px;
  font: 700 7px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d4620;
}
.rcard-body { min-width: 0; }
.rcard-body b {
  display: block;
  font-size: 13.5px;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rcard-body p {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rcard-meta {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.rcard-meta span {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(10, 22, 40, 0.05);
  border-radius: 4px;
  padding: 3px 5px;
}
.rcard-meta span.k { background: rgba(216, 250, 75, 0.36); color: #4b5810; }
.rcard-act {
  display: grid;
  gap: 5px;
  justify-items: end;
  padding-right: 2px;
}
.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}
.icon-btn:hover { color: var(--ink); border-color: rgba(10, 22, 40, 0.34); background: var(--lime); }
.icon-btn svg { width: 14px; height: 14px; }
.rcard-act small { font-size: 8.5px; color: var(--muted-2); }

.place-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard {
  border: 1px solid var(--line-inv);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(242, 243, 240, 0.04);
  transition: border-color 0.15s, transform 0.15s;
}
.pcard:hover { border-color: rgba(242, 243, 240, 0.3); transform: translateY(-2px); }
.pcard-cover { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: #2a3122; }
.pcard-cover svg { width: 100%; height: 100%; }
.pcard-rate {
  position: absolute;
  left: 6px;
  top: 6px;
  display: flex;
  gap: 4px;
}
.pcard-rate span {
  background: rgba(255, 255, 255, 0.92);
  color: #2c3417;
  border-radius: 4px;
  padding: 3px 4px;
  font: 700 7.5px/1 var(--mono);
  letter-spacing: 0.03em;
}
.pcard-body { padding: 7px 8px 8px; }
.pcard-body b {
  display: block;
  font-size: 11.5px;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard-body span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: var(--muted-inv-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.cat-panel--ink .cat-foot { border-color: var(--line-inv); color: var(--muted-inv); }
.cat-foot .link-arrow { margin-left: auto; }
.cat-panel--ink .link-arrow { border-color: rgba(242, 243, 240, 0.28); }
.cat-panel--ink .link-arrow:hover { border-color: var(--lime); color: var(--lime); }

/* --- 05 · бюджет ---------------------------------------------------------- */

.budget-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}
.budget-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.budget-card h3 { margin-bottom: 6px; }
.budget-card > p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }

.ppl { display: grid; gap: 8px; }
.ppl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--paper);
}
.ppl-row .ava { margin-left: 0; border-color: var(--paper); }
.ppl-name { min-width: 0; flex: 1; }
.ppl-name b { display: block; font-size: 12.5px; }
.ppl-name span { display: block; font-size: 10px; color: var(--muted-2); margin-top: 1px; }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; overflow: hidden; }
.stepper button {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.stepper button:hover { background: rgba(10, 22, 40, 0.06); color: var(--ink); }
.stepper b {
  min-width: 34px;
  text-align: center;
  font: 700 11.5px/1 var(--font);
  font-variant-numeric: tabular-nums;
  border-inline: 1px solid var(--line);
  padding: 0 2px;
  align-self: stretch;
  display: grid;
  place-items: center;
}
.ppl-row .coeff-flag {
  font: 700 8px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-right: 2px;
}

.exp-list { display: grid; gap: 6px; margin-top: 16px; }
.exp-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  padding: 8px 2px;
  border-bottom: 1px dashed var(--line-2);
}
.exp-row .e-ic {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(10, 22, 40, 0.06);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
}
.exp-row .e-ic svg { width: 12px; height: 12px; }
.exp-row .e-name { min-width: 0; flex: 1; }
.exp-row .e-name b { display: block; font-weight: 600; }
.exp-row .e-name span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.exp-row .e-sum { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.e-sum { position: relative; display: inline-flex; align-items: center; }
.e-sum i {
  position: absolute; right: 7px; font-style: normal; font-size: 10.5px;
  color: var(--muted-2); pointer-events: none;
}
.exp-row .e-sum input {
  width: 98px;
  padding-right: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 5px;
  text-align: right;
  font-size: 11.5px;
  font-weight: 700;
  background: #ffffff;
}
.exp-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
  font-size: 12px;
  color: var(--muted);
}
.exp-total b { font-size: 20px; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }

.settle-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.settle-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.settle-head h3 { color: var(--paper); }
.settle-live {
  margin-left: auto;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(216, 250, 75, 0.36);
  border-radius: 999px;
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.settle-live i { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); animation: pulse-dot 2s infinite; }
.settle-sub { font-size: 12.5px; color: var(--muted-inv); margin-bottom: 16px; }
.settle-list { display: grid; gap: 7px; }
.settle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(242, 243, 240, 0.05);
  border: 1px solid rgba(242, 243, 240, 0.1);
  border-radius: 10px;
  padding: 9px 10px;
  animation: msg-in 0.35s var(--ease);
}
.settle-row .ava { border-color: var(--ink); }
.settle-row .s-who { font-size: 11.5px; line-height: 1.3; min-width: 0; }
.settle-row .s-who b { display: block; font-weight: 700; }
.settle-row .s-who span { color: var(--muted-inv-2); font-size: 9.5px; }
.settle-row .s-arrow { color: rgba(216, 250, 75, 0.7); margin: 0 2px; line-height: 0; }
.settle-row .s-arrow svg { width: 14px; height: 14px; }
.settle-row .s-sum {
  margin-left: auto;
  font: 800 14px/1 var(--font);
  letter-spacing: -0.02em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.settle-row .s-sum small { font-size: 9px; font-weight: 600; color: var(--muted-inv-2); margin-left: 2px; }
.settle-empty { font-size: 12.5px; color: var(--muted-inv); padding: 10px 0; }
.settle-summary {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-inv);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 10.5px;
  color: var(--muted-inv);
}
.settle-summary b { display: block; font-size: 15px; color: var(--paper); margin-top: 3px; font-variant-numeric: tabular-nums; }
.settle-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.settle-chips .chip { border-color: rgba(242, 243, 240, 0.16); color: var(--muted-inv); font-size: 10px; padding: 5px 8px; }

/* --- 06 · команда (live) -------------------------------------------------- */

.team-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}
.team-copy h2 { margin-top: 14px; }
.team-copy p { margin-top: 16px; font-size: 15.5px; color: var(--muted); max-width: 44ch; }
.team-points { display: grid; gap: 12px; margin-top: 24px; }
.team-point { display: flex; gap: 11px; align-items: flex-start; }
.team-point .tp-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--teal-ink);
}
.team-point .tp-ic svg { width: 15px; height: 15px; }
.team-point b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.team-point span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

.team-visual {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.tv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.tv-tabs { display: flex; gap: 3px; background: rgba(10, 22, 40, 0.06); border-radius: 8px; padding: 3px; }
.tv-tab {
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--muted);
  position: relative;
}
.tv-tab.is-on { background: #ffffff; color: var(--ink); box-shadow: var(--shadow-1); }
.tv-tab.is-other { background: var(--lime); color: var(--ink); }
.tv-tab.is-other::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal-ink);
  margin-right: 4px;
  vertical-align: 1px;
}
.tv-people { margin-left: auto; display: flex; align-items: center; }
.tv-body { padding: 14px; display: grid; gap: 10px; grid-template-columns: 1fr 132px; }
.tv-days { display: grid; gap: 7px; }
.tv-day {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: var(--paper);
}
.tv-day header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}
.tv-day header span {
  margin-left: auto;
  font: 600 9px/1 var(--mono);
  color: var(--muted-2);
}
.tv-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
  padding: 4px 0;
  border-top: 1px dashed var(--line-2);
}
.tv-line b { color: var(--ink); font-weight: 600; }
.tv-line .tv-time { font: 600 8.5px/1 var(--mono); color: var(--muted-2); flex: none; }
.tv-line.is-new {
  background: rgba(216, 250, 75, 0.34);
  border-radius: 4px;
  padding-inline: 4px;
  margin-inline: -4px;
  animation: new-line 6s var(--ease) infinite;
}
@keyframes new-line {
  0%, 10% { background: rgba(216, 250, 75, 0); }
  18%, 60% { background: rgba(216, 250, 75, 0.38); }
  75%, 100% { background: rgba(216, 250, 75, 0); }
}
.tv-side { display: grid; gap: 8px; align-content: start; }
.tv-mini {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  background: #ffffff;
}
.tv-mini h5 {
  font: 700 8px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.tv-mini .tm-row { display: flex; justify-content: space-between; font-size: 10px; padding: 3px 0; color: var(--muted); }
.tv-mini .tm-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tv-mini .tm-bar { height: 4px; border-radius: 99px; background: rgba(10, 22, 40, 0.08); margin-top: 6px; overflow: hidden; }
.tv-mini .tm-bar i { display: block; height: 100%; width: 62%; background: var(--lime-deep); border-radius: 99px; }
.tv-cursor {
  position: absolute;
  left: 46%;
  top: 58%;
  display: flex;
  align-items: flex-start;
  gap: 0;
  pointer-events: none;
  animation: tv-cursor 7s var(--ease) infinite;
  z-index: 3;
}
.tv-cursor svg { width: 14px; height: 14px; color: var(--teal); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)); }
.tv-cursor span {
  background: var(--teal);
  color: #ffffff;
  font: 700 8.5px/1 var(--font);
  padding: 4px 5px;
  border-radius: 3px 4px 4px 4px;
  margin: 10px 0 0 -2px;
  white-space: nowrap;
}
@keyframes tv-cursor {
  0%, 8% { transform: translate(0, 0); opacity: 0; }
  14% { opacity: 1; }
  40% { transform: translate(66px, 40px); opacity: 1; }
  55% { transform: translate(66px, 40px); opacity: 1; }
  66% { transform: translate(28px, -22px); opacity: 0; }
  100% { transform: translate(28px, -22px); opacity: 0; }
}
.tv-toast {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 10px;
  box-shadow: var(--shadow-2);
  animation: tv-toast 7s var(--ease) infinite;
  z-index: 4;
  max-width: 240px;
}
.tv-toast b { color: var(--lime); }
.tv-toast .ok {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 900;
  flex: none;
}
@keyframes tv-toast {
  0%, 44% { opacity: 0; transform: translateY(6px); }
  52%, 84% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* --- 07 · сравнение ------------------------------------------------------- */

.cmp-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.cmp {
  width: 100%;
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.cmp th, .cmp td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-2);
}
.cmp thead th {
  position: sticky;
  top: 0;
  background: var(--paper);
  font: 700 11px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.cmp thead th:first-child { left: 0; z-index: 3; }
.cmp tbody th {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  background: #ffffff;
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 208px;
  border-right: 1px solid var(--line-2);
}
.cmp tbody tr:hover th, .cmp tbody tr:hover td { background: #f7f8f5; }
.cmp td { color: var(--muted); font-size: 12.5px; }
.cmp .c-wl {
  background: rgba(216, 250, 75, 0.15);
  color: var(--ink);
  font-weight: 600;
}
.cmp thead .c-wl {
  background: var(--ink);
  color: var(--lime);
  border-radius: 10px 10px 0 0;
  font-weight: 800;
}
.cmp tbody tr:hover .c-wl { background: rgba(216, 250, 75, 0.26); }
.cmp tbody tr:last-child td, .cmp tbody tr:last-child th { border-bottom: 0; }
.cmp .yes, .cmp .no, .cmp .part {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cmp .yes::before, .cmp .no::before, .cmp .part::before {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  flex: none;
}
.cmp .yes::before { content: "✓"; background: var(--lime); color: var(--ink); }
.cmp .no::before { content: "—"; background: rgba(10, 22, 40, 0.08); color: rgba(10, 22, 40, 0.4); }
.cmp .part::before { content: "≈"; background: rgba(245, 158, 11, 0.14); color: #f59e0b; }
.cmp-note {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.5;
}
.cmp-note svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }

/* --- 08 · PRO ------------------------------------------------------------- */

.pro-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}
.pro-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 34px 32px;
  position: relative;
  overflow: hidden;
}
.pro-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 250, 75, 0.22), transparent 66%);
}
.pro-card h3 { font: 900 clamp(22px, 2.2vw, 30px)/1.1 var(--font); letter-spacing: -0.03em; color: #ffffff; }
.pro-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.pro-price b { font: 900 46px/1 var(--font); letter-spacing: -0.05em; color: var(--lime); }
.pro-price span { font-size: 12.5px; color: var(--muted-inv); }
.pro-per { font-size: 11.5px; color: rgba(242, 243, 240, 0.42); }
.pro-list { display: grid; gap: 9px; margin-top: 22px; }
.pro-list li { display: flex; gap: 8px; font-size: 13.5px; color: rgba(242, 243, 240, 0.82); }
.pro-list li::before { content: "→"; color: var(--lime); font-weight: 700; flex: none; }
.pro-actions { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.pro-card .btn--ghost { border-color: rgba(242, 243, 240, 0.2); }
.pro-note { margin-top: 12px; font-size: 10.5px; color: rgba(242, 243, 240, 0.36); }

.free-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}
.free-card .badge-free {
  align-self: flex-start;
  font: 700 9.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
}
.free-card h3 { margin-top: 16px; }
.free-card .free-list { display: grid; gap: 8px; margin-top: 16px; }
.free-card .free-list li { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); }
.free-card .free-list li::before { content: "·"; color: var(--ink); font-weight: 900; }
.free-card .btn { margin-top: auto; }
.free-card .free-foot { margin-top: 12px; font-size: 10.5px; color: var(--muted-2); }

/* --- 09 · FAQ ------------------------------------------------------------- */

.faq { display: grid; gap: 8px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 4px 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq details:hover { border-color: rgba(10, 22, 40, 0.22); }
.faq details[open] { border-color: rgba(10, 22, 40, 0.28); box-shadow: var(--shadow-1); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  font: 700 15.5px/1.35 var(--font);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  flex: none;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-a {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 78ch;
}
.faq .faq-a b { color: var(--ink); }

/* --- 10 · финальный CTA --------------------------------------------------- */

.cta-band {
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: 44px 44px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(10, 22, 40, 0.16);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 22, 40, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  mask-image: radial-gradient(circle at 80% 20%, #000, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 62%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 18ch; }
.cta-band p { margin-top: 12px; font-size: 15px; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cta-note { margin-top: 12px; font-size: 11.5px; color: rgba(10, 22, 40, 0.55); }
.cta-side {
  position: relative;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(10, 22, 40, 0.14);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(3px);
}
.cta-side .cs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(10, 22, 40, 0.16);
}
.cta-side .cs-row:last-child { border-bottom: 0; }
.cta-side .cs-row b { font-weight: 700; }
.cta-side .cs-row span { margin-left: auto; font-variant-numeric: tabular-nums; }
.cta-side .cs-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(10, 22, 40, 0.1);
  display: grid;
  place-items: center;
  flex: none;
}
.cta-side .cs-ico svg { width: 12px; height: 12px; }
.cta-side .cs-head {
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 22, 40, 0.5);
  margin-bottom: 4px;
}

/* --- адаптив секций ------------------------------------------------------- */

@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) .step-arrow { display: none; }
  .step:nth-child(3) { grid-column: span 2; min-height: 0; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile-a, .tile-d { grid-column: span 6; }
  .tile-b, .tile-c { grid-column: span 3; }
  .tile-e, .tile-f, .tile-g { grid-column: span 2; }
  .modes { padding: 28px 24px; }
  .modes-grid { grid-template-columns: 1fr; gap: 24px; }
  .m-visual { min-height: 360px; }
  .m-stats { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .budget-wrap { grid-template-columns: 1fr; }
  .team-wrap { grid-template-columns: 1fr; gap: 28px; }
  .pro-wrap { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 34px 28px; }
  .cta-side { display: none; }
}

@media (max-width: 900px) {
  /* T-1415: шесть пилюль + «авто» не влезают в одну строку — отдаём табам всю
     ширину, кнопка уходит на свою строку (иначе «Бархопинг» остаётся сиротой). */
  .modes-tabs-row { flex-wrap: wrap; }
  .modes-tabs-row .modes-tabs { flex: 1 1 100%; }
  .modes-tabs-row .modes-auto { margin-left: auto; }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(3) { grid-column: span 1; }
  .step { min-height: 0; }
  .step-arrow { display: none; }
  .step-vis { height: auto; min-height: 96px; }
  .bento { grid-template-columns: 1fr; }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e, .tile-f, .tile-g { grid-column: span 1; }
  .tile { min-height: 0; padding: 22px 20px 0; }
  .tile-vis { min-height: 120px; }
  .modes { border-radius: 18px; padding: 22px 18px; margin-inline: -4px; }
  .modes-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .modes-tabs { gap: 5px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; margin-inline: -18px; padding-inline: 18px; }
  .modes-tabs-row { gap: 8px; align-items: flex-start; flex-wrap: wrap; }
  .modes-tabs-row .modes-tabs { flex: 1 1 100%; }
  .modes-tabs-row .modes-auto { margin-left: auto; }
  .modes-auto { padding: 7px 10px; }
  .m-tab { font-size: 11.5px; padding: 8px 11px 13px; }
  .m-tab-prog { left: 10px; right: 10px; bottom: 6px; }
  .m-stats { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .m-visual { min-height: 300px; }
  .m-map { min-height: 230px; }
  .m-profile { height: 84px; }
  .cat-panel { padding: 18px; }
  .place-cards { grid-template-columns: 1fr 1fr; }
  .rcard { grid-template-columns: 92px minmax(0, 1fr) auto; }
  .rcard-cover { height: 66px; }
  .budget-card, .settle-card { padding: 18px; }
  .e-sum { position: relative; display: inline-flex; align-items: center; }
.e-sum i {
  position: absolute; right: 7px; font-style: normal; font-size: 10.5px;
  color: var(--muted-2); pointer-events: none;
}
.exp-row .e-sum input { width: 62px; }
  .team-visual .tv-body { grid-template-columns: 1fr; }
  .tv-side { grid-template-columns: 1fr 1fr; }
  .tv-cursor { display: none; }
  .pro-card, .free-card { padding: 26px 22px; }
  .pro-price b { font-size: 38px; }
  .cta-band { border-radius: 18px; }
  .cmp { min-width: 820px; }
  .cmp th, .cmp td { padding: 12px; }
}


/* --- доли в бюджете ------------------------------------------------------- */
.share-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(242, 243, 240, 0.16);
}
.share-block h4 {
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 243, 240, 0.42);
  margin-bottom: 9px;
}
.share-bar {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(242, 243, 240, 0.1);
  gap: 2px;
}
.share-bar i { display: block; height: 100%; transition: width 0.35s var(--ease); }
.share-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 9px; }
.share-legend span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; color: rgba(242, 243, 240, 0.62);
}
.share-legend span::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime);
}
.share-legend span[data-p="lena"]::before { background: #8edcd4; }
.share-legend span[data-p="mark"]::before { background: #f3c177; }

/* --- активность в карточке команды --------------------------------------- */
.tv-activity {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  font-size: 10.5px; color: var(--muted);
}
.tv-activity b { color: var(--ink); }
.tv-activity .ok {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  display: grid; place-items: center; font-size: 8px; font-weight: 900; flex: none;
}
.tv-activity .tv-live {
  margin-left: auto; font: 700 8.5px/1 var(--mono); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal-ink);
  display: inline-flex; align-items: center; gap: 4px;
}
.tv-activity .tv-live i { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); animation: pulse-dot 2s infinite; }

/* нота на карточке Free */
.free-note {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime-deep);
  border-radius: 0 10px 10px 0;
  padding: 12px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.free-note b { color: var(--ink); }


.settle-notes {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(242, 243, 240, 0.14);
}
.settle-notes span {
  position: relative;
  padding-left: 16px;
  font-size: 10.5px;
  color: rgba(242, 243, 240, 0.5);
}
.settle-notes span::before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgba(216, 250, 75, 0.7);
  font-weight: 700;
}
