:root {
  --metro-dark: #0D4345;
  --metro-dark-hover: #145053;
  --metro-teal: #299590;
  --metro-green: #4BD896;
  --metro-soft: #D2DFE0;
  --metro-soft-hover: #c5d3d5;
  --metro-softest: #EAEFF0;
  --seat-open: #D4FDE7;
  --seat-some: #EFE9C5;
  --seat-few: #FDD4D5;
  --text: #111;
  --radius: 12px;
  --font: "Google Sans", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  --drilldown-duration: 280ms;
  --drilldown-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
}

.prototype-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.prototype-title {
  text-align: center;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 150%;
  letter-spacing: -0.01em;
  margin: 0 0 44px;
}

.content-area {
  position: relative;
  overflow: hidden;
}

.view-panel {
  width: 100%;
}

.view-panel.incoming,
.view-panel.outgoing {
  position: absolute;
  left: 0;
  top: 0;
  transition:
    transform var(--drilldown-duration) var(--drilldown-easing),
    opacity var(--drilldown-duration) var(--drilldown-easing);
}

.view-panel.incoming.from-right { transform: translateX(100%); opacity: 0.98; z-index: 1; }
.view-panel.incoming.from-left { transform: translateX(-100%); opacity: 0.98; z-index: 1; }
.view-panel.outgoing.to-left { transform: translateX(0); opacity: 1; z-index: 2; }
.view-panel.outgoing.to-right { transform: translateX(0); opacity: 1; z-index: 2; }

.view-panel.incoming.active { transform: translateX(0); opacity: 1; }
.view-panel.outgoing.to-left.active { transform: translateX(-100%); opacity: 0.98; }
.view-panel.outgoing.to-right.active { transform: translateX(100%); opacity: 0.98; }

.course-list { display: flex; flex-direction: column; gap: 14px; }

.step-class-select {
  padding-top: 0;
}

.class-select-card,
.class-switcher {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 900px;
}

.class-select-card {
  width: 100%;
  margin: 0 4px 32px;
}

.class-select-card h2,
.class-switcher h2 {
  margin: 0;
  font-family: "Inter", "Google Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.35;
  color: #000;
}

.class-switcher {
  width: 100%;
  margin: 0 4px 32px;
}

.course-list-heading {
  margin: 0 0 28px 4px;
  font-family: "Inter", "Google Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #000;
}

.class-chip-row {
  width: 100%;
  gap: 2px;
}

.class-chip {
  border: 0;
  border-radius: 4px;
  background: #EAEFF0;
  color: var(--metro-dark);
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 32px;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.class-chip:hover {
  background: #dbe5e7;
}

.class-chip-selected {
  background: var(--metro-dark);
  color: #fff;
  border-radius: 12px;
}

.class-chip-selected:hover {
  background: var(--metro-dark-hover);
}

.course-row {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.course-row-package { background: var(--metro-dark); color: #fff; }
.course-row-package:hover { background: var(--metro-dark-hover); }
.course-row-single { background: var(--metro-soft); color: #000; }
.course-row-single:hover { background: var(--metro-soft-hover); }
.course-meta { display: flex; gap: 16px; align-items: center; }
.course-name {
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0;
}

.course-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.row-arrow {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease;
}

.course-row-package .row-arrow { color: #fff; }
.course-row-single .row-arrow { color: #000; }
.course-row-package:hover .row-arrow { color: #4BD896; }
.course-row-single:hover .row-arrow { color: #07A47A; }

.arrow-icon {
  display: block;
}

.available-badge {
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  padding: 8px 14px;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.01em;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.badge-dark { color: #fff; }
.badge-light { color: var(--metro-dark); }

.step-detail .info-box-package .available-badge { color: #D2DFE0; }
.step-detail .info-box-single .available-badge { color: #0D4345BF; }

.info-box { border-radius: 10px; overflow: hidden; }
.info-box-single { background: var(--metro-soft); color: #111; }
.info-box-package { background: var(--metro-dark); color: #fff; }

.info-box-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.info-box-head-compact {
  padding-bottom: 10px;
}

.info-box-head h2 {
  margin: 0;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0;
  flex: 1;
  min-width: 0;
}

.info-divider { border-top: 1px solid rgba(255, 255, 255, 0.5); }
.info-box-single .info-divider { border-color: #fff; }

.info-box p {
  margin: 0;
  padding: 22px 16px 28px 16px;
  max-width: 900px;
  font-family: "Google Sans";
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;
}

.responsible-section { margin: 48px 4px 30px; }
.responsible-section h3 {
  margin: 0 0 12px;
  font-family: "Inter", "Google Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: -0.01em;
  vertical-align: middle;
  color: #000;
}

.responsible-description {
  margin: 0 0 12px;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  color: #000;
}

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  border: 0;
  width: auto;
  height: 32px;
  min-width: 48px;
  border-radius: 4px;
  background: #EAEFF0;
  color: var(--metro-dark);
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
}

.chip input {
  width: 16px;
  height: 16px;
  margin: 0;
  pointer-events: none;
  appearance: none;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  display: inline-grid;
  place-content: center;
}

.chip input:checked {
  background: #fff;
  border-color: #fff;
}

.chip input:checked::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #0D4345;
  border-bottom: 2px solid #0D4345;
  transform: rotate(-45deg);
  margin-top: -1px;
}

.chip-selected { background: #0D4345; color: #fff; }

.table-header,
.date-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr) minmax(0, 0.72fr) minmax(110px, 0.72fr) auto;
  gap: 14px;
  align-items: center;
}

.table-header {
  margin: 34px 8px 16px;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  text-align: left;
}

.date-list { display: flex; flex-direction: column; gap: 14px; }
.date-card {
  background: #fff;
  border: 1px solid #d5dee0;
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: visible;
}

.date-col { color: var(--metro-dark); display: grid; justify-items: start; gap: 2px; min-width: 0; }

.date-summary {
  display: grid;
  justify-items: start;
  gap: 8px;
}
.date-day {
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0;
  text-align: left;
  text-transform: capitalize;
  margin-bottom: 6px;
  color: #0D4345;
}
.date-big {
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 16px;
  letter-spacing: 0;
  text-align: left;
  color: #000;
}
.date-time { font-size: 14px; font-weight: 400; line-height: 16px; text-align: left; margin-top: 6px; color: #0D4345; }

.date-kursstart-title {
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0;
  text-align: left;
}

.date-kursstart-date {
  margin-top: 8px;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  text-align: left;
}
.schedule-link {
  border: 0;
  background: transparent;
  color: var(--metro-teal);
  display: inline-block;
  margin-top: 5px;
  padding: 0;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.schedule-strip {
  border: 2px solid var(--metro-teal);
  border-radius: 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  padding: 10px 14px;
}

.schedule-day-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  min-width: 0;
}

.schedule-day-wrap:last-child {
  grid-template-columns: minmax(0, 1fr);
}

.schedule-day-item {
  padding: 12px 16px;
  width: 100%;
  max-width: 220px;
  min-width: 0;
  text-align: center;
}

.schedule-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.schedule-arrow-icon {
  display: block;
}

.schedule-inline {
  grid-column: 1 / -1;
  margin-top: 2px;
  width: 100%;
  max-width: 100%;
}

.responsible-col,
.seats-col,
.price-col,
.cta-col {
  justify-self: start;
  text-align: left;
}

.price-col {
  min-width: 0;
}

.cta-col {
  justify-self: end;
  text-align: right;
}

.table-header .cta-header {
  justify-self: end;
  width: 137px;
  text-align: left;
}

.table-header .seats-header {
  padding-right: 10px;
}

.detail-price {
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  color: #000;
  white-space: nowrap;
}

.schedule-inline {
  padding-inline: 0;
}
.office-pill {
  background: var(--metro-softest);
  color: var(--metro-dark);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  text-align: center;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.seats-badge {
  width: 56px;
  height: 32px;
  min-width: 48px;
  border-radius: 4px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.seat-open { background: var(--seat-open); }
.seat-some { background: var(--seat-some); }
.seat-few { background: var(--seat-few); }

.seats-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.seats-icon svg {
  width: 14px;
  height: 14px;
}

.seats-icon svg path {
  stroke: #0D4345;
  stroke-width: 1.8;
}

.seats-count {
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0;
  color: #0D4345;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.signup-btn {
  border: 1px solid #0D4345;
  border-radius: 6px;
  background: #0D4345;
  color: #fff;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0;
  min-width: 137px;
  height: 40px;
  padding: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.signup-arrow-icon path {
  stroke: #4BD896;
  transition: stroke .2s ease;
}

.signup-btn:hover {
  background: #EAEFF0;
  color: #000;
}

.signup-btn:hover .signup-arrow-icon path {
  stroke: #07A47A;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
}

.back-link {
  margin-top: 26px;
  border: 0;
  background: transparent;
  color: var(--metro-dark);
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link-text {
  gap: 0;
  padding-left: 0;
}

.page-title{font-size:36px;font-weight:750;margin:0 0 18px;text-align:center}
.signup-card{background:#f3f3f3;border-radius:26px;padding:26px;max-width:860px;margin:0 auto}
.signup-title{margin:0 0 12px;font-size:26px;font-weight:750}
.signup-meta{display:flex;flex-direction:column;gap:10px;font-size:18px}
.price-line{display:inline-flex;gap:10px;align-items:baseline}
.price-old{color:#9a9a9a;text-decoration:line-through;margin-right:10px}
.price-new{color:#0D4345;font-weight:400}
.btn-red{margin-top:18px;background:#0D4345;color:#fff;border:none;border-radius:12px;padding:12px 18px;font-weight:800;cursor:pointer}
.backline{max-width:860px;margin:14px auto 0}
.backlink{text-decoration:none;color:#111;font-weight:700}

@media (max-width: 900px) {
  .available-badge { font-size: 15px; }
  .info-box-head h2 { font-size: 20px; }
  .info-box p { font-size: 18px; padding: 18px 20px 22px; }
  .responsible-section h3 { font-size: 20px; }
  .chip { font-size: 14px; }
  .table-header { font-size: 16px; }
  .date-day { font-size: 14px; }
  .date-big { font-size: 20px; }
  .date-time { font-size: 14px; }
  .schedule-link { font-size: 14px; }
  .date-kursstart-title { font-size: 20px; }
  .date-kursstart-date { font-size: 18px; }
  .office-pill { font-size: 14px; }
  .signup-btn, .back-link { font-size: 14px; }
}

@media (max-width: 700px) {
  .table-header { display: none; }
  .date-card { grid-template-columns: 1fr; gap: 10px; }
  .course-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .course-meta { width: 100%; justify-content: space-between; }

  .prototype-wrap {
    padding: 28px 16px 44px;
  }

  .prototype-title {
    margin-bottom: 24px;
    font-size: 24px;
  }

  .info-box-head,
  .info-box-head-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    align-items: start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .info-box-head .available-badge,
  .info-box-head-compact .available-badge {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-left: 0;
    width: auto;
    max-width: fit-content;
    white-space: nowrap;
    text-align: left;
  }

  .info-box-head h2,
  .info-box-head-compact h2 {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    font-size: 18px;
    line-height: 1.35;
  }

  .info-box p {
    padding: 18px 16px 22px;
    font-size: 15px;
  }

  .date-kursstart-title {
    font-size: 18px;
  }

  .date-kursstart-date {
    font-size: 15px;
  }

  .responsible-section {
    margin: 28px 0 20px;
  }

  .class-select-card,
  .class-switcher {
    gap: 12px;
  }

  .class-select-card h2,
  .class-switcher h2,
  .course-list-heading {
    font-size: 20px;
  }

  .responsible-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .chip-row {
    gap: 8px;
  }

  .chip {
    width: auto;
    min-height: 40px;
    justify-content: flex-start;
    padding: 8px 14px;
  }

  .date-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "date date"
      "schedule schedule"
      "responsible seats"
      "price price"
      "cta cta";
    padding: 16px;
    border-radius: 14px;
    gap: 14px 10px;
    align-items: center;
  }

  .date-col { grid-area: date; }
  .responsible-col { grid-area: responsible; }
  .seats-col {
    grid-area: seats;
    justify-self: end;
  }
  .price-col {
    grid-area: price;
  }
  .cta-col {
    grid-area: cta;
    justify-self: stretch;
  }

  .schedule-inline {
    grid-area: schedule;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  .schedule-strip {
    min-width: 0;
    width: 100%;
    overflow: visible;
    border-radius: 8px;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: unset;
    gap: 8px;
    align-items: stretch;
  }

  .schedule-day-item {
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    height: 100%;
  }

  .schedule-day-wrap {
    display: block;
  }

  .schedule-arrow {
    display: none;
  }

  .signup-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

}
