/* ---- Design tokens: "Роса" — light eco/sage direction (see design_handoff_terapio_rosa) ---- */
:root {
  --bg: #e4e8e0;               /* sage mist page background */
  --bg-tint: #eef2ea;          /* neutral inactive plate (tabs bg, role-switch track) */
  --tint-2: #f1f4ee;           /* secondary neutral plate */
  --card: #ffffff;
  --cream: #f6f8f3;            /* warm secondary surface (search fields, secondary cards) */
  --ink: #1f2a22;              /* heading / title text */
  --text: #36433a;             /* body text */
  --muted: #6f7363;            /* secondary text */
  --faint: #9aa18e;            /* labels, least emphasis */
  --disabled-day: #b9c3b0;
  --accent: #35563a;           /* primary green — CTA / active states */
  --accent-deep: #2a4630;      /* hover / pressed shade of primary */
  --accent-bright: #4f7a45;    /* small accents: "available" dot, "↻ weekly" label */
  --accent-soft: #eef2ea;      /* soft fill for selected/active backgrounds */
  --accent-ink: #f4f6f1;       /* text on primary green */
  --divider: #cdd6c6;          /* 2px divider under a card header */
  --line: #e1e7dd;
  --danger: #c2533f;
  --danger-soft: #fbeae6;
  --warn: #c2a24a;
  --warn-soft: #f8f1de;
  --clay: #c2876a;             /* warm human accent — capacity badges, vacations */
  --clay-soft: #f3e7df;
  --ok: #4f7a45;
  --ok-soft: #eaf2e6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 30px 60px -38px rgba(31, 42, 34, .5);
  --shadow-sm: 0 1px 2px rgba(31, 42, 34, .05);
  --shadow-dropdown: 0 16px 36px -14px rgba(31, 42, 34, .42);
  --shadow-pill: 0 1px 4px rgba(31, 42, 34, .18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  font-feature-settings: "tnum" 1; /* tabular figures for aligned times & money */
}
/* Headings, logo, and numbers (prices/stats/calendar days) use Space Grotesk. */
.brand, h1, h2, h3, .hero-title, .kpi, .price-big, .cal-cell .d, .cal-title {
  font-family: "Space Grotesk", "Hanken Grotesk", sans-serif;
}
/* Meta labels / codes / uppercase tags use Space Mono, tracked. (Excludes
   .check/.uploadbtn — those reuse <label> as a button/switch row, not a caption.) */
label:not(.check):not(.uploadbtn), .mono, .file-card-code, .ff-label {
  font-family: "Space Mono", ui-monospace, monospace;
}

/* ---- top bar ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.brand { font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand img { border-radius: 7px; display: block; }
.hero-logo { width: 72px; height: 72px; border-radius: 18px; display: block; margin: 0 auto 14px; box-shadow: var(--shadow); }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.app { max-width: 920px; margin: 0 auto; padding: 18px 16px 60px; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; }

h1 { font-size: 25px; margin: 6px 2px 16px; letter-spacing: -0.01em; font-weight: 600; color: var(--ink); }
h2 { font-size: 16px; margin: 0 0 12px; letter-spacing: -0.005em; font-weight: 600; color: var(--ink); }
/* Sage accent bar on card titles — adds colour + structure so sections read. */
.card > h2:first-child { position: relative; padding-left: 13px; }
.card > h2:first-child::before {
  content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 4px;
  border-radius: 3px; background: var(--accent-bright);
}
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; color: var(--ink); }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
a { color: var(--accent); }

/* ---- cards & bento ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.bento .card { margin: 0; height: 100%; }
.bento-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.bento-3 .card { margin: 0; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
/* Stat tiles. */
.tile-green { background: var(--ok-soft); border-color: #dde9d8; }
.tile-cream { background: var(--clay-soft); border-color: #e7d6c8; }
.tile-tint { background: var(--bg-tint); }
.tile-green .kpi, .tile-cream .kpi, .tile-dark .kpi { font-size: 30px; line-height: 1.05; }
.tile-green .kpi { color: var(--accent); }
.tile-cream .kpi { color: #8a5a3e; }
/* Dark primary stat (e.g. "N встреч сегодня") — Today's headline tile. */
.tile-dark { background: linear-gradient(155deg, #2f5a3e 0%, var(--accent) 100%); border-color: #2a4a32; color: var(--accent-ink); }
.tile-dark .kpi { color: var(--accent-ink); }
.tile-dark .small { color: rgba(244, 246, 241, .8); }
@media (max-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .col-3, .col-4 { grid-column: span 2; }
  .bento-3 { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .bento { grid-template-columns: 1fr; }
  .col-2, .col-3, .col-4 { grid-column: span 1; }
}

/* ---- buttons ---- */
button, .btn {
  font: inherit; font-weight: 600; letter-spacing: -0.005em;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 1px 1.5px rgba(31, 42, 34, .12);
  transition: transform .1s ease, filter .15s, background .15s;
}
button:hover { filter: brightness(1.06); }
button:active { transform: scale(.98); }
button.ghost, .btn.ghost { background: transparent; color: var(--accent); box-shadow: none; }
button.ghost:hover { background: var(--accent-soft); filter: none; }
button.subtle { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
button.subtle:hover { background: #dde7d6; filter: none; }
button.neutral { background: var(--tint-2); color: var(--ink); box-shadow: none; }
button.danger { background: var(--danger-soft); color: var(--danger); box-shadow: none; }
button.danger:hover { background: #f6dcd4; filter: none; }
button.small { padding: 7px 14px; font-size: 13px; }
button.icon { padding: 7px 10px; }
button:disabled { opacity: .45; cursor: default; transform: none; filter: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row.full { flex-wrap: nowrap; }
.btn-row.full button { flex: 1 1 0; }

/* ---- forms ---- */
/* :not(.check):not(.uploadbtn) — those reuse <label> as an interactive control
   (switch row / file-picker button), not a field caption; they keep button/
   row styling instead of the uppercase Space Mono field-label treatment. */
label:not(.check):not(.uploadbtn) { display: block; font-size: 11px; color: var(--faint); margin: 14px 0 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
input, textarea, select {
  width: 100%; min-width: 0; font: "Hanken Grotesk", inherit;
  padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
/* iOS renders time/number inputs with an intrinsic width that overflows flex
   columns — normalise them so they shrink to their box. (Not checkboxes/radios.) */
input[type="time"], input[type="date"], input[type="datetime-local"], input[type="number"] {
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 120px; min-width: 0; }

/* ---- page header: "Мой кабинет" + subtitle + mode switcher ---- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 2px 18px; }
.page-head h1 { margin: 0 0 4px; }
.page-sub { color: var(--muted); font-size: 13.5px; margin: 0; }
.manual-link { display: inline-block; margin-top: 5px; font-size: 12.5px; }

/* ---- desktop nav: underline tabs (wraps to 2 rows if needed) ---- */
.tabs-desktop { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs-desktop button {
  background: none; border: none; box-shadow: none; padding: 10px 1px 11px;
  font-weight: 600; font-size: 14.5px; color: var(--faint);
  border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px;
}
.tabs-desktop button:hover { color: var(--ink); filter: none; transform: none; }
.tabs-desktop button.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---- mobile nav: fixed bottom bar + "Ещё" popover ---- */
.tabbar { display: none; }
.tabbar-more-pop { display: none; }
@media (max-width: 720px) {
  .tabs-desktop { display: none; }
  .app { padding-bottom: 86px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.3) blur(10px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around;
  }
  .tabbar-more-pop {
    display: flex; flex-direction: column; gap: 2px;
    position: fixed; left: 12px; right: 12px; bottom: 74px; z-index: 41;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow-dropdown);
    padding: 6px; border: 1px solid var(--line);
  }
}
.tabbar-item {
  background: none; border: none; box-shadow: none; display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding: 6px 4px; color: var(--faint); font-size: 9.5px; font-weight: 600;
  letter-spacing: .01em; min-width: 54px; transform: none;
}
.tabbar-item svg { width: 21px; height: 21px; }
.tabbar-item.active { color: var(--accent); }
.tabbar-more-item {
  background: none; border: none; box-shadow: none; display: flex; flex-direction: row;
  align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink); font-size: 14px; font-weight: 500; transform: none;
}
.tabbar-more-item svg { width: 19px; height: 19px; color: var(--faint); }
.tabbar-more-item:hover { background: var(--bg-tint); filter: none; }
.tabbar-more-item.active { color: var(--accent); }
.tabbar-more-item.active svg { color: var(--accent); }

/* Settings-row label with an iOS switch on the right. */
.check {
  display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 14px; font-size: 14px; color: var(--ink); cursor: pointer; line-height: 1.4;
}
.check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; position: relative;
  width: 46px; height: 28px; border-radius: 999px; padding: 0;
  background: #d3dbd7; border: none; box-shadow: none; cursor: pointer;
  transition: background .2s ease;
}
.check input[type="checkbox"]::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s cubic-bezier(.2, .7, .3, 1);
}
.check input[type="checkbox"]:checked { background: var(--accent); }
.check input[type="checkbox"]:checked::after { transform: translateX(18px); }
.check input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---- lists: inset-grouped rows ---- */
.list { list-style: none; padding: 0; margin: 0; }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 2px; min-height: 44px; border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: none; }
.item .meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.item .meta b { font-weight: 600; }

/* ---- badges / chips ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 2px 9px; border-radius: 999px;
  background: var(--bg-tint); color: var(--muted); font-weight: 500;
}
.badge.ok { background: var(--ok-soft); color: var(--accent); }
.badge.warn { background: var(--warn-soft); color: #8a6b1e; }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---- avatar ---- */
.avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; flex: none; overflow: hidden;
}
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }

/* ---- stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--bg-tint); border-radius: var(--radius-sm); padding: 12px; }
.stat b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.stat .small { color: var(--muted); }
.kpi { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

/* ---- notice ---- */
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-size: 14px; margin: 0 0 12px; white-space: pre-line; }
.notice.warn { background: var(--warn-soft); color: #8a6b1e; }

/* ---- calendar ---- */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-weight: 600; font-size: 15px; text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { background: var(--bg-tint); color: var(--ink); border-color: transparent; padding: 6px 12px; box-shadow: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 11px; color: var(--faint); font-weight: 600; padding-bottom: 2px; text-transform: uppercase; letter-spacing: .03em; }
.cal-cell {
  aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; padding: 5px 6px; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; position: relative;
  transition: border-color .12s, background .12s;
}
.cal-cell:hover { border-color: var(--accent); }
.cal-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
/* Selected day: solid primary green, per the Rosa booking calendar. */
.cal-cell.sel { background: var(--accent); border-color: var(--accent); }
.cal-cell.sel .d { color: var(--accent-ink); }
.cal-cell.has { background: var(--accent-soft); }
.cal-cell.vac { background: var(--warn-soft); }
.cal-cell.vac.has { background: repeating-linear-gradient(135deg, var(--warn-soft), var(--warn-soft) 6px, var(--accent-soft) 6px, var(--accent-soft) 12px); }
.cal-vac { position: absolute; bottom: 3px; right: 4px; font-size: 11px; line-height: 1; }
.cal-cell .d { font-size: 13px; font-weight: 600; color: var(--ink); }
.cal-cell.muted-day .d, .cal-cell.off .d { color: var(--disabled-day); }
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; }
.cal-dot.available { background: var(--accent-bright); }
.cal-dot.booked { background: var(--warn); }
.cal-dot.blocked { background: var(--faint); }
.cal-dot.attended { background: var(--accent-bright); }
.cal-dot.no_show { background: var(--danger); }
.cal-dot.cancelled { background: var(--faint); }
.cal-dot.upcoming { background: #6cb6f5; }
.cal-dot.m-online { background: #6cb6f5; }
.cal-dot.m-inperson { background: var(--clay); }
.cal-cnt { position: absolute; top: 4px; right: 6px; font-size: 10px; color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---- misc ---- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--accent-ink); padding: 11px 18px; border-radius: var(--radius-sm);
  font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 200; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.linkbox { display: flex; gap: 8px; margin-top: 12px; }
.linkbox input { font-size: 12px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.back { background: none; border: none; color: var(--accent); padding: 0; font-weight: 500; cursor: pointer; margin-bottom: 10px; box-shadow: none; }
.filechip { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-tint); border-radius: 999px; padding: 6px 12px; font-size: 13px; margin: 4px 6px 0 0; }
.filechip a { text-decoration: none; font-weight: 500; }
.empty-state { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty-state .em {
  font-size: 30px; line-height: 1; margin: 0 auto 12px;
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--divider);
}
.head-row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad-list > * { margin-bottom: 8px; }
.uploadbtn { position: relative; overflow: hidden; display: inline-block; }
.uploadbtn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.modal-ov { position: fixed; inset: 0; background: rgba(20, 28, 22, .42); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 16px; }
.modal {
  position: relative; background: var(--card); border-radius: 22px; padding: 22px 18px 18px;
  max-width: 420px; width: 100%; box-shadow: var(--shadow);
  animation: sheet .25s cubic-bezier(.2, .7, .3, 1);
}
.modal::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 5px; border-radius: 3px; background: var(--divider);
}
.modal h3 { margin: 6px 0 12px; }
@keyframes sheet { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
/* Pill mode switcher (client/therapist) — lives in the page header. */
.roleswitch { display: inline-flex; background: var(--bg-tint); border-radius: 999px; padding: 3px; gap: 2px; }
.roleswitch button { background: transparent; border: none; color: var(--muted); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: none; }
.roleswitch button.active { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-pill); }
@media (max-width: 560px) { .roleswitch button { padding: 5px 10px; font-size: 12px; } .userbox .ellipsis { display: none; } }

.notice.clay { background: var(--clay-soft); color: #8a4f2e; }

/* ---- banners: consequential feedback (success/error/info) ---- */
.banner {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 16px; font-size: 14px; margin: 0 0 14px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid #dde7d6;
}
.banner.err { background: var(--danger-soft); color: var(--danger); border-color: #f0d2cb; }
.banner.info { background: var(--bg-tint); color: var(--ink); border-color: var(--line); }
.banner-i {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink);
}
.banner.err .banner-i { background: var(--danger); }
.banner.info .banner-i { background: var(--ink); }
.banner .grow { color: inherit; }
.banner-x {
  background: rgba(31, 42, 34, .06); border: none; color: inherit; opacity: .55;
  width: 24px; height: 24px; border-radius: 50%; padding: 0; cursor: pointer;
  font-size: 13px; box-shadow: none; display: grid; place-items: center; flex: 0 0 auto;
}
.banner-x:hover { opacity: .9; filter: none; }
.banner.flash { animation: bnr .3s cubic-bezier(.2, .7, .3, 1); }
@keyframes bnr { from { opacity: 0; transform: translateY(-6px) scale(.99); } to { opacity: 1; transform: none; } }

/* ---- skeleton loaders ---- */
.skel { height: 14px; border-radius: 7px; margin: 10px 0; background: linear-gradient(90deg, var(--accent-soft) 25%, var(--cream) 37%, var(--accent-soft) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---- slot time chips (open-window picker) ---- */
.slotchips { display: flex; flex-wrap: wrap; gap: 8px; }
.slotchip {
  font-size: 13px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; box-shadow: none;
}
.slotchip:hover { border-color: var(--accent); filter: none; }
.slotchip.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slotchip.taken {
  background: var(--tint-2); color: var(--faint); cursor: default; border: 1px dashed var(--line);
  text-decoration: line-through; text-decoration-thickness: 1px;
}

/* ---- option cards (booking: session type / format) ---- */
.optgroup { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.opt {
  flex: 1 1 140px; text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: none; color: var(--ink); transform: none;
}
.opt b { display: block; font-size: 13.5px; font-weight: 600; }
.opt span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.opt.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opt.sel span { color: rgba(244, 246, 241, .8); }
.opt:hover:not(.sel) { border-color: var(--accent); filter: none; }

/* ---- big Space Grotesk price display (booking flow) ---- */
.price-line { display: flex; align-items: baseline; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.price-big { font-size: 27px; font-weight: 700; color: var(--ink); }
.price-line .unit { font-size: 13px; color: var(--muted); }

/* ---- logged-out hero / value prop ---- */
.hero { position: relative; max-width: 620px; margin: 28px auto 6px; text-align: center; padding: 0 8px; }
.hero-title { font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 12px; }
.hero-sub { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0 auto 18px; max-width: 540px; }
.value-list { list-style: none; padding: 0; margin: 0 auto 16px; text-align: left; max-width: 540px; display: grid; gap: 10px; }
.value-list li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent-bright); border-radius: var(--radius-sm); padding: 12px 14px 12px 16px; box-shadow: var(--shadow-sm); }
.value-list b { display: block; font-size: 14.5px; margin-bottom: 2px; color: var(--accent); }
.value-list span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.hero-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero-links a { text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.hero-illustration { display: block; width: min(440px, 88%); height: auto; margin: 26px auto 2px; }

/* ---- картотека: client file-card catalog ---- */
.filebox-search { position: relative; margin-bottom: 14px; }
.filebox-search input { padding-left: 38px; }
.filebox-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.filebox-tabs { display: flex; gap: 2px; margin-bottom: 14px; overflow-x: auto; }
.filebox-tabs button {
  background: var(--tint-2); color: var(--muted); border: 1px solid var(--line); border-bottom: none;
  border-radius: 7px 7px 0 0; padding: 7px 14px; font-size: 13px; font-weight: 600; box-shadow: none;
  flex: 0 0 auto; transform: none;
}
.filebox-tabs button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.file-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin: 0 6px 18px 0;
}
.file-card::before {
  content: ""; position: absolute; inset: 6px -6px -6px 6px; z-index: -1;
  background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.file-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.file-card-head b { font-size: 16px; }
.file-card-code { font-size: 11px; letter-spacing: .06em; color: var(--faint); text-transform: uppercase; }
.file-card-divider { height: 2px; background: var(--divider); margin: 10px 0 12px; }
.ff-row { display: flex; gap: 10px; font-size: 13px; padding: 3px 0; }
.ff-label { font-size: 11px; letter-spacing: .05em; color: var(--faint); text-transform: uppercase; width: 130px; flex: 0 0 auto; margin: 0; }
.ff-val { color: var(--ink); font-weight: 500; }
.file-card-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }

/* ---- a11y: visible focus + validation + reduced motion ---- */
input.input-err, textarea.input-err, select.input-err { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:focus-visible, .slotchip:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
