:root {
  --ink: #272f65;
  --muted: #626980;
  --red: #d91c2b;
  --red-dark: #b81424;
  --bg: #f5f6fa;
  --white: #ffffff;
  --line: #e0e3ec;
  --soft: #e9ecf8;
  --shadow: 0 8px 24px rgba(39, 47, 101, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: #dfe2ea;
}

body {
  margin: 0;
  min-width: 320px;
  background: #dfe2ea;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 20px 28px;
  background: var(--bg);
}

.app-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--muted);
  font-size: 12px;
}

.app-topbar__center {
  text-align: center;
  white-space: nowrap;
}

.app-topbar__right {
  text-align: right;
  letter-spacing: 2px;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 18px;
}

.page--home {
  padding-top: 16px;
}

.back-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.back-button,
.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.back-button {
  color: var(--ink);
}

.main-title {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.home-title {
  margin-top: 64px;
}

.subtitle {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.demo-badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.intro-card,
.info-card,
.field-card,
.work-card,
.date-card,
.time-card,
.summary-card,
.storage-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: none;
}

.intro-card,
.info-card,
.field-card,
.work-card,
.date-card,
.time-card,
.summary-card,
.storage-card {
  width: 100%;
  padding: 16px;
  text-align: left;
}

.intro-card__title,
.card-title {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.intro-card__text,
.card-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.primary-button {
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--white);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--red-dark);
}

.secondary-button {
  border: 1px solid transparent;
  background: var(--soft);
  color: var(--ink);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--ink);
}

button:active {
  transform: translateY(1px);
}

.menu-list,
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card,
.menu-card {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.menu-card {
  padding: 16px;
}

.menu-card__title {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.menu-card__text {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.menu-card:hover,
.menu-card:focus-visible,
.info-card:hover,
.info-card:focus-visible {
  border-color: var(--ink);
}

.hours {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.step-label,
.helper-text,
.section-label {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.section-label {
  margin-top: 4px;
  font-weight: 700;
}

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

.field-card label,
.form-field label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.select-control,
.text-input,
.text-area {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.select-control {
  appearance: none;
  padding: 0 24px 0 0;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.model-list,
.work-list,
.date-list,
.time-list {
  display: grid;
  gap: 12px;
}

.model-button,
.work-card,
.date-card,
.time-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.model-button {
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
}

.model-button.is-selected,
.work-card.is-selected,
.date-card.is-selected,
.time-card.is-selected,
.storage-option.is-selected {
  border-color: var(--ink);
  background: var(--soft);
}

.model-button:hover,
.model-button:focus-visible,
.work-card:hover,
.work-card:focus-visible,
.date-card:hover,
.date-card:focus-visible,
.time-card:hover,
.time-card:focus-visible,
.storage-option:hover,
.storage-option:focus-visible {
  border-color: var(--ink);
}

.work-card,
.date-card,
.time-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.work-card__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.work-card__checkbox {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--red);
}

.work-card__name {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.work-card__price,
.date-card__sub,
.time-card__sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.price-total {
  border: 0;
  background: var(--ink);
  color: var(--white);
}

.price-total .card-title,
.price-total .card-subtitle {
  color: var(--white);
}

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

.date-card {
  min-height: 74px;
}

.time-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.time-card {
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

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

.text-input,
.text-area {
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
}

.text-area {
  min-height: 104px;
  resize: vertical;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.consent-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red);
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.summary-row strong {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.sent-card {
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  text-align: center;
}

.sent-card__icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
}

.sent-card h2 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 24px;
}

.sent-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.storage-option-list {
  display: grid;
  gap: 12px;
}

.storage-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.storage-option__title {
  font-size: 15px;
  font-weight: 700;
}

.storage-option__text {
  color: var(--muted);
  font-size: 13px;
}

.external-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.small-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.error-text {
  margin: -4px 0 0;
  color: var(--red-dark);
  font-size: 13px;
  line-height: 1.4;
}

@media (min-width: 700px) {
  .app-shell {
    min-height: 0;
    margin-top: 28px;
    margin-bottom: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow);
  }
}
