@font-face {
  font-family: "PsyOs Serif";
  src: url("fonts/LiberationSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PsyOs Serif";
  src: url("fonts/LiberationSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
/* Принятое направление A, candidate-v2. Только статический preview. */
:root {
  --ux-canvas: #f1f0e8;
  --ux-profile: #dfe7da;
  --ux-surface: #f8f8f3;
  --ux-ink: #263a32;
  --ux-muted: #526459;
  --ux-border: #b9c9ba;
  --ux-accent: #355b4e;
  --ux-accent-hover: #294c40;
  --ux-focus: #a85524;
  --ux-info: #e8f0e5;
  --ux-error: #8b392e;
  --ux-warning: #815515;
}

.concept-a {
  background: var(--ux-canvas);
  color: var(--ux-ink);
}
.concept-a .a-profile {
  background: var(--ux-profile);
  border-color: var(--ux-border);
}
.concept-a .a-profile-top {
  min-height: 46px;
}
.concept-a .a-kicker {
  color: var(--ux-muted);
}
.concept-a .a-portrait {
  width: 128px;
  height: 128px;
  margin: 0 auto 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #91a794;
  outline: 7px solid #e7eee3;
  background: #c9d9c7;
  color: #466153;
  font:
    italic 17px "PsyOs Serif",
    Georgia,
    "Times New Roman",
    serif;
}
.concept-a .a-overline {
  display: none;
}
.concept-a .a-about {
  display: none;
}
.concept-a .a-date-column {
  min-width: 0;
}
.concept-a .a-calendar-link,
.a-link-button {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ux-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.concept-a .a-calendar-link {
  margin-top: 6px;
}
.concept-a .a-calendar-link span {
  display: inline-block;
  padding-left: 6px;
  text-decoration: none;
}
.concept-a .a-day {
  min-height: 62px;
}
.concept-a .a-day-copy small {
  color: var(--ux-muted);
}
.concept-a .a-primary,
.a-primary,
.a-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.concept-a .a-primary,
.a-primary {
  border: 1px solid var(--ux-accent);
  background: var(--ux-accent);
  color: #fff;
}
.concept-a .a-primary:hover:not(:disabled),
.a-primary:hover:not(:disabled) {
  background: var(--ux-accent-hover);
}
.a-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.a-secondary {
  border: 1px solid var(--ux-accent);
  background: transparent;
  color: var(--ux-accent);
}
.a-secondary:hover {
  background: var(--ux-info);
}
.a-continue {
  margin-top: 18px;
  width: 100%;
}
.concept-a :is(button, a, input, select, summary):focus-visible,
.a-calendar-dialog button:focus-visible {
  outline-color: var(--ux-focus);
}
.a-calendar-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(740px, calc(100dvh - 24px));
  max-width: none;
  padding: 28px;
  color: var(--ux-ink);
  background: var(--ux-surface);
  border: 1px solid var(--ux-border);
  border-radius: 12px;
  box-shadow: 0 24px 72px #14251f55;
}
.a-calendar-dialog::backdrop {
  background: #18251fcc;
}
.a-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ux-border);
  margin-bottom: 20px;
}
.a-dialog-head h2 {
  font:
    400 33px/1.1 "PsyOs Serif",
    Georgia,
    "Times New Roman",
    serif;
  margin: 4px 0 0;
}
.a-section-index {
  color: var(--ux-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin: 0;
}
.a-dialog-head button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--ux-border);
  background: transparent;
  border-radius: 50%;
  color: var(--ux-ink);
  font-size: 25px;
  line-height: 1;
}
.a-calendar-dialog .b-calendar-head {
  margin: 0 0 16px;
}
.a-calendar-dialog .calendar-day[data-day] {
  color: var(--ux-accent);
}
.a-calendar-dialog .calendar-day[data-day]::after {
  background: var(--ux-accent);
}
.a-calendar-dialog .calendar-day[aria-pressed="true"] {
  color: #fff;
  background: var(--ux-accent);
}
.a-calendar-dialog .calendar-day[aria-pressed="true"]::after {
  background: #fff;
}
.a-calendar-dialog .calendar-day:disabled {
  color: #73847a;
}
.modal-open {
  overflow: hidden;
}
.a-contact h2,
.a-success h2 {
  font:
    400 clamp(39px, 4vw, 57px)/1.07 "PsyOs Serif",
    Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.035em;
  margin: 20px 0 14px;
}
.a-text-back {
  display: block;
  min-height: 44px;
  margin: 0 0 28px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ux-accent);
  font-size: 14px;
  font-weight: 650;
}
.a-contact form {
  margin-top: 30px;
}
.a-field-label,
.a-channel-set legend {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.a-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #8ca492;
  border-radius: 5px;
  background: var(--ux-surface);
  color: var(--ux-ink);
  font-size: 15px;
}
.a-input::placeholder {
  color: #5b6c60;
}
.a-channel-set {
  border: 0;
  padding: 0;
  margin: 26px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.a-channel-set legend {
  margin-bottom: 11px;
}
.a-channel-set label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--ux-border);
  border-radius: 5px;
  background: var(--ux-surface);
  font-size: 13px;
  cursor: pointer;
}
.a-channel-set label:has(input:checked) {
  background: var(--ux-info);
  border-color: var(--ux-accent);
  color: var(--ux-accent);
}
.a-channel-set input {
  accent-color: var(--ux-accent);
}
.a-field-help,
.a-inline-state {
  color: var(--ux-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 8px 0;
}
.a-inline-state {
  color: var(--ux-accent);
  font-weight: 700;
}
.a-form-error {
  padding: 11px 13px;
  border-left: 3px solid var(--ux-error);
  background: #f7eae5;
  color: var(--ux-error);
  font-size: 13px;
}
.a-review {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 28px 0 23px;
  padding: 20px 22px;
  background: var(--ux-profile);
  border-left: 3px solid var(--ux-accent);
}
.a-review strong {
  font:
    400 25px/1.25 "PsyOs Serif",
    Georgia,
    "Times New Roman",
    serif;
}
.a-review span,
.a-review small {
  font-size: 13px;
  color: var(--ux-muted);
}
.a-review-label {
  margin: 0 0 4px;
  color: var(--ux-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.a-submit {
  min-width: 200px;
}
.a-success-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-top: 28px;
  border-radius: 50%;
  background: var(--ux-accent);
  color: #fff;
  font-size: 27px;
}
.a-success > p:not(.a-section-index) {
  font-size: 16px;
  line-height: 1.5;
}
.a-info {
  padding: 14px 17px;
  background: var(--ux-info);
  border-left: 3px solid var(--ux-accent);
  color: var(--ux-ink);
  font-size: 13px !important;
}
.a-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.a-personal-badge {
  color: var(--ux-accent);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 22px;
}
.personal-mode .a-contact :is(#client-name, .a-field-label, .a-channel-set, .a-channel-field) {
  display: none;
}
.personal-mode .a-contact form {
  margin-top: 0;
}
.personal-mode .a-contact .a-review span,
.personal-mode .a-success .a-review span {
  color: var(--ux-muted);
}

@media (max-width: 700px) {
  .concept-a .a-profile {
    padding-top: 11px;
    padding-bottom: 18px;
  }
  .concept-a .a-profile-top {
    display: block;
    min-height: 0;
    margin-bottom: 9px;
  }
  .concept-a .a-kicker {
    font-size: 9px;
    letter-spacing: 0.17em;
  }
  .concept-a .a-profile-copy {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 0 15px;
    align-items: center;
  }
  .concept-a .a-portrait {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 64px;
    height: 64px;
    margin: 0;
    outline-width: 3px;
    font-size: 12px;
  }
  .concept-a .a-profile h1 {
    grid-column: 2;
    grid-row: 1;
    font-size: clamp(23px, 6vw, 30px);
  }
  .concept-a .a-title {
    grid-column: 2;
    grid-row: 2;
    margin: 3px 0 0;
    font-size: 16px;
  }
  .concept-a .a-description {
    display: none;
  }
  .concept-a .a-about {
    display: block;
    grid-column: 1 / -1;
    margin-top: 17px;
    border-top: 1px solid var(--ux-border);
    padding-top: 6px;
  }
  .concept-a .a-about summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ux-accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .concept-a .a-about summary::-webkit-details-marker {
    display: none;
  }
  .concept-a .a-about summary::after {
    content: "+";
    font-size: 21px;
    font-weight: 400;
  }
  .concept-a .a-about[open] summary::after {
    content: "−";
  }
  .concept-a .a-about p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 10px;
  }
  .concept-a .a-days {
    padding-bottom: 8px;
  }
  .concept-a .a-calendar-link {
    margin-top: 1px;
  }
  .a-calendar-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 16px);
    padding: 19px 15px;
  }
  .a-calendar-dialog .calendar-day,
  .a-calendar-dialog .calendar-blank {
    min-height: 44px;
  }
  .a-contact h2,
  .a-success h2 {
    font-size: 35px;
  }
  .a-contact form {
    margin-top: 24px;
  }
  .a-review {
    margin: 20px 0;
    padding: 16px;
  }
  .a-submit,
  .a-success-actions > * {
    width: 100%;
  }
}
@media (max-width: 370px) {
  .concept-a .a-profile h1 {
    font-size: 23px;
  }
  .a-calendar-dialog .calendar-day,
  .a-calendar-dialog .calendar-blank {
    min-height: 40px;
  }
}

/* Панель перехода между демо-экранами не входит в будущий интерфейс. */
.previewbar-full {
  gap: 16px;
  padding-inline: 20px;
}
.previewbar-full .preview-home {
  font-size: 13px;
}
.preview-links {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.preview-links::-webkit-scrollbar {
  display: none;
}
.preview-links a {
  flex: none;
  padding: 9px 10px;
  border-radius: 5px;
  color: #d1dbd5;
  font-size: 12px;
  white-space: nowrap;
}
.preview-links a[aria-current] {
  background: #e9eee6;
  color: #203c30;
}
.preview-theme {
  min-height: 38px;
  flex: none;
  border: 1px solid #8da29a;
  border-radius: 5px;
  padding: 7px 11px;
  background: transparent;
  color: #f7f4ee;
  font-size: 12px;
}
.preview-theme:hover {
  background: #364942;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ux-canvas: #202b25;
  --ux-profile: #2a3b30;
  --ux-surface: #2d3c32;
  --ux-ink: #f0f4ea;
  --ux-muted: #ccd8ca;
  --ux-border: #718a76;
  --ux-accent: #b8d7bd;
  --ux-accent-hover: #d1ead3;
  --ux-focus: #efbd74;
  --ux-info: #344c3a;
  --ux-error: #ffd1c6;
  --ux-warning: #f2d09b;
}
:root[data-theme="dark"] .concept-a .a-profile,
:root[data-theme="dark"] .concept-a {
  color: var(--ux-ink);
}
:root[data-theme="dark"] .concept-a .a-portrait {
  background: #405c47;
  border-color: #98b79d;
  outline-color: #34483a;
  color: #e2ecdb;
}
:root[data-theme="dark"] .concept-a :is(.a-service, .a-day, .time-column, .a-about),
:root[data-theme="dark"] .concept-a .a-booking .a-review {
  border-color: var(--ux-border);
}
:root[data-theme="dark"] .concept-a .a-day,
:root[data-theme="dark"] .concept-a .slot,
:root[data-theme="dark"] .a-input,
:root[data-theme="dark"] .a-channel-set label {
  background: var(--ux-surface);
  color: var(--ux-ink);
  border-color: var(--ux-border);
}
:root[data-theme="dark"] .concept-a .a-day:hover,
:root[data-theme="dark"] .concept-a .slot:hover,
:root[data-theme="dark"] .a-channel-set label:has(input:checked) {
  background: #3d5543;
  color: var(--ux-ink);
}
:root[data-theme="dark"] .concept-a .a-day[aria-pressed="true"],
:root[data-theme="dark"] .concept-a .slot[aria-pressed="true"],
:root[data-theme="dark"] .a-calendar-dialog .calendar-day[aria-pressed="true"] {
  background: var(--ux-accent);
  border-color: var(--ux-accent);
  color: #20372a;
}
:root[data-theme="dark"] .concept-a .a-primary,
:root[data-theme="dark"] .a-primary {
  background: var(--ux-accent);
  border-color: var(--ux-accent);
  color: #20372a;
}
:root[data-theme="dark"] .concept-a .a-primary:hover:not(:disabled),
:root[data-theme="dark"] .a-primary:hover:not(:disabled) {
  background: var(--ux-accent-hover);
}
:root[data-theme="dark"] .a-input::placeholder {
  color: #d6dfd2;
}
:root[data-theme="dark"] .a-form-error {
  color: var(--ux-error);
  background: #583a34;
}
:root[data-theme="dark"] .a-calendar-dialog .calendar-day:disabled {
  color: #9aab9a;
}
:root[data-theme="dark"] .a-calendar-dialog .calendar-day[aria-pressed="true"]::after {
  background: #20372a;
}
:root[data-theme="dark"] .concept-a .a-step,
:root[data-theme="dark"] .concept-a .picker-overline,
:root[data-theme="dark"] .concept-a .a-title,
:root[data-theme="dark"] .concept-a .a-booking .booking-intro,
:root[data-theme="dark"] .concept-a .time-empty,
:root[data-theme="dark"] .concept-a .time-hint,
:root[data-theme="dark"] .concept-a .a-caveat,
:root[data-theme="dark"] .concept-a .a-service div span,
:root[data-theme="dark"] .concept-a .a-day-copy small,
:root[data-theme="dark"] .concept-a .selection,
:root[data-theme="dark"] .a-calendar-dialog .weekdays,
:root[data-theme="dark"] .a-calendar-dialog .time-empty {
  color: var(--ux-muted);
}
:root[data-theme="dark"] .a-calendar-dialog .month-controls button,
:root[data-theme="dark"] .a-dialog-head button {
  background: var(--ux-surface);
  color: var(--ux-ink);
  border-color: var(--ux-border);
}
@media (max-width: 700px) {
  .previewbar-full {
    padding-inline: 9px;
    gap: 7px;
  }
  .previewbar-full .preview-home {
    font-size: 11px;
  }
  .preview-links a {
    font-size: 11px;
    padding-inline: 8px;
  }
  .preview-theme {
    padding-inline: 7px;
    font-size: 11px;
  }
}

.concept-a
  :is(
    .a-profile h1,
    .a-title,
    .a-booking h2,
    .picker-heading h3,
    .a-day-number,
    .a-service-icon,
    .a-success h2,
    .a-contact h2,
    .a-review strong,
    .a-portrait
  ),
.a-calendar-dialog :is(h2, h3) {
  font-family: "PsyOs Serif", Georgia, "Times New Roman", serif;
}

.preview-page-select {
  display: none;
}
@media (max-width: 700px) {
  .previewbar-full .preview-links {
    display: none;
  }
  .previewbar-full .preview-page-select {
    display: block;
    min-width: 0;
    flex: 1;
    height: 38px;
    padding: 5px 7px;
    border: 1px solid #8da29a;
    border-radius: 5px;
    color: #f7f4ee;
    background: #1c2423;
    font-size: 12px;
  }
}
:root[data-theme="dark"] .concept-a .a-day[aria-pressed="true"] .a-day-copy small {
  color: #20372a;
}
@media (max-width: 370px) {
  .a-calendar-dialog {
    padding-inline: 11px;
  }
}
.a-service-choices {
  display: grid;
  gap: 7px;
  margin: -17px 0 29px;
}
.a-service-choices p {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
}
.a-service-choices button {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--ux-border);
  border-radius: 4px;
  background: var(--ux-surface);
  color: var(--ux-ink);
  text-align: left;
  font-size: 13px;
}
.a-service-choices button[aria-pressed="true"] {
  border: 2px solid var(--ux-accent);
}
.a-service-choices small {
  color: var(--ux-muted);
  font-size: 11px;
}
@media (max-width: 700px) {
  .a-service-choices {
    margin: -8px 0 23px;
  }
  .a-service-choices button {
    display: grid;
    gap: 3px;
  }
}
