@font-face {
  font-family: "DINWeb-CondBold";
  src: url("assets/DINWeb-CondBold.woff") format("woff");
  font-display: swap;
}

:root {
  --cyan: #46bafd;
  --blue: #003d7c;
  --blue-deep: #002a59;
  --blue-soft: #066fa7;
  --white: #ffffff;
  --error: #e43e39;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; background: var(--cyan); }

body {
  margin: 0;
  color: var(--blue);
  font-family: "DINWeb-CondBold", "Arial Narrow", sans-serif;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.site-frame {
  width: min(1200px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 50px 42px 72px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 31px;
  border-bottom: 2px solid var(--blue-soft);
}

.brand { display: block; width: min(320px, 48vw); line-height: 0; }
.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-header__title {
  align-self: center;
  color: var(--blue);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 30px;
  border-top: 2px solid var(--blue-soft);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.site-footer a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--blue-deep); }

.intro { padding: 74px 3% 50px; }

.eyebrow {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.intro h1, .flow-card h2 {
  margin: 0;
  color: var(--blue);
  font-family: "DINWeb-CondBold", "Arial Narrow", sans-serif;
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.81;
  text-transform: uppercase;
}

.intro h1 { color: var(--white); }

.intro > p:last-child, .intro--farewell > p:nth-of-type(2) {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--blue);
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  letter-spacing: 0.02em;
  line-height: 1.02;
}

.intro--farewell { min-height: 555px; }
.intro--farewell > p:last-child { max-width: 670px; }
.intro--farewell .text-button { margin-top: 20px; font-size: 1.2rem; }

.flow { border-top: 2px solid var(--blue-soft); }

.flow-card {
  width: min(100%, 880px);
  min-height: 340px;
  padding: 46px 3%;
  background: transparent;
}

.flow-card--welcome { min-height: 305px; }
.flow-card h2 { font-size: clamp(2.9rem, 5vw, 5.2rem); }

.flow-card__copy {
  max-width: 590px;
  margin: 23px 0 0;
  color: var(--blue);
  font-size: clamp(1.15rem, 2vw, 1.52rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.flow-card--welcome > .button--quiet {
  display: block;
  margin: 20px 0 0;
}

.button--spaced { margin-top: 20px; }

.program-link {
  margin-top: 19px;
  padding: 0;
  border: 0;
  color: var(--blue);
  font-family: "DINWeb-CondBold", "Arial Narrow", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.025em;
  text-decoration: underline;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}

.program-link span { margin-left: 0; }

.program-modal {
  position: fixed;
  z-index: 10;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(0, 61, 124, 0.78);
}

.program-modal__card {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(34px, 6vw, 62px);
  color: var(--blue);
  background: var(--cyan);
  box-shadow: 14px 14px 0 rgba(0, 42, 89, 0.36);
}

.program-modal__card h2 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.8;
  text-transform: uppercase;
}

.program-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  color: var(--blue);
  font-size: 2.1rem;
  line-height: 1;
  background: transparent;
  cursor: pointer;
}

.program-list { margin: 39px 0 0; }
.program-list div { display: grid; grid-template-columns: 126px 1fr; gap: 16px; padding: 13px 0; border-top: 2px solid var(--blue); }
.program-list div:last-child { border-bottom: 2px solid var(--blue); }
.program-list dt, .program-list dd { margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.02; }
.program-list dt { color: var(--white); }
.program-modal__note { margin: 24px 0 0; font-size: 1.05rem; }

.choice-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.button {
  min-width: 155px;
  border: 0;
  border-radius: 0;
  padding: 12px 20px;
  color: var(--white);
  font-family: "DINWeb-CondBold", "Arial Narrow", sans-serif;
  font-size: 1.44rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  background: var(--blue);
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.button:hover { background: var(--blue-deep); transform: translateY(-2px); }
.button span { margin-left: 18px; }
.button--quiet { color: var(--blue); background: transparent; box-shadow: inset 0 0 0 2px var(--blue); }
.button--quiet { margin-left: 20px; }
.button--quiet:hover { color: var(--white); background: var(--blue-deep); }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  margin: 33px 0 0;
}

.field { display: block; }
.field--wide { grid-column: span 2; }
.field span { display: block; margin-bottom: 2px; color: var(--blue); font-size: 1.08rem; letter-spacing: 0.025em; text-transform: uppercase; }

.field input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--blue);
  border-radius: 0;
  padding: 7px 5px;
  color: var(--blue);
  font-family: "DINWeb-CondBold", "Arial Narrow", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.025em;
  background: transparent;
  outline: none;
}

.field input::placeholder { color: rgba(0, 61, 124, 0.62); }
.field input:focus { border-color: var(--white); box-shadow: 0 2px 0 var(--white); }
.field-hint { margin: 10px 0 23px; color: var(--blue); font-size: 1rem; letter-spacing: 0.025em; }
.form-message { margin: 0 0 18px; font-size: 1.1rem; }
.form-message.is-error { padding: 9px 12px; color: var(--white); background: var(--error); }

.text-button {
  display: block;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  color: var(--blue);
  font-family: "DINWeb-CondBold", "Arial Narrow", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.025em;
  text-decoration: underline;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 27px;
}

.stats-flow .flow-card {
  width: min(100%, 1080px);
  min-height: auto;
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stats-card,
.helper-slot-card {
  border: 2px solid var(--blue);
  background: rgba(255, 255, 255, 0.16);
}

.stats-card {
  padding: 18px 18px 16px;
}

.stats-card span,
.helper-slot-card__area,
.stats-list li span {
  display: block;
  color: var(--blue);
  font-size: 1rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.stats-card strong {
  display: block;
  margin-top: 10px;
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.9;
}

.stats-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 2px solid rgba(0, 61, 124, 0.3);
}

.stats-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.stats-list li strong {
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
}

.stats-list li span {
  text-align: right;
}

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

.helper-slot-card {
  padding: 18px;
}

.helper-slot-card h3 {
  margin: 10px 0 8px;
  color: var(--white);
  font-size: 1.7rem;
  line-height: 0.95;
}

.helper-slot-card p {
  min-height: 44px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 1.05rem;
  line-height: 1.05;
}

.helper-slot-card__bar {
  height: 12px;
  margin-bottom: 12px;
  background: rgba(0, 61, 124, 0.18);
}

.helper-slot-card__bar i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.helper-slot-card strong {
  display: block;
  color: var(--white);
  font-size: 1.85rem;
  line-height: 0.95;
}

.helper-slot-card > span:last-child {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .stats-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .stats-summary,
  .helper-status-grid {
    grid-template-columns: 1fr;
  }

  .stats-list li {
    flex-direction: column;
    gap: 8px;
  }

  .stats-list li span {
    text-align: left;
  }
}

.slot-option {
  min-height: 132px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.slot-option input { position: absolute; opacity: 0; pointer-events: none; }
.slot-option:hover:not(.is-selected) { color: var(--blue); background: rgba(255, 255, 255, 0.55); }
.slot-option.is-selected { color: var(--white); background: var(--blue-deep); }
.slot-option.is-full { opacity: 0.4; cursor: not-allowed; }
.slot-option.is-own { border-color: var(--blue-soft); box-shadow: inset 0 0 0 3px var(--cyan); }
.slot-option__area { font-size: 0.95rem; letter-spacing: 0.03em; text-transform: uppercase; }
.slot-option strong { margin-top: 12px; font-size: 1.35rem; line-height: 0.9; letter-spacing: 0.02em; }
.slot-option__progress { height: 6px; margin-top: auto; background: rgba(0, 61, 124, 0.2); }
.slot-option__progress i { display: block; height: 100%; background: var(--blue); }
.slot-option.is-selected .slot-option__progress { background: rgba(255, 255, 255, 0.32); }
.slot-option.is-selected .slot-option__progress i { background: var(--white); }
.slot-option > span:last-child { margin-top: 8px; font-size: 1.04rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[v-cloak] { display: none; }

.step-enter-active, .step-leave-active { transition: opacity 200ms ease, transform 200ms ease; }
.step-enter-from { opacity: 0; transform: translateY(12px); }
.step-leave-to { opacity: 0; transform: translateY(-12px); }

@media (max-width: 760px) {
  .site-frame { width: calc(100% - 24px); padding: 28px 18px 42px; }
  .site-header { padding-bottom: 23px; }
  .site-header__title { display: none; }
  .intro { padding: 56px 0 40px; }
  .flow-card { padding: 36px 0; }
  .field-grid, .slot-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .button { width: 100%; }
  .button--quiet { margin-left: 0; }
  .program-list div { grid-template-columns: 1fr; gap: 5px; }
}
