:root {
  --bg: #f2f5fb;
  --panel: #ffffff;
  --panel-soft: #f8f9fd;
  --text: #202435;
  --muted: #687084;
  --accent: #4249b8;
  --accent-dark: #252b72;
  --accent-soft: #eef0ff;
  --warning: #fff5d9;
  --warning-border: #f1c76b;
  --border: #dfe5f1;
  --shadow: 0 24px 70px rgba(28, 36, 69, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(66, 73, 184, 0.14), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(32, 167, 181, 0.1), transparent 28rem),
    linear-gradient(135deg, #f6f8fc 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

body.menu-open {
  overflow: hidden;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(16px);
  overflow-y: auto;
}

.sidebar-close,
.sidebar-backdrop {
  display: none;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.nav-link small,
.topbar-title span,
.meta-row,
.file-card small {
  color: var(--muted);
}

.module-nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 15px;
  color: var(--muted);
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-icon,
.pill-icon,
.title-icon,
.card-icon-svg,
.file-type-icon {
  flex: 0 0 auto;
}

.nav-icon {
  width: 16px;
  height: 16px;
}

.nav-number {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
}

.sidebar-card,
.card,
.hero-card,
.progress-card,
.module-card,
.step-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(132, 146, 179, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar-card {
  margin-top: 22px;
  padding: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.94rem;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe4ef;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #20a7b5);
  transition: width 0.2s ease;
}

.ghost-button,
.icon-button,
.copy-button,
.primary-button,
.secondary-button,
.service-link {
  border: 0;
  cursor: pointer;
  border-radius: 13px;
  font-weight: 700;
}

.ghost-button {
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--panel-soft);
  color: var(--muted);
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(223, 228, 239, 0.8);
  background: rgba(246, 248, 252, 0.78);
  backdrop-filter: blur(16px);
}

.topbar-title strong,
.topbar-title span {
  display: block;
}

.topbar-actions,
.hero-actions,
.meta-row,
.service-grid,
.card-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.service-link,
.secondary-button {
  padding: 10px 14px;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--border);
}

.icon-button {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: #fff;
  color: var(--accent);
}

.menu-icon {
  width: 20px;
  height: 20px;
}

.content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero,
.module-header {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero {
  padding: 36px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(73, 80, 188, 0.96), rgba(34, 164, 177, 0.82)),
    #4950bc;
  color: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 1.35rem;
}

p,
li,
td,
th {
  line-height: 1.58;
}

.hero p,
.module-header p {
  max-width: 760px;
  font-size: 1.08rem;
}

.hero-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}


.hero-visual,
.module-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}

.hero-visual {
  display: grid;
  min-height: 168px;
  margin-bottom: 18px;
  place-items: center;
}

.module-side {
  display: grid;
  gap: 14px;
}

.module-visual {
  display: grid;
  min-height: 158px;
  place-items: center;
  border-color: rgba(132, 146, 179, 0.18);
  background:
    radial-gradient(circle at 20% 20%, rgba(66, 73, 184, 0.13), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(32, 167, 181, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.82));
}

.decorative-svg {
  width: min(100%, 230px);
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(28, 36, 69, 0.12));
}

.hero-visual .decorative-svg {
  width: min(100%, 260px);
}

.svg-panel,
.svg-soft {
  fill: rgba(255, 255, 255, 0.78);
  stroke: rgba(66, 73, 184, 0.2);
  stroke-width: 2;
}

.module-visual .svg-panel,
.module-visual .svg-soft {
  fill: rgba(255, 255, 255, 0.9);
}

.svg-accent {
  fill: rgba(66, 73, 184, 0.22);
  stroke: rgba(66, 73, 184, 0.28);
  stroke-width: 2;
}

.svg-dot {
  fill: rgba(32, 167, 181, 0.55);
}

.svg-line,
.svg-main-line,
.svg-line-light {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-line {
  stroke: rgba(37, 43, 114, 0.38);
  stroke-width: 4;
}

.svg-main-line {
  stroke: rgba(66, 73, 184, 0.72);
  stroke-width: 7;
}

.svg-line-light {
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 5;
}

.primary-button {
  display: inline-block;
  padding: 12px 18px;
  background: #fff;
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

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

.card {
  padding: 24px;
  margin-bottom: 18px;
}

.warning-card {
  background: var(--warning);
  border-color: var(--warning-border);
}

.service-card,
.file-card {
  display: grid;
  gap: 4px;
  min-width: min(100%, 220px);
  padding: 15px;
  border: 1px solid rgba(132, 146, 179, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 249, 253, 0.92)),
    var(--panel-soft);
}

.service-card-head,
.file-card span,
.file-chip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card-icon-svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.file-type-icon {
  width: 14px;
  height: 14px;
}

.service-card:hover,
.file-card:hover,
.module-card:hover {
  transform: translateY(-2px);
}

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

.module-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  transition: transform 0.18s ease;
}

.module-number,
.mode-badge,
.file-card span {
  width: max-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.module-number {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pill-icon {
  width: 15px;
  height: 15px;
}

.module-header {
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.94)),
    var(--panel);
  box-shadow: var(--shadow);
}

.module-title-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.module-title-row h1 {
  margin-bottom: 0;
}

.module-title-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(66, 73, 184, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(66, 73, 184, 0.12), rgba(32, 167, 181, 0.1)),
    #fff;
  color: var(--accent-dark);
}

.title-icon {
  width: 26px;
  height: 26px;
}

.progress-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  box-shadow: none;
}

.progress-card strong {
  font-size: 3.1rem;
  color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.86rem;
}

.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.steps {
  margin-bottom: 18px;
}

.step-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  margin-bottom: 16px;
}

.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.done-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.step-content {
  min-width: 0;
  padding-right: 112px;
}

.prompt-shell {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #f4f6fb;
  border: 1px solid var(--border);
}

.card-title-row {
  justify-content: space-between;
  margin-bottom: 12px;
}

.copy-button {
  padding: 9px 12px;
  background: var(--accent);
  color: #fff;
}

.prompt-block {
  max-height: 440px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-radius: 14px;
  background: #141827;
  color: #f1f5ff;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.checklist {
  display: grid;
  gap: 10px;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 13px;
  background: var(--panel-soft);
}

.page-title {
  margin-bottom: 20px;
}

.page-title h1 {
  color: var(--accent-dark);
}

.glossary {
  display: grid;
  gap: 18px;
}

.glossary div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 14px;
  background: #151b2f;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(330px, 88vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 28px 0 80px rgba(28, 36, 69, 0.2);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(132, 146, 179, 0.28);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--accent-dark);
    cursor: pointer;
  }

  .sidebar-close svg {
    width: 20px;
    height: 20px;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 14;
    display: block;
    background: rgba(20, 26, 46, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .brand {
    padding-right: 44px;
  }

  .icon-button {
    display: inline-flex;
  }

  .hero,
  .module-header,
  .grid.two,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-side {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    padding: 14px;
  }

  .topbar-actions {
    display: none;
  }

  .content {
    width: min(100% - 24px, 1180px);
    padding-top: 16px;
  }

  .hero,
  .module-header,
  .card,
  .step-card {
    padding: 18px;
    border-radius: 20px;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .step-content {
    padding-right: 0;
  }

  .done-toggle {
    position: static;
    order: 3;
  }

  .module-side {
    grid-template-columns: 1fr;
  }

  .module-visual {
    min-height: 132px;
  }

  .decorative-svg {
    width: min(100%, 190px);
  }

  h1 {
    font-size: 2.2rem;
  }
}

.service-card,
.file-card {
  position: relative;
  border-bottom: 3px solid rgba(73, 80, 188, 0.32);
}

.service-card em,
.file-card em {
  width: max-content;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 700;
}

.service-card:hover em,
.file-card:hover em {
  color: var(--accent-dark);
}

.meaning-lines {
  line-height: 1.75;
}

.inline-files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.file-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-bottom: 3px solid rgba(73, 80, 188, 0.32);
  border-radius: 13px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
}

.file-chip span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
}

.file-chip.external {
  background: var(--accent-soft);
}



.file-card,
.file-chip {
  --file-accent: var(--accent);
  --file-soft: var(--accent-soft);
  --file-line: rgba(73, 80, 188, 0.32);
}

.file-type-docx {
  --file-accent: #3f63c7;
  --file-soft: #edf2ff;
  --file-line: rgba(63, 99, 199, 0.38);
}

.file-type-png,
.file-type-jpg,
.file-type-jpeg,
.file-type-webp {
  --file-accent: #7c3fb8;
  --file-soft: #f4edff;
  --file-line: rgba(124, 63, 184, 0.36);
}

.file-type-pdf {
  --file-accent: #c84646;
  --file-soft: #fff0f0;
  --file-line: rgba(200, 70, 70, 0.36);
}

.file-type-xlsx,
.file-type-xls,
.file-type-excel {
  --file-accent: #21865a;
  --file-soft: #edf9f3;
  --file-line: rgba(33, 134, 90, 0.36);
}

.file-type-html {
  --file-accent: #11869a;
  --file-soft: #eaf8fb;
  --file-line: rgba(17, 134, 154, 0.36);
}

.file-card span,
.file-chip span {
  background: var(--file-soft);
  color: var(--file-accent);
}

.file-card,
.file-chip {
  border-bottom-color: var(--file-line);
}

.file-card:hover em,
.file-chip:hover {
  color: var(--file-accent);
}

.inline-service-link {
  color: var(--accent);
  border-bottom: 2px solid currentColor;
  font-weight: 800;
}

.inline-service-link:hover {
  color: var(--accent-dark);
}

.contact-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(66, 73, 184, 0.12), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.92));
}

.contact-copy {
  display: grid;
  gap: 8px;
}

.contact-copy h2 {
  margin-bottom: 0;
  color: var(--accent-dark);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.contact-copy strong {
  font-size: 1.12rem;
}

.contact-copy small,
.contact-qr-card span {
  color: var(--muted);
  line-height: 1.45;
}

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

.contact-qr-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 122px;
  padding: 14px;
  border: 1px solid rgba(132, 146, 179, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.contact-qr-card img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.contact-qr-card div {
  display: grid;
  gap: 4px;
}

.safety-download {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(66, 73, 184, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.safety-download div {
  display: grid;
  gap: 4px;
}

.safety-download strong {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--accent-dark);
}

.safety-download span {
  color: var(--muted);
}

@media (max-width: 900px) {
  .contact-dashboard,
  .contact-qr-grid {
    grid-template-columns: 1fr;
  }
}

.feedback-step {
  border: 2px solid rgba(66, 73, 184, 0.72);
  background:
    radial-gradient(circle at 90% 18%, rgba(66, 73, 184, 0.18), transparent 18rem),
    linear-gradient(135deg, #eef4ff 0%, #ffffff 58%, #f0fff8 100%);
  box-shadow: 0 28px 80px rgba(35, 45, 120, 0.18);
}

.feedback-step::before {
  content: "Важно заполнить перед завершением";
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #20a7b5);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(66, 73, 184, 0.26);
}

.feedback-step .step-number {
  background: linear-gradient(145deg, var(--accent), #20a7b5);
  box-shadow: 0 12px 28px rgba(66, 73, 184, 0.3);
}

.feedback-step .mode-badge {
  background: #dff7ee;
  color: #167451;
}

.feedback-step h3 {
  font-size: 1.45rem;
  color: var(--accent-dark);
}

.file-chip.feedback-link {
  min-width: min(100%, 320px);
  justify-content: center;
  padding: 14px 18px;
  border: 0;
  border-bottom: 4px solid rgba(37, 43, 114, 0.22);
  background: linear-gradient(90deg, var(--accent), #20a7b5);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 16px 34px rgba(66, 73, 184, 0.24);
}

.file-chip.feedback-link:hover {
  color: #fff;
  transform: translateY(-2px);
}
.file-chip.feedback-link,
.file-chip.feedback-link:visited,
.file-chip.feedback-link:focus {
  color: #ffffff;
}

.contact-title-link {
  width: max-content;
  color: var(--accent-dark);
  border-bottom: 2px solid currentColor;
  font-weight: 900;
  text-decoration: none;
}

.contact-title-link:hover,
.contact-title-link:focus {
  color: var(--accent);
}
