:root {
  --paper: #F6F6F8;
  --panel: #E8E7EE;
  --ink: #1B1826;
  --mark: #B02E7A;
  --quiet: #82808F;
  --line: rgba(27, 24, 38, .14);
  --mark-deep: #8E2461;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Work Sans", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.72;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--mark-deep);
}

*:focus-visible {
  outline: 3px solid var(--mark);
  outline-offset: 2px;
}

h1,
h2,
h3,
.tile__h {
  font-family: Syne, system-ui, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.22;
  font-weight: 700;
  margin: 0 0 0.55em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

h3,
.tile__h {
  font-size: 1.22rem;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

.panelcard .btn {
  margin-top: 12px;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.15em;
}

.boundary {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 26px;
}

.block {
  padding: 56px 0;
}

.block--tinted {
  background: var(--panel);
  border-radius: 18px;
  padding: 40px 36px;
}

.duo {
  display: grid;
  grid-template-columns: 1.31fr 0.69fr;
  gap: 36px;
  align-items: start;
}

.lede,
.duo > div > p,
.block--tinted > p,
.qa__a {
  max-width: 68ch;
}

.kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--mark);
  font-size: 16px;
  font-weight: 600;
}

.subhead {
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 68ch;
}

.lede {
  font-size: 1.05rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar--sticky {
  background: var(--panel);
}

.topbar .boundary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.topbar__brand:hover {
  color: var(--ink);
}

.topbar__brand svg {
  flex: 0 0 22px;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.navlink {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.navlink:hover {
  color: var(--mark);
}

.navlink--on {
  color: var(--ink);
  border-bottom-color: var(--mark);
}

.topbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font: 600 16px/1 "Work Sans", system-ui, sans-serif;
  cursor: pointer;
}

/* Course board */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}

.board__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

html:not(.js) .board__bar {
  display: none;
}

.chip {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 500 16px/1.2 "Work Sans", system-ui, sans-serif;
  cursor: pointer;
}

.chip:hover {
  background: var(--panel);
}

.chip--on {
  background: var(--mark);
  border-color: var(--mark);
  color: #fff;
}

.chip--on:hover {
  background: var(--mark-deep);
  color: #fff;
}

.tile[hidden] {
  display: none;
}

.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 20px 22px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.tile:hover {
  border-color: rgba(27, 24, 38, .32);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27, 24, 38, .08);
}

.tile--tall {
  grid-row: span 2;
}

.tile__tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(176, 46, 122, .09);
  color: var(--mark);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tile__h {
  margin-bottom: 0.4em;
}

.tile__text {
  margin-bottom: 0.8em;
}

.tile__meta {
  margin: 0 0 12px;
  color: var(--quiet);
  font-size: 16px;
}

.tile__link {
  font-weight: 600;
}

.tile ul {
  margin: 0.4em 0 0.9em;
}

.tile--photo img {
  width: calc(100% + 40px);
  max-width: none;
  margin: -20px -20px 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.panelcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 24px;
}

.panelcard h2,
.panelcard h3 {
  font-size: 1.22rem;
}

.panelcard__row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.panelcard__row:first-of-type {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.pricelist {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.pricelist__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.pricelist__item strong {
  white-space: nowrap;
  font-weight: 600;
}

.stepline {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.step__num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  color: var(--mark);
  font-size: 16px;
  min-width: 4.6rem;
}

.step__h {
  margin: 0;
  font-size: 1.22rem;
}

.qa {
  display: grid;
  gap: 14px;
}

.qa__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

.qa__q {
  margin: 0 0 8px;
  font-family: Syne, system-ui, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.qa__a {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn + .btn {
  margin-left: 10px;
}

.btn--solid {
  background: var(--mark);
  color: #fff;
  border-color: var(--mark);
}

.btn--solid:hover {
  background: var(--mark-deep);
  color: #fff;
  border-color: var(--mark-deep);
}

.btn--ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: #DDDBE6;
  color: var(--ink);
}

.btn--wide {
  width: 100%;
  margin-left: 0;
}

.figure {
  margin: 0 0 1em;
}

.figure img,
.figure iframe {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.figure iframe {
  min-height: 280px;
  background: #fff;
}

.figure__cap {
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 16px;
}

.flash,
.errbox {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
  font-size: 16px;
}

.flash {
  background: #E4F3EA;
  color: #1C4A32;
  border: 1px solid rgba(28, 74, 50, .18);
}

.errbox {
  background: #F8E6EB;
  color: #6B2140;
  border: 1px solid rgba(107, 33, 64, .18);
}

/* Footer form */
.footzone {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 54px 0 28px;
}

.footform h2 {
  margin-bottom: 0.4em;
}

.footform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 10px;
  position: relative;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 16px;
  font-weight: 600;
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.4 "Work Sans", system-ui, sans-serif;
}

textarea.field__input {
  min-height: 140px;
  resize: vertical;
}

.field__note {
  color: var(--quiet);
  font-size: 16px;
  margin-top: 8px;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
}

.consent input {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  flex: 0 0 22px;
  accent-color: var(--mark);
}

.footform__grid .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

address {
  font-style: normal;
}

.footzone address {
  margin: 0 0 12px;
}

.footform__grid .field:has(textarea),
.footform__grid > .field:nth-of-type(5) {
  grid-column: 1 / -1;
}

.footzone ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.footzone li {
  margin: 0 0 6px;
}

.footzone .boundary > .field__note {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footzone .boundary > .field__note a {
  color: var(--quiet);
}

.footzone .boundary > .field__note a:hover {
  color: var(--mark);
}

.cookiebar {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(27, 24, 38, .12);
  padding: 18px 20px;
  z-index: 60;
}

.cookiebar__text {
  margin: 0 0 12px;
}

.cookiebar__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookiebar__acts .btn + .btn {
  margin-left: 0;
}

.lift-in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}

html.js .lift-in {
  opacity: 0;
  transform: translateY(14px);
}

html.js .lift-in.on {
  opacity: 1;
  transform: none;
}

.no-js .lift-in {
  opacity: 1 !important;
  transform: none !important;
}

@media (min-width: 860px) {
  .tile--wide {
    grid-column: span 2;
  }
}

@media (max-width: 920px) {
  .duo {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .block--tinted {
    padding: 28px 22px;
  }
}

@media (max-width: 899px) {
  .topbar__toggle {
    display: inline-flex;
  }

  html.js .topbar__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    padding: 8px 26px 18px;
    border-bottom: 1px solid var(--line);
  }

  html.js .topbar--open .topbar__links {
    display: flex;
  }

  html.no-js .topbar__toggle {
    display: none;
  }

  html.no-js .topbar .boundary {
    flex-wrap: wrap;
  }

  html.no-js .topbar__links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 0 0 14px;
  }
}

@media (max-width: 640px) {
  .footform__grid {
    grid-template-columns: 1fr;
  }

  .btn + .btn {
    margin-left: 0;
    margin-top: 10px;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lift-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  .tile {
    transition: none;
  }
}
