:root {
  --tpl-bg: #05080f;
  --tpl-panel: #0a1120;
  --tpl-raised: #0e1729;
  --tpl-text: #e8eef7;
  --tpl-muted: #93a4bd;
  /* Было #5c6e88 — 3,86:1 на подложке секций, ниже нормы WCAG AA для
     мелкого текста. Этим цветом покрашены все служебные подписи сайта. */
  --tpl-dim: #8a9cb8;
  --tpl-accent: #5c7fa6;
  /* Брендовый акцент на 11-12px даёт 4,81:1 — формально проходит, читается
     вымытым. Крупные заголовки остаются на --tpl-accent, мелкий текст
     берёт этот, более светлый тон того же семейства. */
  --tpl-accent-text: #7fa3cf;
  --tpl-line: rgba(120, 160, 220, .14);
  --tpl-ease: cubic-bezier(.22, 1, .36, 1);
}

.tpl-section {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 8vw, 132px) var(--side);
  color: var(--tpl-text);
  background: var(--tpl-bg);
  border-top: 1px solid var(--tpl-line);
  isolation: isolate;
}

.tpl-section::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: min(760px, 64vw);
  height: 440px;
  background: radial-gradient(60% 100% at 30% 0%, rgba(92, 127, 166, .13), transparent 72%);
  content: "";
  pointer-events: none;
}

.tpl-section button,
.tpl-section input,
.tpl-section textarea {
  font: inherit;
}

.tpl-section button {
  color: inherit;
}

.tpl-section h2,
.tpl-section h3,
.tpl-section h4,
.tpl-section summary,
.tpl-site-tab strong,
.tpl-bot-list button > b {
  hyphens: none;
  text-wrap: balance;
}

.tpl-section p,
.tpl-section small,
.tpl-section li {
  text-wrap: pretty;
}

.tpl-section h3 {
  letter-spacing: -.02em;
}

.tpl-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.tpl-heading > div {
  min-width: 0;
}

.tpl-heading h2 {
  max-width: none;
  margin: 14px 0 0;
  color: var(--tpl-text);
  font: 300 clamp(3.2rem, 5.25vw, 5.75rem)/.94 var(--display);
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.tpl-heading h2 em {
  color: var(--tpl-accent);
  font-style: normal;
}

.tpl-heading > p {
  max-width: 48ch;
  margin: 0 0 4px;
  color: var(--tpl-muted);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

.tpl-kicker {
  margin: 0;
  color: var(--tpl-accent-text);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.tpl-site-explorer {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.tpl-site-index {
  display: flex;
  flex-direction: column;
}

.tpl-site-tab,
.tpl-ui-tab,
.tpl-mobile-list button,
.tpl-bot-list button,
.tpl-dashboard-nav button {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tpl-site-tab {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 0 20px 18px;
  border-top: 1px solid var(--tpl-line);
  border-left: 2px solid transparent;
  transition: border-color 360ms var(--tpl-ease), color 360ms var(--tpl-ease), transform 360ms var(--tpl-ease);
}

.tpl-site-tab:last-child {
  border-bottom: 1px solid var(--tpl-line);
}

.tpl-site-tab > span {
  color: var(--tpl-dim);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tpl-site-tab strong {
  color: #8496ae;
  font: 300 25px/1.05 var(--display);
  transition: color 360ms var(--tpl-ease);
}

.tpl-site-tab small {
  color: #7a8aa3;
  font-size: 12.5px;
  line-height: 1.5;
}

.tpl-site-tab:hover,
.tpl-site-tab:focus-visible,
.tpl-site-tab.is-active {
  border-left-color: var(--tpl-accent);
  transform: translateX(4px);
}

.tpl-site-tab:hover strong,
.tpl-site-tab:focus-visible strong,
.tpl-site-tab.is-active strong {
  color: var(--tpl-text);
}

.tpl-site-panel[hidden],
.tpl-ui-panel[hidden],
.tpl-ui-notes > div[hidden],
.tpl-mobile-list[hidden],
.tpl-phone-screen[hidden] {
  display: none !important;
}

.tpl-site-panel {
  margin: 0;
}

.tpl-site-panel > p {
  max-width: 64ch;
  margin: 20px 0 0;
  color: var(--tpl-muted);
  font-size: 15px;
  line-height: 1.65;
}

.tpl-browser.browser-preview {
  height: clamp(430px, 43vw, 620px);
  min-height: 430px;
  overflow: hidden;
  background: var(--tpl-panel);
  border: 1px solid rgba(120, 160, 220, .2);
  border-radius: 0;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);
}

.tpl-browser .browser-bar {
  background: var(--tpl-raised);
  border-color: var(--tpl-line);
}

.tpl-browser .preview-stage {
  background: var(--tpl-panel);
}

.tpl-browser .preview-open {
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 999px;
}

.tpl-ui {
  background: #060a13;
}

.tpl-ui-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.tpl-ui-tab {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px 18px;
  border: 1px solid var(--tpl-line);
  transition: background 320ms var(--tpl-ease), border-color 320ms var(--tpl-ease), transform 320ms var(--tpl-ease);
}

.tpl-ui-tab span {
  color: var(--tpl-dim);
  font-size: 10.5px;
  letter-spacing: .18em;
}

.tpl-ui-tab b {
  color: #8496ae;
  font: 300 17px/1.15 var(--display);
}

.tpl-ui-tab:hover,
.tpl-ui-tab:focus-visible,
.tpl-ui-tab.is-active {
  background: rgba(92, 127, 166, .1);
  border-color: transparent;
  transform: translateY(-3px);
}

.tpl-ui-tab.is-active b {
  color: var(--tpl-text);
}

.tpl-ui-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.tpl-ui-window {
  min-height: 500px;
  overflow: hidden;
  background: #080e1b;
  border: 1px solid rgba(120, 160, 220, .18);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);
}

.tpl-ui-window > header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  border-bottom: 1px solid var(--tpl-line);
}

.tpl-ui-window > header > span,
.tpl-ui-window > header small {
  color: #8fa3be;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tpl-ui-window > header small {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tpl-dim);
}

.tpl-ui-window > header i {
  width: 7px;
  height: 7px;
  display: block;
  background: var(--tpl-accent);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(92, 127, 166, .8);
}

.tpl-ui-panel {
  min-height: 448px;
}

.tpl-ui-panel[data-ui-panel="0"] {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.tpl-dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 12px;
  border-right: 1px solid rgba(120, 160, 220, .1);
}

.tpl-dashboard-nav button {
  min-height: 44px;
  padding: 0 12px;
  color: #8496ae;
  font-size: 12px;
}

.tpl-dashboard-nav button:hover,
.tpl-dashboard-nav button:focus-visible,
.tpl-dashboard-nav button.is-active {
  color: var(--tpl-text);
  background: rgba(92, 127, 166, .14);
  border-left: 2px solid var(--tpl-accent);
}

.tpl-dashboard-nav small {
  margin-top: auto;
  color: #4a5a73;
  font-size: 11px;
  line-height: 1.45;
}

.tpl-dashboard-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
}

.tpl-workspace-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.tpl-workspace-title small {
  color: var(--tpl-dim);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tpl-workspace-title h3 {
  margin: 5px 0 0;
  font: 300 24px/1 var(--display);
}

.tpl-workspace-title button,
.tpl-onboarding-card footer button,
.tpl-request-flow form > button {
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--tpl-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 500ms var(--tpl-ease), transform 620ms var(--tpl-ease);
}

.tpl-workspace-title button:hover,
.tpl-workspace-title button:focus-visible,
.tpl-onboarding-card footer button:hover,
.tpl-onboarding-card footer button:focus-visible,
.tpl-request-flow form > button:hover,
.tpl-request-flow form > button:focus-visible {
  background: #7d9cc0;
  transform: translateY(-3px);
}

.tpl-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tpl-kpis article,
.tpl-dashboard-bottom > article {
  border: 1px solid var(--tpl-line);
}

.tpl-kpis article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
}

.tpl-kpis small {
  color: #7a8aa3;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tpl-kpis b {
  font: 300 26px/1 var(--display);
}

.tpl-kpis span {
  color: var(--tpl-accent-text);
  font-size: 11.5px;
}

.tpl-dashboard-bottom {
  min-height: 185px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px;
}

.tpl-dashboard-bottom article {
  padding: 16px;
}

.tpl-dashboard-bottom header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.tpl-dashboard-bottom header b,
.tpl-dashboard-bottom header small {
  font-size: 12px;
  font-weight: 400;
}

.tpl-dashboard-bottom header small {
  color: var(--tpl-muted);
}

.tpl-chart header span {
  color: var(--tpl-accent-text);
  font-size: 11.5px;
}

.tpl-chart > div {
  height: 128px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding-top: 16px;
}

.tpl-chart > div i {
  flex: 1;
  height: 42%;
  display: block;
  background: #2a4c7a;
}

.tpl-chart > div i:nth-child(2) { height: 56%; }
.tpl-chart > div i:nth-child(3) { height: 48%; }
.tpl-chart > div i:nth-child(4) { height: 70%; background: #31598e; }
.tpl-chart > div i:nth-child(5) { height: 58%; }
.tpl-chart > div i:nth-child(6) { height: 78%; background: #31598e; }
.tpl-chart > div i:nth-child(7) { height: 96%; background: var(--tpl-accent); }

.tpl-dashboard-list ol {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tpl-dashboard-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #b9c6da;
  border-bottom: 1px solid rgba(120, 160, 220, .08);
  font-size: 12px;
}

.tpl-onboarding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 30px;
}

.tpl-steps {
  display: flex;
  align-items: center;
  gap: 54px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpl-steps li {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--tpl-muted);
  border: 1px solid var(--tpl-line);
  border-radius: 999px;
  font-size: 12px;
}

.tpl-steps li.is-active {
  color: #fff;
  background: var(--tpl-accent);
  border-color: var(--tpl-accent);
}

.tpl-onboarding-card {
  width: min(100%, 560px);
  padding: 28px;
  background: #0b1220;
  border: 1px solid var(--tpl-line);
}

.tpl-onboarding-card h3,
.tpl-request-flow h3 {
  margin: 0;
  font: 300 28px/1.1 var(--display);
}

.tpl-onboarding-card > p {
  margin: 8px 0 18px;
  color: var(--tpl-muted);
  font-size: 12px;
  line-height: 1.6;
}

.tpl-onboarding-card > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tpl-onboarding-card > div button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  color: var(--tpl-text);
  background: transparent;
  border: 1px solid var(--tpl-line);
  border-radius: 0;
  text-align: left;
  cursor: pointer;
}

.tpl-onboarding-card > div button.is-active {
  background: rgba(92, 127, 166, .1);
  border-color: var(--tpl-accent);
}

.tpl-onboarding-card > div b {
  font: 300 15px var(--display);
}

.tpl-onboarding-card > div small,
.tpl-onboarding-card footer small {
  color: var(--tpl-muted);
  font-size: 11.5px;
}

.tpl-onboarding-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.tpl-design-system {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 26px 28px;
}

.tpl-design-system article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--tpl-line);
}

.tpl-design-system article > p,
.tpl-flow-result > p {
  margin: 0;
  color: #7a8aa3;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tpl-design-system button {
  min-height: 44px;
  color: var(--tpl-text);
  background: transparent;
  border: 1px solid rgba(140, 180, 240, .35);
  border-radius: 999px;
}

.tpl-design-system .tpl-primary {
  color: #fff;
  background: var(--tpl-accent);
  border-color: transparent;
}

.tpl-design-system .tpl-quiet {
  color: #7d9cc0;
  background: rgba(92, 127, 166, .1);
  border-color: transparent;
}

.tpl-design-system button:disabled {
  color: #4a5a73;
  background: rgba(120, 160, 220, .08);
  border-color: transparent;
}

.tpl-design-system label,
.tpl-request-flow label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #7a8aa3;
  font-size: 11.5px;
}

.tpl-design-system input,
.tpl-request-flow input,
.tpl-request-flow textarea {
  width: 100%;
  color: var(--tpl-text);
  background: transparent;
  border: 1px solid rgba(120, 160, 220, .22);
  border-radius: 0;
  outline: 0;
}

.tpl-design-system input,
.tpl-request-flow input {
  height: 36px;
  padding: 0 10px;
}

.tpl-design-system .is-focus input,
.tpl-request-flow textarea {
  border-color: var(--tpl-accent);
  box-shadow: 0 0 0 3px rgba(92, 127, 166, .14);
}

.tpl-design-system .is-error,
.tpl-request-flow .is-error {
  color: #d6685e;
}

.tpl-design-system .is-error input,
.tpl-request-flow .is-error input {
  color: #d6685e;
  border-color: #d6685e;
}

.tpl-design-system h3,
.tpl-design-system h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
}

.tpl-design-system h3 { font-size: 30px; }
.tpl-design-system h4 { color: #c7d4e6; font-size: 17px; }
.tpl-design-system article > small { color: var(--tpl-muted); line-height: 1.5; }

.tpl-swatches {
  display: flex;
  gap: 7px;
  margin-top: auto;
}

.tpl-swatches i {
  flex: 1;
  height: 30px;
  display: block;
  background: #05080f;
  border: 1px solid var(--tpl-line);
}

.tpl-swatches i:nth-child(2) { background: #0e1729; }
.tpl-swatches i:nth-child(3) { background: #5c7fa6; }
.tpl-swatches i:nth-child(4) { background: #7d9cc0; }
.tpl-swatches i:nth-child(5) { background: #e8eef7; }

.tpl-request-flow {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.tpl-request-flow form,
.tpl-flow-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

.tpl-request-flow form {
  border-right: 1px solid rgba(120, 160, 220, .1);
}

.tpl-request-flow textarea {
  min-height: 72px;
  padding: 11px;
  resize: vertical;
}

.tpl-request-flow form > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tpl-request-flow form > button {
  width: 100%;
}

.tpl-flow-result ol {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpl-flow-result li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 3px 12px;
}

.tpl-flow-result li span {
  grid-row: 1 / 3;
  color: var(--tpl-accent-text);
  font-size: 11px;
}

.tpl-flow-result li b {
  color: #c7d4e6;
  font-size: 12px;
  font-weight: 400;
}

.tpl-flow-result li small {
  color: #7a8aa3;
}

.tpl-ui-notes {
  padding-top: 6px;
}

.tpl-ui-notes > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tpl-ui-notes p {
  margin: 0;
  color: var(--tpl-accent-text);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tpl-ui-notes h3 {
  margin: 0;
  font: 300 34px/1.05 var(--display);
}

.tpl-ui-notes span {
  color: var(--tpl-muted);
  font-size: 15px;
  line-height: 1.7;
}

.tpl-ui-notes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpl-ui-notes li,
.tpl-agent-list details p span {
  padding: 7px 13px;
  color: #b9c6da;
  background: rgba(120, 160, 220, .09);
  border: 1px solid var(--tpl-line);
  border-radius: 999px;
  font-size: 12px;
}

.tpl-mobile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.tpl-phone-scene {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 40px;
  overflow: hidden;
  background: radial-gradient(70% 90% at 30% 20%, rgba(92, 127, 166, .14), rgba(6, 10, 20, .9));
  border: 1px solid var(--tpl-line);
}

.tpl-phone-scene::before,
.tpl-phone-scene::after {
  position: absolute;
  width: 360px;
  aspect-ratio: 1;
  border: 1px solid rgba(120, 160, 220, .1);
  border-radius: 999px;
  content: "";
}

.tpl-phone-scene::before { top: -110px; left: -90px; }
.tpl-phone-scene::after { right: -130px; bottom: -150px; }

.tpl-phone {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 12px;
  background: #0a1020;
  border: 1px solid rgba(160, 200, 255, .28);
  border-radius: 38px;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95);
}

.tpl-phone-front {
  width: 250px;
  height: 508px;
  transform: rotate(4deg);
}

.tpl-phone-back {
  width: 214px;
  height: 436px;
  opacity: .52;
  transform: rotate(-7deg);
}

.tpl-phone-back > div,
.tpl-phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px 18px;
  overflow: hidden;
  background: #0c1424;
  border-radius: 27px;
}

.tpl-phone small {
  color: #7a8aa3;
  font-size: 11px;
}

.tpl-phone p {
  margin: 0;
  color: #7d9cc0;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tpl-phone h3 {
  margin: 0;
  font: 300 25px/1.08 var(--display);
}

.tpl-phone-screen > span {
  padding: 12px;
  color: #c7d4e6;
  background: rgba(120, 160, 220, .07);
  border: 1px solid var(--tpl-line);
  font-size: 12px;
}

.tpl-phone-screen > a {
  min-height: 42px;
  display: grid;
  place-items: center;
  margin-top: auto;
  color: #fff;
  background: var(--tpl-accent);
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  transition: background 500ms var(--tpl-ease), transform 620ms var(--tpl-ease);
}

.tpl-phone-screen > a:hover,
.tpl-phone-screen > a:focus-visible {
  background: #7d9cc0;
  transform: translateY(-3px);
}

.tpl-phone-back i {
  height: 3px;
  display: block;
  background: linear-gradient(90deg, var(--tpl-accent) 62%, rgba(120, 160, 220, .15) 62%);
}

.tpl-phone-back span {
  height: 54px;
  display: block;
  background: rgba(120, 160, 220, .06);
}

.tpl-mobile-control {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tpl-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid rgba(120, 160, 220, .18);
  border-radius: 999px;
}

.tpl-segmented button {
  min-height: 40px;
  color: #8496ae;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.tpl-segmented button.is-active {
  color: #fff;
  background: var(--tpl-accent);
}

.tpl-mobile-list {
  display: flex;
  flex-direction: column;
}

.tpl-mobile-list button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 0 16px 16px;
  border-top: 1px solid var(--tpl-line);
  border-left: 2px solid transparent;
}

.tpl-mobile-list button:last-child {
  border-bottom: 1px solid var(--tpl-line);
}

.tpl-mobile-list button span {
  color: var(--tpl-dim);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tpl-mobile-list button b {
  color: #8496ae;
  font: 300 21px/1.05 var(--display);
}

.tpl-mobile-list button:hover,
.tpl-mobile-list button:focus-visible,
.tpl-mobile-list button.is-active {
  border-left-color: var(--tpl-accent);
}

.tpl-mobile-list button.is-active b {
  color: var(--tpl-text);
}

.tpl-mobile-control > p {
  margin: 0;
  color: var(--tpl-muted);
  font-size: 15px;
  line-height: 1.7;
}

.tpl-bot-layout {
  display: grid;
  grid-template-columns: minmax(330px, 400px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 60px);
  align-items: start;
}

.tpl-chat {
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(120, 160, 220, .2);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95);
}

.tpl-chat > header {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: #101b2e;
  border-bottom: 1px solid var(--tpl-line);
}

.tpl-chat > header > i {
  width: 34px;
  height: 34px;
  display: block;
  flex: none;
  background: linear-gradient(140deg, var(--tpl-accent), #1b4c86);
  border-radius: 999px;
}

.tpl-chat > header div {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.tpl-chat > header b {
  font-size: 13px;
  font-weight: 400;
}

.tpl-chat > header small {
  color: #7d9cc0;
  font-size: 11.5px;
}

.tpl-chat > header > span {
  color: var(--tpl-dim);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tpl-messages {
  height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(92, 127, 166, .05), transparent 40%);
}

.tpl-message {
  max-width: 78%;
  padding: 11px 14px;
  color: #c7d4e6;
  background: rgba(120, 160, 220, .09);
  border: 1px solid var(--tpl-line);
  border-radius: 0;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
  animation: tpl-message-in 420ms var(--tpl-ease) both;
}

.tpl-message.is-user {
  align-self: flex-end;
  color: #fff;
  background: #1f6fd1;
  border-color: #1f6fd1;
}

.tpl-message time {
  display: block;
  margin-top: 5px;
  color: rgba(232, 238, 247, .56);
  font-size: 10.5px;
  text-align: right;
}

.tpl-typing {
  display: flex;
  gap: 4px;
  align-self: flex-start;
  padding: 13px 16px;
  background: rgba(120, 160, 220, .09);
  border: 1px solid var(--tpl-line);
}

.tpl-typing i {
  width: 5px;
  height: 5px;
  display: block;
  background: #8fa3be;
  border-radius: 999px;
  animation: tpl-dot 1.2s infinite;
}

.tpl-typing i:nth-child(2) { animation-delay: .2s; }
.tpl-typing i:nth-child(3) { animation-delay: .4s; }

.tpl-chat > footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: #101b2e;
  border-top: 1px solid var(--tpl-line);
}

.tpl-chat > footer span {
  flex: 1;
  color: #4a5a73;
  font-size: 12.5px;
}

.tpl-chat > footer button {
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  background: var(--tpl-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 500ms var(--tpl-ease), transform 620ms var(--tpl-ease);
}

.tpl-chat > footer button:hover,
.tpl-chat > footer button:focus-visible {
  background: #7d9cc0;
  transform: translateY(-3px);
}

.tpl-bot-side {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.tpl-bot-list {
  display: flex;
  flex-direction: column;
}

.tpl-bot-list button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 5px 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--tpl-line);
}

.tpl-bot-list button:last-child {
  border-bottom: 1px solid var(--tpl-line);
}

.tpl-bot-list button > span {
  grid-row: 1 / 3;
  color: var(--tpl-dim);
  font-size: 12.5px;
  letter-spacing: .18em;
}

.tpl-bot-list button > b {
  color: #8496ae;
  font: 300 26px/1.05 var(--display);
}

.tpl-bot-list button > small {
  color: #b6c6dc;
  font-size: 16.5px;
  line-height: 1.5;
}

.tpl-bot-list button > em {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--tpl-dim);
  font-size: 12.5px;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tpl-bot-list button:hover > b,
.tpl-bot-list button:focus-visible > b,
.tpl-bot-list button.is-active > b,
.tpl-bot-list button.is-active > span,
.tpl-bot-list button.is-active > em {
  color: var(--tpl-accent-text);
}

.tpl-bot-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tpl-bot-metrics article {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--tpl-line);
}

.tpl-bot-metrics b {
  color: #7d9cc0;
  font: 300 32px/1 var(--display);
}

.tpl-bot-metrics span {
  color: #7a8aa3;
  font-size: 12px;
  line-height: 1.45;
}

.tpl-crm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 14px;
}

.tpl-crm-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--tpl-text);
  background: var(--tpl-panel);
  border: 1px solid var(--tpl-line);
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 420ms var(--tpl-ease), border-color 420ms var(--tpl-ease), box-shadow 420ms var(--tpl-ease), opacity 420ms var(--tpl-ease);
}

.tpl-crm-grid:has(.tpl-crm-card.is-active) .tpl-crm-card:not(.is-active) {
  opacity: .68;
  transform: translateY(8px) scale(.985);
}

.tpl-crm-card:hover,
.tpl-crm-card:focus-visible,
.tpl-crm-card.is-active {
  z-index: 1;
  opacity: 1;
  border-color: rgba(92, 127, 166, .62);
  box-shadow: 0 28px 60px -32px rgba(92, 127, 166, .45);
  transform: translateY(-12px) scale(1.015);
}

.tpl-crm-card > header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(120, 160, 220, .1);
}

.tpl-crm-card > header span {
  color: #7a8aa3;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tpl-crm-card > header i {
  width: 6px;
  height: 6px;
  display: block;
  background: var(--tpl-dim);
  border-radius: 999px;
}

.tpl-crm-card.is-active > header i {
  background: var(--tpl-accent);
  box-shadow: 0 0 14px var(--tpl-accent);
}

.tpl-crm-card > p {
  min-height: 64px;
  margin: 0;
  padding: 0 14px 14px;
  color: #8fa3be;
  font-size: 12px;
  line-height: 1.45;
}

.tpl-pipeline-board,
.tpl-client-card,
.tpl-report-card,
.tpl-rules-card {
  height: 242px;
  padding: 14px;
}

.tpl-pipeline-board {
  display: flex;
  gap: 8px;
}

.tpl-pipeline-board section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tpl-pipeline-board small {
  color: var(--tpl-dim);
  font-size: 10.5px;
  text-transform: uppercase;
}

.tpl-pipeline-board i {
  height: 36px;
  display: block;
  background: rgba(120, 160, 220, .08);
}

.tpl-pipeline-board section:first-child i:first-of-type {
  background: rgba(92, 127, 166, .18);
}

.tpl-client-card {
  display: flex;
  flex-direction: column;
}

.tpl-client-card h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
}

.tpl-client-card > small,
.tpl-client-card > b {
  color: #7a8aa3;
  font-size: 11px;
  font-weight: 400;
}

.tpl-client-card dl {
  margin: 18px 0;
}

.tpl-client-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(120, 160, 220, .08);
  font-size: 11.5px;
}

.tpl-client-card dt { color: #8fa3be; }
.tpl-client-card dd { margin: 0; color: #c7d4e6; }
.tpl-client-card > b { margin-top: auto; line-height: 1.55; }

.tpl-report-card > div {
  display: flex;
  gap: 8px;
}

.tpl-report-card > div span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(120, 160, 220, .12);
}

.tpl-report-card small {
  color: var(--tpl-dim);
  font-size: 10.5px;
  text-transform: uppercase;
}

.tpl-report-card b {
  font: 300 18px var(--display);
}

.tpl-report-card figure {
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 20px 0 0;
}

.tpl-report-card figure i {
  flex: 1;
  height: 40%;
  background: #2a4c7a;
}

.tpl-report-card figure i:nth-child(2) { height: 62%; }
.tpl-report-card figure i:nth-child(3) { height: 50%; }
.tpl-report-card figure i:nth-child(4) { height: 80%; background: #31598e; }
.tpl-report-card figure i:nth-child(5) { height: 66%; }
.tpl-report-card figure i:nth-child(6) { height: 94%; background: var(--tpl-accent); }

.tpl-rules-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tpl-rules-card > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(120, 160, 220, .12);
}

.tpl-rules-card b {
  color: #c7d4e6;
  font-size: 11.5px;
  font-weight: 400;
}

.tpl-rules-card small {
  color: #7a8aa3;
  font-size: 11px;
}

.tpl-placeholder-note {
  margin: 22px 0 0;
  color: var(--tpl-dim);
  font-size: 12.5px;
}

.tpl-agent-list {
  display: flex;
  flex-direction: column;
}

.tpl-agent-list details {
  border-top: 1px solid var(--tpl-line);
}

.tpl-agent-list details:last-child {
  border-bottom: 1px solid var(--tpl-line);
}

.tpl-agent-list summary {
  display: grid;
  grid-template-columns: 60px minmax(220px, 1fr) minmax(280px, 1.1fr) 32px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}

.tpl-agent-list summary::-webkit-details-marker {
  display: none;
}

.tpl-agent-list summary > span {
  color: var(--tpl-accent-text);
  font-size: 12px;
  letter-spacing: .2em;
}

.tpl-agent-list summary > b {
  font: 300 27px/1 var(--display);
}

.tpl-agent-list summary > small {
  color: #b6c6dc;
  font-size: 16.5px;
  line-height: 1.6;
}

.tpl-agent-list summary > i {
  position: relative;
  width: 18px;
  height: 18px;
  justify-self: end;
}

.tpl-agent-list summary > i::before,
.tpl-agent-list summary > i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--tpl-dim);
  content: "";
  transform: translate(-50%, -50%);
}

.tpl-agent-list summary > i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 300ms var(--tpl-ease);
}

.tpl-agent-list details[open] summary > i::after {
  transform: translate(-50%, -50%) rotate(0);
}

.tpl-agent-list details > div {
  display: grid;
  grid-template-columns: 60px 1fr 1.1fr 32px;
  gap: 24px;
  padding: 0 0 30px;
}

.tpl-agent-list details > div::before {
  content: "";
}

.tpl-agent-list details p {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  margin: 0;
  color: #c2cfe2;
  font-size: 16.5px;
  line-height: 1.7;
}

.tpl-agent-list details p > b {
  width: 100%;
  color: #a3b6d0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.theme-original main > .section.services,
.theme-original main > .section.approach,
.theme-original main > .section.process,
.theme-original main > .section.about,
.theme-original main > .section.faq {
  background: var(--tpl-bg);
  border-top-color: var(--tpl-line);
}

@keyframes tpl-message-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tpl-dot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 1100px) {
  .tpl-site-explorer,
  .tpl-ui-layout,
  .tpl-mobile-layout,
  .tpl-bot-layout {
    grid-template-columns: 1fr;
  }

  .tpl-site-index {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .tpl-site-tab:last-child {
    border-bottom: 0;
  }

  .tpl-ui-notes {
    max-width: 64ch;
  }

  .tpl-mobile-control {
    display: grid;
    grid-template-columns: minmax(280px, .6fr) 1fr;
    align-items: start;
  }

  .tpl-mobile-control > p {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .tpl-crm-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tpl-agent-list summary {
    grid-template-columns: 48px minmax(220px, .8fr) 1.2fr 28px;
  }

  .tpl-agent-list details > div {
    grid-template-columns: 48px 1fr 1.2fr 28px;
  }
}

@media (max-width: 760px) {
  .tpl-section {
    padding: 80px 20px;
  }

  .tpl-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 38px;
  }

  .tpl-heading h2 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  .tpl-heading > p {
    max-width: 58ch;
  }

  .tpl-site-index,
  .tpl-ui-tabs {
    grid-template-columns: 1fr;
  }

  .tpl-site-tab {
    min-height: 90px;
  }

  .tpl-browser.browser-preview {
    height: min(115vw, 520px);
    min-height: 380px;
  }

  .tpl-ui-layout {
    gap: 30px;
  }

  .tpl-ui-window {
    min-height: 0;
  }

  .tpl-ui-panel[data-ui-panel="0"] {
    grid-template-columns: 1fr;
  }

  .tpl-dashboard-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--tpl-line);
  }

  .tpl-dashboard-nav button {
    padding: 0 6px;
    text-align: center;
  }

  .tpl-dashboard-nav small {
    display: none;
  }

  .tpl-dashboard-content {
    padding: 18px;
  }

  .tpl-workspace-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .tpl-kpis {
    grid-template-columns: 1fr;
  }

  .tpl-dashboard-bottom {
    grid-template-columns: 1fr;
  }

  .tpl-onboarding {
    padding: 24px 16px;
  }

  .tpl-onboarding-card {
    padding: 20px;
  }

  .tpl-onboarding-card > div {
    grid-template-columns: 1fr;
  }

  .tpl-design-system,
  .tpl-request-flow {
    grid-template-columns: 1fr;
  }

  .tpl-request-flow form {
    border-right: 0;
    border-bottom: 1px solid var(--tpl-line);
  }

  .tpl-phone-scene {
    min-height: 520px;
    gap: 0;
    padding: 24px 8px;
  }

  .tpl-phone-back {
    position: absolute;
    left: 16px;
    transform: rotate(-7deg) scale(.82);
  }

  .tpl-phone-front {
    margin-left: 72px;
    transform: rotate(3deg) scale(.92);
  }

  .tpl-mobile-control {
    display: flex;
  }

  .tpl-bot-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tpl-messages {
    height: 430px;
  }

  .tpl-bot-list button {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .tpl-bot-list button > em {
    display: none;
  }

  .tpl-bot-metrics,
  .tpl-crm-grid {
    grid-template-columns: 1fr;
  }

  .tpl-crm-card,
  .tpl-crm-grid:has(.tpl-crm-card.is-active) .tpl-crm-card:not(.is-active),
  .tpl-crm-card:hover,
  .tpl-crm-card:focus-visible,
  .tpl-crm-card.is-active {
    opacity: 1;
    transform: none;
  }

  .tpl-agent-list summary {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 12px;
  }

  .tpl-agent-list summary > small {
    grid-column: 2 / 4;
  }

  .tpl-agent-list summary > i {
    grid-column: 3;
    grid-row: 1;
  }

  .tpl-agent-list details > div {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .tpl-agent-list details > div p:last-child {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpl-section *,
  .tpl-section *::before,
  .tpl-section *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
