@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/ubuntu-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/ubuntu-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/ubuntu-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/ubuntu-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

:root {
  color-scheme: light;
  --page: #fbfbfb;
  --sidebar: #1b1b1b;
  --header: #fdfdfd;
  --surface: #fffaff;
  --surface-strong: #fdfdfd;
  --surface-hover: #f6f0ff;
  --text: #1b1b1b;
  --text-on-surface: #323235;
  --muted: #a7a7a7;
  --line: #f0f0f0;
  --line-strong: #d4d4d4;
  --accent: #915ce5;
  --accent-dark: #622fcf;
  --accent-light: #bfa3f0;
  --accent-pale: #ede4fb;
  --input: #fdfdfd;
  --shadow: 0 2px 2.1px rgba(0, 0, 0, 0.1);
  font-family: "Montserrat", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #16141f;
  --surface: #fffaff;
  --surface-strong: #fdfdfd;
  --surface-hover: #f6f0ff;
  --text: #fbfbfb;
  --text-on-surface: #323235;
  --muted: #a7a7a7;
  --line: #424242;
  --line-strong: #55525e;
  --input: #fdfdfd;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3,
.button,
.nav-item {
  font-family: "Ubuntu", Arial, sans-serif;
}

.app-shell {
  display: grid;
  grid-template-columns: 344px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 32px 48px 24px;
  overflow: hidden;
  color: #fdfdfd;
  background: var(--sidebar);
}

.brand {
  display: flex;
  width: 176px;
  height: 64px;
  align-items: flex-start;
  margin-bottom: 20px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 173px;
  height: auto;
}

.brand-symbol {
  display: none;
  width: 56px;
  height: 55px;
}

.main-nav,
.sidebar-footer {
  display: grid;
  gap: 4px;
}

.sidebar-footer {
  margin-top: auto;
}

.sidebar-footer form {
  margin: 0;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  color: #a7a7a7;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: #fdfdfd;
  background: rgba(145, 92, 229, 0.14);
  outline: none;
}

.nav-item.is-active {
  color: #fdfdfd;
}

.nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
}

.nav-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-icon--text {
  font-size: 18px;
}

.theme-toggle {
  position: relative;
  width: 62px;
  height: 32px;
  margin: 12px 0 0;
  padding: 0;
  background: #595959;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.theme-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: #fdfdfd;
  border-radius: 50%;
  transition: transform 160ms ease;
}

:root[data-theme="dark"] .theme-knob {
  transform: translateX(30px);
}

.theme-knob img {
  width: 18px;
  height: 18px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: relative;
  z-index: 8;
  display: flex;
  height: 122px;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
  color: #111827;
  background: var(--header);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.mobile-brand {
  display: none;
}

.search {
  display: flex;
  width: 480px;
  height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #fdfdfd;
  border: 1px solid #a7a7a7;
  border-radius: 6px;
}

.search img {
  width: 24px;
  height: 24px;
  filter: brightness(0.35);
}

.search input {
  width: 100%;
  color: #323235;
  background: transparent;
  border: 0;
  outline: 0;
}

.search input::placeholder {
  color: #9ba8c3;
}

.profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-notice {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: #f5fbff;
  border-radius: 6px;
}

.profile-notice img {
  width: 24px;
  height: 24px;
  filter: brightness(0.25);
}

.profile-notice.is-active {
  background: var(--accent-pale);
}

.notice-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border: 1px solid #fff;
  border-radius: 50%;
}

.profile-copy {
  display: grid;
  gap: 3px;
  min-width: 206px;
}

.profile-copy strong {
  color: #111827;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.profile-copy small {
  color: #9ba8c3;
  font-size: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.content {
  width: 100%;
  min-height: calc(100vh - 122px);
  padding: 32px 48px 48px;
}

.content > h1,
.page-title-row > h1 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 35px;
  font-weight: 700;
  line-height: 45px;
}

.page-title-row {
  display: flex;
  min-height: 45px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-title-row > h1 {
  margin: 0;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

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

.button:hover,
.button:focus-visible {
  filter: brightness(0.96);
  outline: 2px solid rgba(145, 92, 229, 0.22);
  outline-offset: 2px;
}

.flash {
  margin: 0 0 20px;
  padding: 13px 16px;
  color: #323235;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.flash--success {
  color: #1e6500;
  background: #e5f8d3;
}

.flash--error {
  color: #a62929;
  background: #ffe8e7;
}

/* Главная */

.page-dashboard {
  background: var(--page);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 24px;
}

.project-card,
.dashboard-card,
.manager-card,
.data-card,
.project-list article {
  color: var(--text-on-surface);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.project-card {
  grid-column: span 2;
  padding: 24px 40px;
  background: var(--surface-strong);
}

.project-card-head {
  display: flex;
  height: 36px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #323235;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.project-brand img {
  width: 24px;
  height: 28px;
}

.project-card time {
  margin-top: 0;
  padding: 9px 10px;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 6px;
}

.project-card h2 {
  margin: 9px 0 0;
  color: #323235;
  font-size: 24px;
  line-height: 36px;
}

.project-link {
  color: var(--accent-light);
  font-family: "Ubuntu", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
}

.project-card > p {
  margin: 17px 0 14px;
  color: #323235;
  font-size: 16px;
  line-height: 22px;
}

.project-manager {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 8px;
  color: #a7a7a7;
}

.manager-channel {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--accent-pale);
  border-radius: 50%;
}

.manager-channel img {
  width: 16px;
  height: 16px;
}

.dashboard-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  text-decoration: none;
}

.dashboard-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.card-icon,
.manager-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  padding: 8px;
  background: var(--accent);
  border-radius: 6px;
}

.card-icon img,
.manager-icon img {
  width: 40px;
  height: 40px;
}

.dashboard-card-copy {
  display: grid;
  gap: 4px;
}

.dashboard-card-copy strong {
  color: #323235;
  font-family: "Ubuntu", Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

.dashboard-card-copy small {
  color: var(--accent);
  font-size: 14px;
}

.manager-card {
  display: flex;
  gap: 16px;
  padding: 24px;
}

.manager-icon {
  flex: 0 0 56px;
}

.manager-card h2 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 36px;
}

.manager-card p {
  margin: 22px 0 0;
  color: #a7a7a7;
  line-height: 22px;
}

/* План работ */

.plan-cta {
  min-width: 278px;
}

.plan-board {
  width: 100%;
}

.timeline {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(30, minmax(54px, 1fr));
  grid-auto-rows: 50px;
  padding-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.timeline::-webkit-scrollbar {
  display: none;
}

.timeline-days {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  color: #a7a7a7;
  border-bottom: 1px solid var(--line);
}

.timeline-days span {
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
}

.timeline-days b {
  color: #777;
  font-size: 14px;
  font-weight: 500;
}

.timeline-days small {
  margin-top: 4px;
}

.timeline-task {
  z-index: 1;
  grid-column: var(--start) / span var(--span);
  align-self: center;
  min-height: 44px;
  margin: 3px;
  padding: 11px 14px;
  overflow: hidden;
  border: 1px solid;
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-completed {
  color: #323235;
  background: #f0f0f0;
  border-color: #a7a7a7;
}

.status-approved {
  color: #1e6500;
  background: #e4f7c9;
  border-color: #9bcc74;
}

.status-in_progress {
  color: #3d1bba;
  background: #eee4fb;
  border-color: #a67bea;
}

.status-attention {
  color: #c2550f;
  background: #fff6cf;
  border-color: #e8cb5b;
}

.timeline-scroll {
  position: relative;
  height: 6px;
  margin: 24px 0;
  background: #f0f0f0;
  border-radius: 999px;
}

.timeline-scroll span {
  display: block;
  width: 45%;
  height: 6px;
  background: var(--accent);
  border-radius: 999px;
}

.legend h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 36px;
}

.legend-grid {
  display: grid;
  width: 550px;
  grid-template-columns: 1fr 1fr;
  gap: 14px 38px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  background: transparent;
  border: 0;
}

.legend-item i {
  width: 80px;
  height: 44px;
  flex: 0 0 80px;
  background: currentColor;
  border: 1px solid currentColor;
  border-radius: 4px;
}

.legend-item.status-completed i {
  color: #f0f0f0;
  border-color: #a7a7a7;
}

.legend-item.status-approved i {
  color: #e4f7c9;
  border-color: #9bcc74;
}

.legend-item.status-in_progress i {
  color: #eee4fb;
  border-color: #a67bea;
}

.legend-item.status-attention i {
  color: #fff6cf;
  border-color: #e8cb5b;
}

/* Таблицы */

.table-toolbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #a67bea;
  background: transparent;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

.sort-button span {
  color: var(--text);
  font-size: 22px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-search {
  display: flex;
  width: 260px;
  height: 42px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.table-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  color: #323235;
  background: transparent;
  border: 0;
  outline: 0;
}

.table-search button {
  display: grid;
  width: 42px;
  height: 40px;
  place-items: center;
  background: transparent;
  border: 0;
}

.table-search img {
  width: 20px;
  height: 20px;
  filter: brightness(0.35);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.icon-button img {
  width: 24px;
  height: 24px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  color: #323235;
  background: #fdfdfd;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid #d4d4d4;
  text-align: left;
  vertical-align: middle;
}

th {
  height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
  color: #a67bea;
  background: var(--page);
  font-weight: 400;
}

tbody tr:hover {
  background: #faf7ff;
}

.pill,
.status-badge {
  display: inline-flex;
  min-width: 112px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill--incoming {
  color: #c2550f;
  background: #fff6cf;
}

.pill--planned {
  color: #622fcf;
  background: #eee4fb;
}

.work-status {
  white-space: nowrap;
}

.work-status--working {
  color: #318624;
}

.work-status--review {
  color: #a27a09;
}

.work-status--hold {
  color: #c45464;
}

.work-status--done,
.work-status--idle {
  color: #a7a7a7;
}

.works-table tbody tr {
  height: 60px;
}

.reports-table tbody tr {
  height: 56px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.table-icon img {
  width: 20px;
  height: 20px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
}

.pagination a {
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  padding: 0 8px;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--accent-light);
  border-radius: 4px;
  text-decoration: none;
}

.pagination a.is-current {
  color: #fff;
  background: var(--accent);
}

/* Согласование и диалоги */

.approval-list {
  display: grid;
}

.approval-item {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
}

.approval-copy h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.approval-copy p {
  margin: 0 0 6px;
  color: var(--muted);
}

.approval-copy blockquote {
  margin: 10px 0 0;
  padding: 10px 14px;
  color: #323235;
  background: #eee4fb;
  border-left: 3px solid var(--accent);
}

.approval-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.status-badge {
  min-width: auto;
  color: #622fcf;
  background: #eee4fb;
}

.status-badge--accepted {
  color: #1e6500;
  background: #e4f7c9;
}

.status-badge--revision {
  color: #c2550f;
  background: #fff6cf;
}

dialog {
  padding: 0;
  color: #323235;
  background: #fdfdfd;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

dialog::backdrop {
  background: rgba(22, 20, 31, 0.72);
}

.revision-dialog {
  width: min(478px, calc(100vw - 32px));
}

.revision-dialog form {
  min-height: 556px;
  padding: 32px 24px;
}

.confirm-dialog {
  width: min(400px, calc(100vw - 32px));
}

.confirm-dialog form {
  min-height: 254px;
  padding: 32px 24px;
}

dialog h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
}

dialog p {
  margin: 0 0 24px;
  color: #666;
}

dialog label {
  display: grid;
  gap: 8px;
}

dialog textarea {
  width: 100%;
  min-height: 300px;
  padding: 16px;
  color: #323235;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  resize: vertical;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  color: #777;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.revision-dialog .dialog-actions {
  justify-content: center;
}

/* Результаты */

.results-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.results-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 36px;
}

.results-heading select {
  width: 111px;
  height: 52px;
  padding: 0 14px;
  color: #323235;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
}

.results-table {
  min-width: 980px;
}

.positive {
  color: #1e6500;
  background: #e4f7c9;
}

.negative {
  color: #b93131;
  background: #ffe8e7;
}

/* Стратегия */

.strategy-card {
  display: grid;
  grid-template-columns: 167px minmax(0, 1fr);
  gap: 16px;
  color: var(--text);
}

.strategy-logo {
  display: grid;
  width: 167px;
  height: 69px;
  place-items: center;
}

.strategy-logo img {
  width: 167px;
  height: auto;
}

.strategy-content h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 36px;
}

.strategy-content p,
.strategy-content li {
  font-size: 16px;
  line-height: 22px;
}

.strategy-content p {
  max-width: 850px;
  margin: 0 0 16px;
}

.strategy-columns {
  display: grid;
  max-width: 850px;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}

.strategy-columns ul,
.strategy-columns ol {
  margin: 0;
  padding-left: 32px;
}

.strategy-columns li {
  margin-bottom: 8px;
}

.strategy-columns li::marker {
  color: var(--accent);
  font-family: "Ubuntu", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.strategy-link {
  margin-top: 24px !important;
  font-family: "Ubuntu", sans-serif;
  font-size: 20px !important;
  font-weight: 500;
}

/* Данные */

.data-section {
  width: 750px;
  max-width: 100%;
}

.data-section > h2 {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 36px;
}

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

.data-card {
  overflow: hidden;
  text-align: center;
  text-decoration: none;
}

.data-preview {
  position: relative;
  display: grid;
  min-height: 160px;
  place-items: center;
  align-content: center;
  gap: 6px;
  overflow: hidden;
  color: #323235;
  background: #f6f2fb;
}

.data-preview::after {
  position: absolute;
  width: 160%;
  height: 6px;
  background: rgba(145, 92, 229, 0.22);
  content: "";
  transform: rotate(-45deg);
}

.data-preview img {
  z-index: 1;
  width: 80px;
  height: auto;
}

.data-preview small {
  z-index: 1;
}

.data-card > strong {
  display: block;
  padding: 15px 20px;
  color: var(--accent);
  font-family: "Ubuntu", sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.data-card--2 .data-preview {
  background: #eee4fb;
}

.data-card--3 .data-preview {
  background: #e8e4ff;
}

.data-card--4 .data-preview {
  color: #fff;
  background: var(--accent-dark);
}

/* Дорожная карта */

.roadmap-table {
  table-layout: fixed;
}

.roadmap-table th:first-child,
.roadmap-table td:first-child {
  width: 17%;
}

.roadmap-table th:nth-child(2),
.roadmap-table td:nth-child(2) {
  width: 25%;
}

.roadmap-table th:nth-child(n + 3),
.roadmap-table td:nth-child(n + 3) {
  width: 11.6%;
  text-align: center;
}

.roadmap-table td:nth-child(n + 3) {
  color: #3d1bba;
  background: #eee4fb;
}

.roadmap-table tbody tr:nth-child(2) {
  height: 104px;
}

.roadmap-table tbody tr:nth-child(3) {
  height: 180px;
}

.roadmap-table tbody tr {
  min-height: 60px;
}

/* Помощь */

.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 674px) minmax(0, 630px);
  justify-content: space-between;
  gap: 60px;
}

.help-grid h2 {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 36px;
}

.help-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.help-form input,
.help-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  color: #323235;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
}

.help-form textarea {
  min-height: 214px;
  resize: vertical;
}

.help-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.file-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  cursor: pointer;
}

.file-control img {
  width: 24px;
  height: 24px;
}

.file-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.faq-list details {
  border-bottom: 1px solid var(--accent);
}

.faq-list summary {
  position: relative;
  padding: 16px 36px 16px 0;
  color: var(--accent);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  position: absolute;
  top: 14px;
  right: 4px;
  font-size: 22px;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 36px 16px 0;
  color: var(--muted);
}

/* Уведомления */

.notifications-title {
  max-width: 714px;
}

.notification-list {
  display: grid;
  width: 714px;
  max-width: 100%;
  gap: 16px;
}

.notification-card {
  position: relative;
  display: grid;
  min-height: 131px;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px;
  color: #323235;
  background: #fdfdfd;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.notification-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--accent-pale);
  border-radius: 6px;
}

.notification-icon img {
  width: 24px;
  height: 24px;
}

.notification-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.notification-card p {
  margin: 0 0 8px;
  color: #666;
}

.notification-card time {
  color: #a7a7a7;
  font-size: 12px;
}

.notification-unread {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.project-list h2,
.project-list p {
  margin: 0 0 5px;
}

/* Авторизация */

.login-page {
  position: relative;
  display: grid;
  min-height: 850px;
  place-items: start center;
  padding: 156px 24px 40px;
  overflow: hidden;
  color: #323235;
  background: #fbfbfb;
}

.login-page::before,
.login-page::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
}

.login-page::before {
  left: -194px;
  bottom: -157px;
  width: 522px;
  height: 522px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    #d4d4d4 url("/static/brand/login-pattern.png") center / 510px auto;
}

.login-page::after {
  top: -181px;
  right: -177px;
  width: 504px;
  height: 504px;
  background: #d4d4d4;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 400px;
  min-height: 300px;
  padding: 24px;
  color: #323235;
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.login-card::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: url("/static/brand/login-pattern.png") center 418px / 1492px auto repeat-y;
  opacity: 0.045;
  content: "";
  pointer-events: none;
}

.login-logo {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 6px;
}

.login-card h1 {
  margin: 0 0 24px;
  color: #323235;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
}

.stack-form {
  display: grid;
  gap: 8px;
}

.stack-form label {
  display: grid;
  gap: 4px;
}

.stack-form label > span {
  color: #a7a7a7;
  font-size: 12px;
}

.stack-form input {
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  color: #323235;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
}

.stack-form .button {
  width: 100%;
  height: 52px;
  margin-top: 16px;
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 146px minmax(0, 1fr);
  }

  .sidebar {
    align-items: center;
    padding: 32px 45px 24px;
  }

  .brand {
    width: 56px;
    height: 55px;
    margin-bottom: 25px;
  }

  .brand-logo,
  .nav-label {
    display: none;
  }

  .brand-symbol {
    display: block;
  }

  .main-nav,
  .sidebar-footer {
    width: 56px;
  }

  .nav-item {
    width: 56px;
    height: 48px;
    justify-content: center;
    padding: 12px 16px;
  }

  .theme-toggle {
    align-self: center;
  }

  .topbar {
    padding-inline: 32px;
  }

  .search {
    width: min(480px, 55%);
  }

  .content {
    padding: 32px 24px 48px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .dashboard-card,
  .manager-card {
    min-height: 200px;
  }

  .project-card {
    height: 260px;
  }

  .manager-card {
    height: 200px;
  }

  .manager-card h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .manager-card p {
    margin-top: 8px;
    font-size: 12px;
    line-height: 18px;
  }

  .help-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 48px;
  }

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

@media (max-width: 800px) {
  .profile-copy {
    display: none;
  }

  .search {
    width: min(360px, 58%);
  }

  .content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .project-card {
    height: 278px;
  }

  .dashboard-card:last-of-type,
  .manager-card {
    grid-column: 1 / -1;
  }

  .manager-card {
    height: 156px;
    min-height: 156px;
  }

  .page-title-row {
    flex-wrap: wrap;
  }

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

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

@media (max-width: 600px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    height: 95px;
    padding: 20px;
  }

  .mobile-brand {
    display: grid;
    width: 56px;
    height: 55px;
    flex: 0 0 56px;
    place-items: center;
  }

  .mobile-brand img {
    width: 40px;
    height: auto;
  }

  .search {
    width: min(188px, calc(100vw - 238px));
    height: 48px;
  }

  .profile {
    gap: 8px;
  }

  .profile-notice,
  .avatar {
    width: 40px;
    height: 40px;
  }

  .profile-notice img {
    width: 22px;
    height: 22px;
  }

  .content {
    min-height: calc(100vh - 95px);
    padding: 32px 20px 48px;
  }

  .content > h1,
  .page-title-row > h1 {
    margin-bottom: 24px;
    font-size: 28px;
    line-height: 36px;
  }

  .page-title-row {
    margin-bottom: 24px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 16px;
  }

  .project-card {
    grid-column: 1 / -1;
    height: 275px;
    min-height: 275px;
    padding: 24px;
  }

  .project-card > p {
    margin-block: 14px;
  }

  .dashboard-card {
    min-height: 200px;
    padding: 20px;
  }

  .dashboard-card-copy strong {
    font-size: 20px;
    line-height: 28px;
  }

  .manager-card {
    grid-column: 1 / -1;
    height: 189px;
    min-height: 189px;
  }

  .plan-cta {
    width: 100%;
  }

  .timeline {
    grid-template-columns: repeat(30, 54px);
    margin-inline: 0;
  }

  .legend-grid {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .legend-item {
    display: grid;
    gap: 7px;
    font-size: 12px;
  }

  .legend-item i {
    width: 100%;
    height: 42px;
  }

  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 42px;
  }

  .table-search {
    width: 100%;
  }

  .toolbar-actions .button {
    grid-column: 1 / -1;
  }

  .responsive-table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody {
    display: grid;
    gap: 16px;
  }

  .responsive-table tr {
    display: grid;
    min-height: 0 !important;
    padding: 18px 20px;
    color: #323235;
    background: #fdfdfd;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .responsive-table td {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }

  .responsive-table td::before {
    color: #a7a7a7;
    content: attr(data-label);
    text-align: left;
  }

  .works-table tr {
    min-height: 270px !important;
  }

  .reports-table tr {
    min-height: 299px !important;
  }

  .results-table tr,
  .roadmap-table tr {
    min-height: 260px !important;
  }

  .results-table {
    display: table;
    min-width: 980px;
    background: #fdfdfd;
  }

  .results-table thead {
    display: table-header-group;
  }

  .results-table tbody {
    display: table-row-group;
  }

  .results-table tr {
    display: table-row;
    min-height: 0 !important;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .results-table td {
    display: table-cell;
    min-height: 0;
    padding: 15px 12px;
    border-bottom: 1px solid #d4d4d4;
    text-align: left;
  }

  .results-table td::before {
    content: none;
  }

  .pagination {
    justify-content: center;
  }

  .approval-item {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 0;
  }

  .approval-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .approval-actions .status-badge {
    grid-column: 1 / -1;
  }

  .approval-actions form,
  .approval-actions .button {
    width: 100%;
  }

  .results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .results-heading select {
    width: 100%;
  }

  .strategy-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .strategy-logo {
    width: 167px;
  }

  .strategy-content p,
  .strategy-content li {
    font-size: 14px;
    line-height: 20px;
  }

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

  .data-preview {
    min-height: 160px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .help-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .help-form-footer .button {
    width: 100%;
  }

  .notifications-title .button {
    width: 100%;
  }

  .notification-card {
    min-height: 170px;
  }

  .login-page {
    padding: 156px 20px 40px;
  }
}

@media (max-width: 400px) {
  .topbar {
    gap: 8px;
    padding: 20px 15px;
  }

  .mobile-brand {
    width: 56px;
  }

  .search {
    width: 48px;
    padding: 0;
    justify-content: center;
    border-color: transparent;
  }

  .search input {
    display: none;
  }

  .content {
    padding-right: 15px;
    padding-left: 15px;
  }

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

  .dashboard-card,
  .manager-card {
    min-height: 200px;
  }

  .project-card,
  .manager-card {
    grid-column: auto;
  }

  .project-card {
    height: 303px;
    min-height: 303px;
  }

  .manager-card {
    height: 245px;
  }

  .project-card time {
    font-size: 11px;
  }

  .project-manager {
    align-items: flex-start;
    font-size: 12px;
  }

  .login-card {
    width: 297px;
  }
}

@media (min-width: 801px) and (max-width: 1280px) {
  .page-approval,
  .page-results,
  .page-strategy,
  .page-data {
    min-height: 1045px;
  }

  .page-help,
  .page-notifications {
    min-height: 1164px;
  }

  .page-roadmap {
    min-height: 2042px;
  }
}

@media (min-width: 601px) and (max-width: 800px) {
  .page-approval,
  .page-results,
  .page-strategy,
  .page-data {
    min-height: 1042px;
  }

  .page-help,
  .page-notifications {
    min-height: 1177px;
  }

  .page-roadmap {
    min-height: 1530px;
  }
}

@media (min-width: 401px) and (max-width: 600px) {
  .page-dashboard {
    min-height: 1779px;
  }

  .page-plan,
  .page-works,
  .page-reports {
    min-height: 919px;
  }

  .page-approval,
  .page-results,
  .page-strategy,
  .page-data {
    min-height: 1045px;
  }

  .page-help,
  .page-notifications {
    min-height: 1245px;
  }

  .page-roadmap {
    min-height: 1557px;
  }
}

@media (max-width: 400px) {
  .page-dashboard {
    min-height: 2624px;
  }

  .page-plan,
  .page-works,
  .page-reports,
  .page-approval,
  .page-results {
    min-height: 919px;
  }

  .page-strategy,
  .page-data {
    min-height: 1126px;
  }

  .page-help {
    min-height: 1506px;
  }

  .page-notifications {
    min-height: 1245px;
  }

  .page-roadmap {
    min-height: 1506px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
