/* Глобальные стили и цветовая тема приложения */

:root {
  --grad: linear-gradient(125deg, #16b3c6 0%, #1f78c0 100%);
  --teal: #16b3c6;
  --accent: #1f78c0;
  --accent-text: #ffffff;
  --teal-soft: rgba(22, 179, 198, 0.12);
  --accent-soft: rgba(31, 120, 192, 0.10);
  --bg: #eef1f4;
  --card-bg: #ffffff;
  --text-h: #1b2a33;
  --text: #5a6672;
  --text-muted: #8a95a0;
  --ok: #2e9e5b;
  --ok-soft: #e4f4ea;
  --warn: #d99a2b;
  --warn-soft: #fbefd6;
  --bad: #d85a5a;
  --bad-soft: #fbe4e4;
  --border: #e6eaee;
  --shadow: 0 2px 10px rgba(27, 42, 51, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px calc(92px + env(safe-area-inset-bottom, 0));
  box-sizing: border-box;
}

/* --- Header --- */
.app__header {
  display: flex;
  align-items: center;
  padding: 14px 0;
  margin-bottom: 16px;
}

.app__back {
  margin-right: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent-text);
  background: var(--grad);
  border-radius: 11px;
}

.brand__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-h);
  line-height: 1.2;
}

.brand__sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.2;
}

.screen__heading {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 700;
  color: var(--text-h);
}

/* --- Bottom nav --- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 10;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
}

.bottom-nav__item--active {
  color: var(--accent);
}

.bottom-nav__icon {
  font-size: 20px;
  line-height: 1;
}

/* --- Home --- */
.hero {
  background: var(--grad);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.hero__text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

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

.badge {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  white-space: nowrap;
}

.home__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.home__section-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform 0.15s ease;
}

.service-list__item:hover {
  transform: translateY(-1px);
}

.service-list__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
  background: var(--teal-soft);
  border-radius: 10px;
}

.service-list__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.service-list__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-h);
}

.service-list__sub {
  font-size: 12px;
  color: var(--text-muted);
}

.service-list__chevron {
  font-size: 22px;
  color: var(--text-muted);
  line-height: 1;
}

/* --- Action card --- */
.action-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 14px;
  min-height: 116px;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 42, 51, 0.10);
}

.action-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.action-card__tile {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1;
  border-radius: 11px;
}

.action-card__tile--teal { background: var(--teal-soft); }
.action-card__tile--blue { background: var(--accent-soft); }
.action-card__tile--coral { background: rgba(216, 90, 90, 0.12); }
.action-card__tile--green { background: var(--ok-soft); }

.action-card__badge {
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: var(--grad);
  border-radius: 999px;
  white-space: nowrap;
}

.action-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-h);
}

.action-card__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --- Catalog --- */
.catalog__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .catalog__list {
    grid-template-columns: 1fr 1fr;
  }
}

.catalog__search {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 18px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-h);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
}

.catalog__search:focus {
  border-color: var(--accent);
}

.catalog__empty {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

.catalog__group {
  margin-bottom: 22px;
}

.catalog__category {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.catalog__note {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-card__name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-h);
}

.service-card__description {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.service-card__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.service-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.service-card__unit {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

/* --- Shared CTAs --- */
.catalog__cta,
.booking__submit,
.picker__cta,
.info__cta,
.profile__cta,
.decode__cta,
.decode__upload {
  background: var(--grad);
  color: var(--accent-text);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.catalog__cta:hover,
.booking__submit:hover:not(:disabled),
.picker__cta:hover:not(:disabled),
.info__cta:hover,
.profile__cta:hover,
.decode__cta:hover:not(:disabled),
.decode__upload:hover {
  filter: brightness(0.95);
}

.catalog__cta {
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 16px;
}

/* --- Booking --- */
.booking__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.booking__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-h);
}

.booking__input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-h);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease;
}

.booking__input:focus {
  border-color: var(--accent);
}

.booking__modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-h);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mode-btn__hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.mode-btn--active {
  border-color: var(--accent);
  background: var(--teal-soft);
}

.booking__days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.day-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 48px;
  padding: 8px 0;
  font-family: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.day-chip__dow {
  font-size: 11px;
  color: var(--text-muted);
}

.day-chip__num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-h);
}

.day-chip--active {
  background: var(--accent);
  border-color: var(--accent);
}

.day-chip--active .day-chip__dow,
.day-chip--active .day-chip__num {
  color: var(--accent-text);
}

.booking__slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 232px;
  overflow-y: auto;
  padding: 2px;
}

.slot {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-h);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.slot--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.slot--busy {
  color: var(--text-muted);
  background: var(--bg);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.6;
}

.booking__secure {
  margin: 0;
  padding: 11px 12px;
  font-size: 12px;
  color: #8a6516;
  line-height: 1.4;
  background: var(--warn-soft);
  border-radius: var(--radius-sm);
}

.booking__submit {
  padding: 13px 16px;
  font-size: 16px;
}

.booking__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking__success {
  text-align: center;
  padding-top: 32px;
}

.booking__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-text);
  background: var(--teal);
  border-radius: 50%;
}

.booking__success-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.booking__success .booking__submit {
  width: 100%;
  margin-top: 8px;
}

.booking__address {
  margin: 0 auto 16px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-h);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.booking__success-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.booking__ghost {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  color: var(--accent);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.booking__ghost:hover {
  border-color: var(--accent);
}

.booking__anon {
  margin-bottom: 16px;
  padding: 11px 12px;
  font-size: 12px;
  color: var(--text);
  background: var(--teal-soft);
  border-radius: var(--radius-sm);
}

/* --- Profile --- */
.profile__section {
  margin: 22px 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.profile__empty {
  padding: 22px 16px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.profile__empty-text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text);
}

.profile__cta {
  padding: 11px 18px;
  font-size: 15px;
}

.profile__requests {
  display: flex;
  flex-direction: column;
}

.req,
.history__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.req__icon,
.history__icon {
  font-size: 20px;
  line-height: 1;
}

.req__info,
.history__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.req__title,
.history__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-h);
}

.req__meta,
.history__date {
  font-size: 12px;
  color: var(--text-muted);
}

.req__status {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--teal-soft);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.req__delete {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.req__delete:hover {
  color: var(--bad);
  background: var(--bad-soft);
}

.profile__clear {
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bad);
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.profile__clear:hover {
  background: var(--bad-soft);
  border-color: var(--bad);
}

.history__status--done {
  color: #1b7a43;
  background: #e3f3e9;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 150px;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.chart__value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-h);
  margin-bottom: 4px;
}

.chart__bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chart__bar {
  width: 60%;
  background: var(--grad);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}

.chart__label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.profile__chart-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 6px;
  background: var(--grad);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.notice__icon {
  font-size: 20px;
  line-height: 1;
}

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

.notice__title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.notice__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Picker --- */
.picker__lead {
  margin: -8px 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.picker__progress {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.picker__progress-bar {
  height: 100%;
  background: var(--grad);
  transition: width 0.25s ease;
}

.picker__step {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--text-muted);
}

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

.picker__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.picker__option:hover {
  border-color: var(--accent);
  background: var(--teal-soft);
}

.picker__option-icon {
  font-size: 24px;
  line-height: 1;
}

.picker__option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.picker__option-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-h);
}

.picker__option-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.picker__option-arrow {
  font-size: 22px;
  color: var(--text-muted);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.plan__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.plan__item--off {
  opacity: 0.5;
}

.plan__check {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent-text);
  background: var(--teal);
  border-radius: 50%;
}

.plan__check--off {
  background: transparent;
  border: 1.5px solid var(--border);
}

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

.plan__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-h);
}

.plan__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.plan__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.plan__summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  font-size: 14px;
  color: #ffffff;
  background: var(--grad);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.plan__total {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.picker__note {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text);
}

.picker__cta {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
}

.picker__cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.picker__restart {
  width: 100%;
  margin-top: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--accent);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.picker__package {
  padding: 14px;
  margin-bottom: 16px;
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
}

.picker__package-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.picker__package-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-h);
}

.picker__package-save {
  font-size: 13px;
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-soft);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.picker__package-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

.picker__package-btn {
  width: 100%;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: var(--accent-text);
  background: var(--grad);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* --- Decode --- */
.decode__lead {
  margin: -8px 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.decode__hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.decode__recognized {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--text-h);
  background: var(--card-bg);
  border: 1.5px dashed var(--teal);
  border-radius: var(--radius);
}

.decode__recognized-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #ffffff;
  background: var(--ok);
  border-radius: 8px;
}

.decode__file {
  font-size: 12px;
  color: var(--text-muted);
}

.decode__subtitle {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.decode__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.decode__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.decode__row-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.decode__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.decode__dot--norm { background: var(--ok); }
.decode__dot--border { background: var(--warn); }
.decode__dot--low { background: var(--bad); }

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

.decode__row-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-h);
}

.decode__row-who {
  font-size: 11px;
  color: var(--text-muted);
}

.decode__row-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.decode__row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.decode__row-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-h);
}

.decode__tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.decode__tag--norm { color: var(--ok); background: var(--ok-soft); }
.decode__tag--border { color: var(--warn); background: var(--warn-soft); }
.decode__tag--low { color: var(--bad); background: var(--bad-soft); }

.decode__conclusion {
  padding: 16px;
  margin-bottom: 18px;
  background: var(--grad);
  border-radius: var(--radius);
}

.decode__conclusion .decode__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.decode__conclusion p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff;
}

.decode__cta {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
}

.decode__cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.decode__again {
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--accent);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.decode__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.decode__metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.decode__metric-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-h);
}

.decode__metric-who {
  font-weight: 400;
  color: var(--text-muted);
}

.decode__metric-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.decode__input {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-h);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease;
}

.decode__input:focus {
  border-color: var(--accent);
}

.decode__unit {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 48px;
}

.decode__file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-h);
  background: var(--card-bg);
  border: 1.5px dashed var(--teal);
  border-radius: var(--radius);
  cursor: pointer;
}

.decode__file-input {
  font-size: 12px;
  max-width: 150px;
}

.decode__file-name {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.decode__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.decode__demo {
  flex: 0 0 auto;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--accent);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.decode__actions .decode__cta {
  flex: 1;
  margin: 0;
  width: auto;
}

/* --- Info screens --- */
.info__lead {
  margin: -8px 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.checklist__check {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent-text);
  background: var(--teal);
  border-radius: 50%;
}

.checklist__text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

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

.doctor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.doctor__avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--grad);
  border-radius: 50%;
}

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

.doctor__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-h);
}

.doctor__role {
  font-size: 13px;
  color: var(--text);
}

.doctor__note {
  font-size: 12px;
  color: var(--text-muted);
}

.info__note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.info__cta {
  width: 100%;
  margin-top: 16px;
  padding: 13px 16px;
  font-size: 16px;
}

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

.review {
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.review__avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--grad);
  border-radius: 50%;
}

.review__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-h);
  flex: 1;
}

.review__stars {
  font-size: 12px;
  color: var(--warn);
}

.review__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

/* --- Knowledge --- */
.kb__lead {
  margin: -8px 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

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

.kb__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform 0.15s ease;
}

.kb__item:hover {
  transform: translateY(-1px);
}

.kb__emoji {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--teal-soft);
  border-radius: 11px;
}

.kb__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.kb__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-h);
  line-height: 1.3;
}

.kb__excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.kb__chevron {
  font-size: 22px;
  color: var(--text-muted);
}

.kb__back {
  margin: 0 0 12px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}

.kb__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.kb__para {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.kb__note {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Contacts --- */
.contacts__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contacts__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contacts__icon {
  font-size: 20px;
  line-height: 1;
}

.contacts__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contacts__value {
  font-size: 14px;
  color: var(--text-h);
  line-height: 1.4;
}

.contacts__value--muted {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.contacts__ghost {
  width: 100%;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--accent);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.contacts__ghost:hover {
  border-color: var(--accent);
}

.contacts__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.contacts__chip {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  text-decoration: none;
}

.contacts .info__cta {
  margin-top: 0;
}

/* --- Consent --- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 16px;
  cursor: pointer;
}

.consent__input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.consent__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.consent__link {
  color: var(--accent);
}

/* --- Booking extras --- */
.booking__error {
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--bad);
  background: var(--bad-soft);
  border-radius: var(--radius-sm);
}

.booking__notify {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ok);
  text-align: center;
}

/* --- Calculator --- */
.calculator .calc__lead,
.calc__note {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.calc__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calc__total-label {
  font-size: 14px;
  color: var(--text-muted);
}

.calc__total-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-h);
}

.calc__group {
  margin-bottom: 16px;
}

.calc__category {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-h);
}

.calc__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.calc__item--on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.calc__check {
  margin-top: 2px;
  accent-color: var(--accent);
}

.calc__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-h);
}

.calc__price {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

/* --- Share --- */
.home__share {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.home__share:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.review__date {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: 8px;
}

/* --- Dark theme (Telegram) --- */
.theme-dark {
  color-scheme: dark;
}

.theme-dark .hero,
.theme-dark .action-card__tile,
.theme-dark .brand__logo {
  /* keep brand gradient */
}

.theme-dark .service-list__item,
.theme-dark .calc__item,
.theme-dark .booking__input,
.theme-dark .catalog__search {
  border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .bottom-nav {
  background: var(--card-bg);
  border-top-color: rgba(255, 255, 255, 0.08);
}
