/* Дополнительные стили клиентской части: экран выбора времени, тосты,
   карточки записей, форма входа. Основные элементы — из style.css. */

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg, #0e0e10);
  border-bottom: 1px solid var(--color-line-soft, rgba(255, 255, 255, 0.08));
}

.header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header .brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 20px;
  color: var(--color-accent, #c9a227);
}

.nav {
  display: flex;
  gap: 14px;
  margin-left: auto;
  font-size: 14px;
}

.header__auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.block__title {
  font-size: 22px;
  margin: 0 0 8px;
}

.block__hint {
  margin: 0 0 20px;
}

.study-banner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px 0;
  text-align: center;
}

.study-banner__inner {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--color-accent, #c9a227);
  border-radius: var(--radius-md, 12px);
  background: var(--color-accent-soft, rgba(201, 162, 39, 0.12));
  color: var(--color-text-muted, #a2a2ad);
  font-size: 13px;
  line-height: 1.4;
}

.date-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.date-chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 74px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
  color: inherit;
  flex: 0 0 auto;
}

.date-chip strong {
  display: block;
  font-size: 14px;
}

.date-chip:hover {
  border-color: var(--accent, #111);
}

.date-chip.is-active {
  background: var(--accent, #111);
  color: #fff;
  border-color: var(--accent, #111);
}

.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  background: transparent;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  color: inherit;
}

.slot.is-active {
  background: #0a7a3d;
  border-color: #0a7a3d;
  color: #fff;
}

.slot--busy {
  border-style: dashed;
  border-color: rgba(153, 27, 27, 0.45);
  color: #991b1b;
}

.slot--busy.is-active {
  background: #991b1b;
  border-color: #991b1b;
  color: #fff;
}

.summary {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 14px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.summary__row span {
  color: var(--muted, #666);
}

.szone {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 6px;
  padding-top: 8px;
}

.notes {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  margin-top: 6px;
}

.option {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option input[type='text'],
.option input[type='email'],
.option input[type='password'] {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  margin-top: 6px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

/* Формы входа переиспользуют класс .option (карточки услуг), но внутри
   них input настоящий: возвращаем видимость и кликабельность. */
.auth-form .option {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.auth-form .option input {
  position: static;
  opacity: 1;
  pointer-events: auto;
}

/* Подсветка выбранных карточек услуг и мастеров на экране записи */
.option:has(input:checked) {
  border-color: var(--color-accent, #c9a227);
  background: var(--color-accent-soft, rgba(201, 162, 39, 0.12));
}

.toast {
  position: fixed;
  top: 64px;
  right: 20px;
  z-index: 50;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  background: #b3261e;
  color: #fff;
  font-size: 14px;
}

.toast--success {
  background: #0a7a3d;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm {
  text-align: center;
}

.confirm__title {
  font-size: 28px;
  margin: 0 0 10px;
}

.details {
  text-align: left;
  max-width: 420px;
  margin: 0 auto 18px;
}

.details__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.details__row span {
  color: var(--muted, #666);
}

.details__row--accent strong {
  font-size: 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted, #666);
}

.hero__title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin: 10px 0;
}

.hero__facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.hero__fact {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.hero__fact span {
  color: var(--muted, #666);
  font-size: 12px;
}

.steps {
  gap: 16px;
}

.steps .step-card {
  background: var(--color-surface, #1b1b1f);
  border: 1px solid var(--color-line-soft, #26262c);
  border-radius: var(--radius-lg, 18px);
  padding: var(--space-5, 24px);
  padding-top: 0;
}

.steps .step-card__num {
  position: static;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-accent, #c9a227);
  border: 1px solid var(--color-accent-line, rgba(201, 162, 39, 0.35));
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4, 16px);
}

.steps .step-card__title {
  font-size: var(--fs-h3, 20px);
  margin-bottom: var(--space-2, 8px);
}

.steps .step-card__text {
  font-size: var(--fs-small, 14px);
  color: var(--color-text-muted, #a2a2ad);
  line-height: 1.5;
}

.master-card .btn {
  margin-top: auto;
}

.cta {
  text-align: center;
  margin-top: var(--space-5, 24px);
}

.contacts__grid {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid var(--color-line-soft, #26262c);
  border-radius: var(--radius-md, 12px);
  background: var(--color-surface, #1b1b1f);
}

.contact-row__label {
  color: var(--color-text-muted, #a2a2ad);
  font-size: var(--fs-small, 14px);
}

.contacts-block .section-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted, #a2a2ad);
}

.contacts-block .btn {
  margin-top: 16px;
  padding: 7px 14px;
  font-size: 13px;
}

.footer {
  margin-top: auto;
}

.footer .brand {
  color: var(--color-accent, #c9a227);
  letter-spacing: 0.06em;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

.section-title {
  font-size: 20px;
  margin: 0 0 16px;
}

a.link {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

@media (max-width: 720px) {
  .nav a:nth-child(2) {
    display: none;
  }
}

/* ========== Уведомления и административная панель ========== */

.notice-link {
  position: relative;
  color: var(--color-text-muted, #a2a2ad);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.notice-count {
  display: none;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--color-accent, #c9a227);
  color: #1b1b1f;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.notice-count.is-shown {
  display: inline-block;
}

.notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--color-line-soft, #26262c);
  border-radius: var(--radius-md, 12px);
  background: var(--color-surface, #1b1b1f);
}

.notice--unread {
  border-color: var(--color-accent, #c9a227);
  background: var(--color-accent-soft, rgba(201, 162, 39, 0.08));
}

.notice__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.notice__actions {
  display: flex;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.admin-tab {
  padding: 9px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text-muted, #a2a2ad);
  background: var(--color-surface, #1b1b1f);
  border: 1px solid var(--color-line-soft, #26262c);
  border-radius: var(--radius-md, 12px);
}

.admin-tab.is-active {
  color: var(--color-accent, #c9a227);
  border-color: var(--color-accent, #c9a227);
}

.admin-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

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

.admin-appointment {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-card__badges,
.admin-card__actions,
.admin-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-inline-form {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-line-soft, #26262c);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.admin-form-box {
  margin-bottom: 16px;
}

.admin-h {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted, #a2a2ad);
}

.admin-details {
  margin-top: 10px;
}

.admin-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-accent, #c9a227);
}

.badge--warn {
  background: rgba(201, 162, 39, 0.2);
  color: #e7c65c;
}

/* Кнопка входа через «Яндекс». Оформление по гайдлайну сервиса: белый фон,
   чёрный текст, фирменный знак красного цвета, скруглённые углы и отступы
   вокруг знака. Знак — буква «Я» в красном круге (без искажений пропорций). */
.btn-yandex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 360px;
  padding: 10px 18px;
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.btn-yandex:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.btn-yandex__logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
}

/* Разделитель «или» между входом по паролю и входом через «Яндекс». */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  margin: 4px 0;
  color: var(--color-text-muted, #a2a2ad);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-line-soft, rgba(255, 255, 255, 0.12));
}

/* Поля форм админки. Класс .field — обычная подпись+поле; класс .option
   (карточки услуг/мастеров) скрывает свой input по правилам стиля ниже. */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field .input,
.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  color: var(--color-text, #f2f2f5);
  background: var(--color-surface-2, #232329);
  margin-top: 2px;
}

.schedule-editor {
  display: grid;
  gap: 6px;
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.schedule-row__day {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 90px;
  font-weight: 600;
}

.schedule-row__day input[type='checkbox'] {
  position: static;
  opacity: 1;
  pointer-events: auto;
  width: auto;
}

.schedule-row .input--sm,
.schedule-row input[type='time'] {
  width: auto;
}

/* Плашка о демонстрационных данных: видна на любой странице, под контентом. */
.demo-note {
  max-width: 1120px;
  margin: 24px auto 32px;
  padding: 0 20px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.55));
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}