:root {
  --vc-turquoise: #18aca7;
  --vc-azure: #307abf;
  --vc-lime: #afcb37;
  --vc-text: #1a2a35;
  --vc-muted: #425362;
  --vc-white: #ffffff;
  --vc-border: #c7d8e6;
  --vc-danger-bg: #fdeaea;
  --vc-danger-text: #8d2222;
  --vc-good-bg: #e8f7ef;
  --vc-good-text: #1f6a36;
  --vc-warn-bg: #fff7e2;
  --vc-warn-text: #6b4c13;
  --radius: 18px;
  --shadow: 0 12px 28px rgba(27, 53, 87, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  color: var(--vc-text);
  background: linear-gradient(180deg, #f5f9fd 0%, #edf4fa 100%);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: "Bree Serif", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #123151;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #ffffff;
  color: #123151;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--vc-border);
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--vc-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.brand {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: clamp(150px, 18vw, 240px);
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  max-width: 370px;
}

.brand-text span {
  display: block;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--vc-muted);
}

.progress-wrap {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reset-progress-btn {
  white-space: nowrap;
  padding: 9px 12px;
}

.progress {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: #e2ecf5;
  border: 1px solid #d2dfeb;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--vc-turquoise), var(--vc-azure));
  transition: width 0.2s ease;
}

.progress-label {
  min-width: 62px;
  text-align: right;
  font-size: 0.87rem;
  color: var(--vc-muted);
}

.layout {
  max-width: 1180px;
  margin: 24px auto 64px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.dashboard-layout {
  max-width: 1180px;
  margin: 24px auto 64px;
  padding: 0 20px;
}

.dashboard-hero {
  border-radius: 24px;
  background: linear-gradient(130deg, #1f5d96 0%, var(--vc-azure) 45%, var(--vc-turquoise) 100%);
  color: #fff;
  padding: 32px;
  box-shadow: var(--shadow);
}

.dashboard-hero h1 {
  margin: 8px 0 10px;
  color: #fff;
}

.dashboard-hero p {
  margin: 0;
  max-width: 720px;
  opacity: 0.95;
}

.dashboard-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.dashboard-filters {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 12px;
  align-items: end;
}

.dashboard-filter-group {
  display: grid;
  gap: 6px;
}

.dashboard-filter-label {
  font-weight: 700;
  color: #214d76;
}

.dashboard-filter-input,
.dashboard-filter-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #b6cbdd;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--vc-text);
}

.dashboard-card {
  border: 1px solid var(--vc-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 36%);
  gap: 18px;
  align-items: stretch;
}

.dashboard-card-content {
  min-width: 0;
}

.dashboard-card h2 {
  margin: 8px 0 10px;
}

.dashboard-card p {
  margin-top: 0;
  color: var(--vc-muted);
}

.dashboard-card-status {
  margin: 0 0 8px;
  font-weight: 700;
  color: #1f6a36;
}

.dashboard-card-status.coming-soon {
  color: #7a5a16;
}

.dashboard-card-actions {
  margin-top: 14px;
}

.dashboard-card-visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  background: #fff;
}

.dashboard-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 100%);
}

.dashboard-card-visual::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0.1) 100%);
}

.dashboard-empty-state {
  margin-top: 14px;
  color: var(--vc-muted);
  font-weight: 700;
}

.sidebar {
  position: sticky;
  top: 86px;
  background: var(--vc-white);
  border: 1px solid var(--vc-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.sidebar h2 {
  margin: 4px 8px 10px;
  font-size: 0.98rem;
}

.nav-btn {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  border-radius: 12px;
  padding: 10px 11px;
  cursor: pointer;
  color: var(--vc-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  transition: 0.2s ease;
}

.nav-btn:hover {
  border-color: #b7d2e8;
  background: #f2f8fd;
}

.nav-btn.active {
  background: var(--vc-azure);
  color: #fff;
  border-color: var(--vc-azure);
}

.nav-btn.done::after {
  content: "✓";
  margin-left: auto;
  font-weight: 800;
}

.content {
  min-width: 0;
}

.hero {
  border-radius: 24px;
  background: linear-gradient(130deg, #1f5d96 0%, var(--vc-azure) 45%, var(--vc-turquoise) 100%);
  color: #fff;
  padding: 36px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.12);
  position: absolute;
  right: -90px;
  bottom: -110px;
}

.hero-brand-device {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.9;
}

.eyebrow.section {
  color: var(--vc-azure);
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4.7vw, 3.7rem);
  color: #fff;
}

.hero p {
  margin: 0;
  max-width: 760px;
  font-size: 1.1rem;
  opacity: 0.95;
}

.hero-image-wrap {
  display: block;
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-image-wrap {
  display: block;
  margin: 14px 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--vc-border);
  background: #fff;
}

.section-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  padding: 7px 11px;
  font-size: 0.88rem;
}

.module {
  display: block;
  position: relative;
  background: var(--vc-white);
  border: 1px solid var(--vc-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.module[hidden] {
  display: none !important;
}

.module.active {
  display: block;
}

.module.locked {
  opacity: 0.52;
  pointer-events: none;
}

.module.locked::after {
  content: "Complete the previous section to unlock";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #123151;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lead {
  color: var(--vc-muted);
  font-size: 1.06rem;
  max-width: 790px;
}

.grid {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--vc-border);
  border-radius: 14px;
  background: #fbfdff;
  padding: 18px;
}

.card h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.plain-block {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px 2px;
}

.plain-block h3 {
  margin-bottom: 8px;
}

.plain-block p,
.plain-block ul,
.plain-block ol {
  color: var(--vc-text);
}

.callout {
  margin: 18px 0;
  padding: 14px 15px;
  border-radius: 12px;
  border-left: 5px solid var(--vc-azure);
  background: #ecf5ff;
}

.callout.warn {
  background: var(--vc-warn-bg);
  border-left-color: #d7a629;
  color: var(--vc-warn-text);
}

.callout.danger {
  background: var(--vc-danger-bg);
  border-left-color: #c64a4a;
  color: var(--vc-danger-text);
}

.info-list {
  margin: 0;
  padding-left: 18px;
}

.scenario {
  margin: 24px 0;
  border: 1px solid var(--vc-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f5faff);
  padding: 16px;
}

.scenario h3 {
  margin: 8px 0 10px;
  font-size: 1.08rem;
}

.check-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  background: #dff5f4;
  color: #0a5d6a;
}

.options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.option {
  width: 100%;
  text-align: left;
  border-radius: 11px;
  border: 1px solid #bfd5e7;
  background: #fff;
  padding: 11px 12px;
  cursor: pointer;
  transition: 0.12s ease;
}

.option:hover {
  border-color: var(--vc-azure);
}

.option.correct {
  background: var(--vc-good-bg);
  border-color: #7ac798;
}

.option.incorrect {
  background: var(--vc-danger-bg);
  border-color: #d69595;
}

.feedback {
  margin-top: 10px;
  min-height: 22px;
  font-weight: 700;
}

.feedback.good {
  color: var(--vc-good-text);
}

.feedback.bad {
  color: var(--vc-danger-text);
}

.commitment-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
}

.commitment-check input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.commitment-actions {
  margin-top: 12px;
}

.matching-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.match-row {
  border: 1px solid var(--vc-border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.match-row label {
  font-weight: 600;
}

select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #b6cbdd;
  padding: 8px 10px;
  background: #fff;
}

details {
  margin-top: 10px;
  border: 1px solid var(--vc-border);
  border-radius: 12px;
  padding: 0 12px;
  background: #fbfdff;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: #214d76;
  padding: 12px 0;
}

details p {
  margin: 0 0 12px;
  color: var(--vc-muted);
}

.module-actions {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 11px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: var(--vc-azure);
  color: #fff;
}

.btn-primary:hover {
  background: #255f96;
}

.btn-secondary {
  background: #e7f0f9;
  color: #17446f;
}

.btn-secondary:hover {
  background: #d8e8f6;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.lock-note {
  font-size: 0.9rem;
  margin-top: 8px;
  color: var(--vc-muted);
}

.final-card {
  border-radius: 16px;
  border: 1px solid var(--vc-border);
  background: linear-gradient(140deg, #e7f3ff, #eef8ff);
  padding: 20px;
  text-align: center;
  margin-top: 16px;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.contact {
  border: 1px solid var(--vc-border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.contact h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.footer {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: 0 20px;
  text-align: center;
  color: var(--vc-muted);
  font-size: 0.87rem;
}

:focus-visible {
  outline: 3px solid var(--vc-lime);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    grid-template-columns: 1fr;
  }

  .dashboard-card-visual {
    min-height: 180px;
  }

  .dashboard-filters {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  .sidebar h2 {
    display: none;
  }

  .nav-btn {
    min-width: 200px;
    border-color: var(--vc-border);
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    max-width: 300px;
  }

  .contacts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    align-items: flex-start;
    gap: 10px;
  }

  .brand-logo {
    width: clamp(130px, 46vw, 200px);
  }

  .brand-text {
    display: none;
  }

  .hero-brand-device {
    width: 56px;
    height: 56px;
    top: 12px;
    right: 12px;
  }

  .progress-wrap {
    display: none;
  }

  .reset-progress-btn {
    margin-left: auto;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .hero,
  .module,
  .dashboard-hero {
    padding: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .match-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
