/* Pochatok — онбординг «Дані бізнесу», 4 кроки (onboarding-*.html).
   СТРУКТУРА — з канвасу Claude Design «Simple Site Editor» (StepAbout / StepContacts / StepServices / StepBooking),
   ВИГЛЯД — лише дизайн-система Pochatok з Figma (Manrope 400, чорне/біле/сірі токени, прямі кути, кнопки .cbtn).
   Підключається після style.css + inner.css + cabinet.css. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ================= black top: cabinet header + step progress + title ================= */
.ob-head {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: calc(808px + 2 * var(--pad));   /* 808 column + side gutters, never wider than the screen */
  max-width: 100%;
  margin: 0 auto;
  padding: 60px var(--pad);
}
.ob-steps { display: flex; flex-direction: column; gap: 10px; }
.ob-steps__row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
/* not uppercase: in Manrope caps «З» reads as «3» («КРОК 2 З 4» → «2 3 4») */
.ob-steps__label { font-size: 16px; line-height: 1.35; }
.ob-steps__later { font-size: 16px; line-height: 1.35; color: #d9d9d9; transition: color .2s; }
.ob-steps__later:hover { color: var(--white); }
/* same language as the hero navigator: 1 px tracks, a 4 px white bar on the passed / current steps */
.ob-steps__bars { display: flex; gap: 4px; height: 1px; }
.ob-steps__bars span { flex: 1 0 0; display: flex; align-items: center; background: rgba(255, 255, 255, .35); }
.ob-steps__bars .is-done::before { content: ""; width: 100%; height: 4px; background: var(--white); }

.ob-title { display: flex; flex-direction: column; gap: 20px; }
.ob-title h1 { font-size: var(--fs-xl); line-height: 1.1; }
.ob-title p { font-size: 18px; line-height: 1.65; color: #d9d9d9; }

/* ================= white body: the form ================= */
.ob {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: calc(808px + 2 * var(--pad));
  max-width: 100%;
  margin: 0 auto;
  padding: 60px var(--pad) 140px;
}
.ob > .acc-back { margin-bottom: -20px; }   /* 40 to the content, like the profile (.ob gap is 60) */
.ob-sec { display: flex; flex-direction: column; gap: 32px; }
.ob-sec__head { display: flex; flex-direction: column; gap: 10px; }
.ob-sec__title { font-size: var(--fs-l); line-height: 1.1; }
.ob-sec__desc { font-size: 16px; line-height: 1.65; color: var(--grey-text); }
.ob-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* field: label 16 grey → input 64 → hint 14 grey */
.ob-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ob-label { font-size: 16px; line-height: 1.35; color: var(--grey-text); }
.ob-label small { font-size: 16px; color: var(--grey-soft); }
.ob-hint { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 1.65; color: var(--grey-text); }
.ob-input,
.ob-select {
  width: 100%;
  min-width: 0;
  height: 64px;
  padding: 0 20px;
  border: 1px solid var(--grey-soft);
  border-radius: 0;
  outline: 0;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s;
}
.ob-input:focus, .ob-select:focus, .ob-affix:focus-within { border-color: var(--black); }
.ob-input::placeholder { color: var(--grey-soft); opacity: 1; }
.ob-select {
  appearance: none;
  padding-right: 48px;
  background: var(--white) url("../assets/chevron-down-dark.svg") right 20px center no-repeat;
  cursor: pointer;
}
/* input with a suffix (price «Kč») */
.ob-affix {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  padding: 0 20px;
  border: 1px solid var(--grey-soft);
  background: var(--white);
  transition: border-color .2s;
}
.ob-affix .ob-input { height: auto; padding: 0; border: 0; }
.ob-affix span { font-size: 16px; color: var(--grey-text); }

/* icon-only button (remove) */
.ob-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--grey-text);
  transition: color .2s;
}
.ob-icon:hover { color: var(--black); }
/* «+ add …» — dashed, square */
.ob-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 64px;
  padding: 0 30px;
  border: 1px dashed var(--grey-soft);
  font-size: 16px;
  line-height: 1.35;
  transition: border-color .2s, background-color .2s;
}
.ob-add:hover { border-color: var(--black); background: var(--grey-bg); }
.ob-field > .ob-add { align-self: flex-start; }   /* sized to its text, not stretched by the column */
.ob-add--full { width: 100%; }

/* ---------- step 1: logo ---------- */
.ob-logo { display: flex; align-items: center; gap: 20px; }
.ob-logo__drop {
  flex: none;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 1px dashed var(--grey-soft);
  background: var(--grey-bg);
  color: var(--grey-text);
}
.ob-logo__side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* ---------- step 2: links + hours ---------- */
.ob-links { display: flex; flex-direction: column; gap: 12px; }
.ob-link { display: grid; grid-template-columns: 200px minmax(0, 1fr) 44px; gap: 12px; align-items: center; }

.ob-days { display: flex; flex-direction: column; }
.ob-day {
  display: grid;
  grid-template-columns: 160px 52px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 80px;
  border-top: 1px solid var(--black);
}
.ob-day__name { font-size: 16px; line-height: 1.35; }
.ob-day__time { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--grey-text); }
.ob-day__time .ob-select { width: 140px; height: 52px; }
.ob-day__off { font-size: 16px; color: var(--grey-text); }
.ob-day:not(.is-open) .ob-day__time, .ob-day.is-open .ob-day__off { display: none; }

/* switch — square, black when on */
/* switch — classic pill with a round knob (user's edit 03.10: the only rounded element in the system);
   off = grey track, on = black track, knob always white */
.ob-switch {
  flex: none;
  display: flex;
  align-items: center;
  width: 52px;
  height: 30px;
  padding: 3px;
  border-radius: 999px;
  background: var(--grey-soft);
  transition: background-color .2s;
}
.ob-switch::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s cubic-bezier(.4, 0, .2, 1);
}
.ob-switch[aria-checked="true"] { background: var(--black); }
.ob-switch[aria-checked="true"]::before { transform: translateX(22px); }
.ob-switch:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

/* ---------- step 3: services table ---------- */
.ob-svc-head,
.ob-svc { display: grid; grid-template-columns: minmax(0, 1fr) 160px 190px 44px; gap: 12px; align-items: center; }
.ob-svc-head { font-size: 14px; line-height: 1.65; color: var(--grey-text); }
.ob-svcs { display: flex; flex-direction: column; gap: 12px; }

/* ---------- step 4: booking ---------- */
.ob-toggle {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 40px;
  background: var(--grey-bg);
}
.ob-toggle__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
.ob-toggle__title { font-size: var(--fs-l); line-height: 1.1; }
.ob-toggle__desc { font-size: 16px; line-height: 1.65; color: var(--grey-text); }
.ob-chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ob-chip {
  height: 52px;
  border: 1px solid var(--grey-soft);
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.ob-chip:hover { border-color: var(--black); }
.ob-chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.ob-range { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--grey-text); }
.ob-range .ob-select { width: 160px; }
.ob-booking-settings { transition: opacity .25s; }
.ob-booking-settings.is-off { opacity: .35; pointer-events: none; }

/* site languages (03.10) */
.ob-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-langs .ob-chip { padding: 0 28px; }

/* info plate (yellow) — e.g. «data taken from your first site» */
.ob-plate { padding: 16px 20px; background: var(--accent); font-size: 16px; line-height: 1.5; }

/* ---------- nav ---------- */
.ob-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--black);
}
.ob-nav .cbtn { width: 222px; }   /* «Назад» and «Далі» — one size (user's edit 03.10) */

/* ================= MOBILE (no design — my rules on the same tokens) ================= */
@media (max-width: 900px) {
  .ob-head { padding: 40px var(--pad); gap: 32px; }
  .ob-steps__label, .ob-steps__later { font-size: 14px; }
  .ob-title h1 { font-size: 28px; }
  .ob-title p { font-size: 16px; }

  .ob { padding: 40px var(--pad) 100px; gap: 48px; }
  .ob > .acc-back { margin-bottom: -16px; }   /* 32, like .acc-solo on the phone */
  .ob-sec { gap: 24px; }
  .ob-sec__title { font-size: 20px; }
  .ob-grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .ob-input, .ob-select, .ob-affix { height: 60px; font-size: 16px; }
  .ob-affix span { font-size: 16px; }

  /* link: [where ▾][🗑] / [value — full width] */
  .ob-link { grid-template-columns: minmax(0, 1fr) 44px; }
  .ob-link .ob-input { grid-column: 1 / -1; grid-row: 2; }
  .ob-add, .ob-field > .ob-add { width: 100%; align-self: stretch; }

  /* day: name + switch on the first line, times / «Вихідний» under them */
  .ob-day { grid-template-columns: minmax(0, 1fr) 52px; gap: 12px 20px; padding: 16px 0; min-height: 0; }
  .ob-day__time, .ob-day__off { grid-column: 1 / -1; }
  .ob-day__time .ob-select { flex: 1 1 0; width: auto; }

  /* service: name — full row; price · duration · remove under it */
  .ob-svc-head { display: none; }
  .ob-svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; padding-bottom: 20px; border-bottom: 1px solid var(--grey-soft); }
  .ob-svc > :first-child { grid-column: 1 / -1; }

  .ob-toggle { padding: 24px; gap: 20px; }
  .ob-toggle__title { font-size: 20px; }
  .ob-chips { gap: 4px; }
  .ob-chip { font-size: 14px; }
  .ob-range .ob-select { flex: 1 1 0; width: auto; }

  /* buttons stacked, «Далі» first — as on the mobile template page */
  .ob-nav { flex-direction: column; }
  .ob-nav .cbtn { width: 100%; }
  .ob-nav .cbtn--black { order: -1; }
}

/* services grouped by category (04.10, real templates group them so): title field, the rows, «+ Додати послугу» */
.ob-svc-groups { display: flex; flex-direction: column; gap: 40px; }
.ob-svc-group { display: flex; flex-direction: column; gap: 12px; }
.ob-svc-group__title.ob-input { font-size: 20px; }
.ob-svc-group > .ob-hint { margin-top: -4px; }
.ob-sec > .ob-add:last-child { align-self: flex-start; }
/* a step that can't go on yet (validation before «Далі») */
.ob-error { font-size: 16px; line-height: 1.5; color: #c4320a; }
.ob-error:empty { display: none; }
@media (max-width: 900px) {
  .ob-svc-groups { gap: 32px; }
  .ob-sec > .ob-add:last-child { align-self: stretch; }
}

/* 6a · site-details.html (06.10): who the site belongs to — the footer preview is a grey block */
.dt-foot { display: flex; flex-direction: column; gap: 12px; padding: 40px; background: var(--grey-bg); }
.dt-foot__label { font-size: 14px; line-height: 1.5; color: var(--grey-text); }
.dt-foot__line { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.dt-city { grid-template-columns: minmax(0, 1fr) 180px; }
.ob-chip[role="radio"] { padding: 0 24px; }
@media (max-width: 900px) {
  .dt-foot { padding: 24px; }
  .dt-city { grid-template-columns: minmax(0, 1fr) 120px; }
}
