:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #697482;
  --line: #dce2e8;
  --soft: #f3f6f8;
  --paper: #ffffff;
  --accent: #0e7c86;
  --accent-dark: #07515b;
  --sun: #f0b84b;
  --steel: #52616f;
  --success: #1d8f5f;
  --shadow: 0 18px 48px rgba(32, 43, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eef3f5;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 74px;
  padding: 14px 24px;
  background: #17212b;
  color: #f7fbff;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 800;
}

.brand small,
.sidebar-note p,
.metric p,
.product-card p,
.lead-card p,
.partner-stack p,
.generated-copy p,
.hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.brand small {
  display: block;
  color: #a9b6c3;
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
}

.nav a {
  color: #dce5ed;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-note {
  display: none;
  margin-left: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-note p {
  display: none;
}

.sidebar-note strong {
  white-space: nowrap;
  font-size: 13px;
}

.pulse {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(29, 143, 95, 0.18);
}

.workspace {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 20px;
}

.command-bar,
.hero-panel,
.panel,
.metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 860px;
  font-size: clamp(28px, 3.8vw, 50px);
}

h2 {
  font-size: 24px;
}

.quick-actions,
.hero-actions,
.segmented,
.generator-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.lang-option {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--steel);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.lang-option.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(32, 43, 54, 0.09);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  cursor: pointer;
}

.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: #edf2f5;
  color: var(--ink);
  border-color: var(--line);
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.hero-panel {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 30px;
}

.hero-copy p {
  max-width: 620px;
}

.hero-image {
  min-height: 340px;
  background:
    linear-gradient(90deg, rgba(24, 32, 42, 0.1), rgba(24, 32, 42, 0)),
    url("https://images.unsplash.com/photo-1572635196237-14b3f281503f?auto=format&fit=crop&w=1200&q=82") center / cover;
}

.metric-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.customer-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.customer-cta-grid article {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.customer-cta-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-cta-grid strong {
  font-size: 20px;
  line-height: 1.18;
}

.customer-cta-grid button {
  min-height: 36px;
  border: 1px solid rgba(14, 124, 134, 0.35);
  border-radius: 8px;
  background: #eef8f9;
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
}

.metric {
  padding: 18px;
}

.metric span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 32px;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.1fr);
  gap: 20px;
}

.bottom-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr) minmax(280px, 0.8fr);
}

.operations-grid {
  grid-template-columns: minmax(320px, 0.75fr) minmax(520px, 1.25fr);
}

.panel {
  padding: 20px;
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.status-pill {
  color: var(--success);
  background: #e8f7ef;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.funnel-panel {
  overflow: hidden;
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.funnel-step {
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
  opacity: 0.72;
  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.funnel-step.active {
  background: #ffffff;
  border-color: rgba(14, 124, 134, 0.45);
  opacity: 1;
  transform: translateY(-2px);
}

.funnel-step span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #e8f1f3;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.funnel-step strong {
  display: block;
  margin-bottom: 8px;
}

.funnel-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.chat-window {
  height: 370px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
}

.message {
  max-width: 86%;
  padding: 11px 12px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 14px;
}

.message.ai {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
}

.message.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
}

.message strong {
  display: block;
  margin-bottom: 4px;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.lead-capture {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(14, 124, 134, 0.28);
  border-radius: 8px;
  background: #ffffff;
}

.smart-fit-panel {
  display: grid;
  gap: 14px;
}

.section-divider {
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.section-divider h2 {
  max-width: 760px;
  font-size: clamp(22px, 2.7vw, 34px);
}

.section-divider p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.demo-intro,
.demo-link-panel,
.cabinet-entry-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(82, 97, 111, 0.26);
  border-left: 5px solid var(--steel);
  border-radius: 8px;
  background: #f8fafb;
  box-shadow: var(--shadow);
}

.demo-intro h2,
.demo-link-panel h2,
.cabinet-entry-panel h2 {
  max-width: 760px;
  font-size: clamp(22px, 2.7vw, 34px);
}

.cabinet-entry-panel {
  flex-direction: column;
  align-items: stretch;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.role-grid button {
  min-height: 46px;
  border: 1px solid rgba(14, 124, 134, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
}

.role-grid button.active,
.role-grid button:hover {
  background: var(--accent);
  color: #ffffff;
}

.role-view {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.role-view span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-view strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.role-view p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.role-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.role-feature-grid div {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #eef4f7;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.role-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.role-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.role-actions button.active,
.role-actions button:hover {
  border-color: rgba(14, 124, 134, 0.35);
  background: rgba(14, 124, 134, 0.1);
  color: var(--accent-dark);
}

.role-result {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(14, 124, 134, 0.2);
  border-radius: 8px;
  background: #ffffff;
}

.role-result strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.role-result p {
  margin: 0;
  color: var(--ink);
}

.fit-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
}

.fit-result {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 12px;
  align-items: stretch;
}

.fit-summary,
.fit-cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.fit-summary {
  padding: 16px;
}

.fit-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fit-summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.fit-summary p,
.fit-cards p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.fit-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fit-cards article {
  padding: 14px;
}

.fit-cards strong {
  display: block;
  margin-bottom: 7px;
}

.capture-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.capture-title strong {
  font-size: 15px;
}

.capture-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.capture-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 0.8fr);
  gap: 10px;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
}

.segmented {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.segment {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 6px 9px;
  background: transparent;
  color: var(--steel);
  cursor: pointer;
}

.segment.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(32, 43, 54, 0.09);
}

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.product-photo {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.product-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.product-specs div {
  padding: 8px;
  border-radius: 8px;
  background: #eef4f7;
}

.product-specs dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-specs dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-cta {
  width: 100%;
  min-height: 34px;
  margin-top: 12px;
  border: 1px solid rgba(14, 124, 134, 0.35);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.product-cta:hover {
  background: #e8f7f8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e8f1f3;
  color: #275963;
  font-size: 12px;
  font-weight: 700;
}

.lead-list {
  display: grid;
  gap: 10px;
}

.lead-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfe;
}

.lead-card.selected {
  border-color: rgba(14, 124, 134, 0.55);
  box-shadow: inset 3px 0 0 var(--accent);
}

.lead-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.lead-card strong {
  font-size: 15px;
}

.lead-contact,
.manager-contact {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #eef4f7;
}

.lead-contact span,
.lead-contact small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.lead-contact strong {
  display: block;
  margin: 2px 0;
}

.manager-contact {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.priority {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.lead-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.lead-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.generated-copy {
  min-height: 190px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.generated-copy h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.partner-stack {
  display: grid;
  gap: 16px;
}

.partner-stack > div {
  min-height: 182px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(14, 124, 134, 0.12), rgba(240, 184, 75, 0.1)),
    #fbfdfe;
}

.partner-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.partner-form input,
.partner-form select,
.partner-form button {
  width: 100%;
}

.phone-frame {
  max-width: 360px;
  margin: 0 auto;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  background: #eef4f7;
  overflow: hidden;
}

.phone-top {
  padding: 12px 14px;
  background: #17212b;
  color: #fff;
  font-weight: 800;
}

.telegram-message {
  margin: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(32, 43, 54, 0.1);
}

.telegram-message strong,
.telegram-message span,
.telegram-message small {
  display: block;
}

.telegram-message strong {
  margin-bottom: 8px;
}

.telegram-message span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.telegram-message p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.telegram-message small {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.package-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.manager-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1fr) minmax(220px, 0.85fr);
  gap: 12px;
}

.manager-summary,
.pipeline-box,
.manager-follow,
.next-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.manager-summary,
.pipeline-box,
.manager-follow {
  min-height: 170px;
  padding: 16px;
}

.manager-summary span,
.pipeline-box > span,
.manager-follow span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.manager-summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.manager-summary p,
.manager-follow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pipeline-steps {
  display: grid;
  gap: 8px;
}

.pipeline-steps strong {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #edf2f5;
}

.pipeline-steps strong:first-child,
.pipeline-steps strong:nth-child(2) {
  background: #e8f7ef;
  color: var(--success);
}

.next-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.next-list > div {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 14px;
  color: var(--ink);
  font-weight: 850;
}

.final-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(14, 124, 134, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 124, 134, 0.12), rgba(240, 184, 75, 0.14)),
    #ffffff;
  box-shadow: var(--shadow);
}

.final-cta h2 {
  max-width: 780px;
  font-size: clamp(24px, 3vw, 38px);
}

.final-cta p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.final-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(32, 43, 54, 0.16);
  backdrop-filter: blur(10px);
}

.floating-cta a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.floating-cta a:first-child {
  background: var(--accent);
  color: #ffffff;
}

.mobile-nav {
  display: none;
}

.package-list > div {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.package-list strong {
  display: block;
  margin-bottom: 8px;
}

.package-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .app-shell,
  .hero-grid,
  .work-grid,
  .bottom-grid,
  .operations-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .sidebar-note {
    margin-top: 0;
    margin-left: auto;
  }

  .nav {
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .funnel-grid,
  .package-list,
  .manager-board,
  .next-list,
  .customer-cta-grid,
  .metric-grid,
  .role-grid,
  .role-view,
  .role-feature-grid,
  .fit-controls,
  .fit-result,
  .fit-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-intro,
  .demo-link-panel,
  .cabinet-entry-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 74px;
  }

  .workspace,
  .sidebar {
    padding: 14px;
  }

  .sidebar {
    min-height: 62px;
    gap: 12px;
  }

  .brand small,
  .nav,
  .quick-actions .icon-button {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 30px;
  }

  .command-bar,
  .hero-panel,
  .panel-header,
  .chat-form,
  .capture-fields,
  .capture-title {
    grid-template-columns: 1fr;
  }

  .command-bar,
  .panel-header,
  .capture-title {
    display: grid;
  }

  .hero-panel {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    padding: 20px;
  }

  .hero-image {
    min-height: 260px;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .funnel-grid,
  .package-list,
  .manager-board,
  .next-list,
  .customer-cta-grid,
  .metric-grid,
  .role-grid,
  .role-view,
  .role-feature-grid,
  .fit-controls,
  .fit-result,
  .fit-cards {
    grid-template-columns: 1fr;
  }

  .floating-cta {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(32, 43, 54, 0.18);
    backdrop-filter: blur(10px);
  }

  .mobile-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: var(--ink);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-nav a:first-child {
    background: var(--accent);
    color: #ffffff;
  }

  .role-actions {
    justify-content: flex-start;
  }

  .product-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .product-photo {
    width: 86px;
    height: 86px;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 94%;
  }
}
