:root {
  --forest: #2F6B4F;
  --forest-dark: #1F4A36;
  --sun: #F5B841;
  --ink: #1E2A26;
  --cream: #FBF7EE;
  --sand: #EFE6D2;
  --surface: #FFFFFF;
  --muted: #6B7A73;
  --danger: #C24A2E;
  --success: #2E6B57;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 10px 30px rgba(30, 42, 38, .09);
  --shadow-soft: 0 4px 14px rgba(30, 42, 38, .07);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-hover: cubic-bezier(.4, 0, .2, 1);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(21px, 2.2vw, 28px); }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: var(--sand); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--forest); margin: 0 0 10px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 11px 20px;
  font-weight: 600; font-size: 16px; line-height: 1; cursor: pointer;
  transition: background-color 160ms var(--ease-hover), color 160ms var(--ease-hover), transform 200ms var(--ease-hover), box-shadow 200ms var(--ease-hover);
}
.btn-primary { background: var(--sun); color: var(--ink); }
.btn-primary:hover { background: #e8a92f; color: var(--ink); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--sand); color: var(--forest-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--sand);
  background: var(--surface); cursor: pointer;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(251, 247, 238, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--ink); }
.brand.centered { justify-content: center; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--forest); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; padding: clamp(32px, 6vw, 76px) clamp(16px, 5vw, 72px);
  max-width: 1240px; margin: 0 auto;
}
.hero__text { min-width: 0; animation: riseIn 400ms var(--ease-out) both; }
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 52ch; color: #3b4a43; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 26px; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-family: var(--font-head); font-size: 22px; }
.hero__facts span { font-size: 13px; color: var(--muted); }
.hero__media { min-width: 0; animation: fadeIn 520ms var(--ease-out) both; }
.hero__media img {
  width: 100%; border-radius: 24px; box-shadow: var(--shadow);
  aspect-ratio: 16 / 10; object-fit: cover;
}

/* sections */
.section { padding: clamp(36px, 5vw, 72px) clamp(16px, 5vw, 72px); max-width: 1240px; margin: 0 auto; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 28px; }
.section-head.center { display: block; text-align: center; }
.section-head h2 { margin-bottom: 6px; }
.section-head .muted { max-width: 60ch; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field-inline { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field-inline select, .field-inline input {
  min-width: 150px; padding: 9px 12px; border: 1px solid var(--sand); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-weight: 400;
}
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.tour-card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--sand); overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform 200ms var(--ease-hover), box-shadow 200ms var(--ease-hover);
  min-width: 0;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tour-card__top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 18px 0;
}
.tour-card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sand); padding: 9px; }
.tour-card__body { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tour-card h3 { font-size: 22px; margin: 0; }
.tour-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.tour-card__price { font-family: var(--font-head); font-size: 24px; font-weight: 700; margin-top: auto; }
.tour-card__price small { font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 400; }
.tour-card__actions { display: flex; gap: 8px; margin-top: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 600; background: var(--sand); color: var(--ink);
}
.badge--new { background: var(--sun); color: var(--ink); }
.badge--work { background: #dcebe3; color: var(--forest-dark); }
.badge--ok { background: var(--forest); color: #fff; }
.badge--closed { background: var(--sand); color: #43524a; }
.badge--reject { background: #f3ddd6; color: var(--danger); }
.badge--urgent { background: var(--danger); color: #fff; }
.badge--vip { background: var(--sun); color: var(--ink); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty img { margin: 0 auto 14px; opacity: .9; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 24px; min-width: 0;
}
.feature img { margin-bottom: 12px; }
.feature h3 { font-size: 21px; margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split.reverse .split__media { order: 2; }
.split__media { min-width: 0; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 4 / 3; object-fit: cover; }
.split__text { min-width: 0; }
.check-list { display: grid; gap: 8px; margin: 14px 0 18px; }
.check-list li { display: flex; align-items: center; gap: 9px; color: #33443c; }
.avatar-row { display: flex; gap: 8px; margin: 14px 0 18px; }
.avatar-row img { border-radius: 50%; border: 2px solid var(--surface); box-shadow: var(--shadow-soft); }

/* booking */
.booking {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px);
  background: var(--sand); border-radius: 28px; padding: clamp(24px, 4vw, 48px);
  max-width: 1160px;
}
.booking__text { min-width: 0; }
.booking__note { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.65); padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.lead-form, .login-card form { background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-soft); min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #3c4b44; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d9cfb9; border-radius: 10px;
  background: #fff; color: var(--ink); font-weight: 400; font-size: 16px;
  transition: border-color 160ms var(--ease-hover), box-shadow 160ms var(--ease-hover);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47,107,79,.14); outline: none; }
.field .invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(194,74,46,.14); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 14px; font-weight: 400; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--forest); }
.form-hint { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.form-errors {
  background: #f9e7e1; border: 1px solid #e7bfb2; color: #8c2f1b;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px;
}
.form-errors ul { list-style: disc; padding-left: 18px; margin: 4px 0 0; }
.lead-success { background: var(--surface); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow-soft); }
.lead-success img { margin: 0 auto 10px; }
.lead-success .btn { margin: 6px; }

/* contacts */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contacts__card { background: var(--surface); border: 1px solid var(--sand); border-radius: var(--radius); padding: 26px; min-width: 0; }
.contacts__card img { margin-bottom: 10px; }
.contacts__card h3 { font-size: 22px; margin-bottom: 6px; }
.contacts__card p { color: var(--muted); }

/* footer */
.site-footer { background: var(--forest-dark); color: #e9f0eb; padding: 40px clamp(16px, 5vw, 72px); margin-top: 24px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer .brand { color: #fff; }
.site-footer .muted { color: #b9cbbf; margin: 10px 0 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #e9f0eb; }
.footer-links a:hover { color: var(--sun); }

/* login */
#view-login { min-height: 70vh; display: grid; place-items: center; padding: 40px 16px; }
.login-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--sand); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 32px; margin-top: 18px; }
.login-card .field { margin-bottom: 12px; }
.login-card .btn { width: 100%; margin-top: 6px; }
.demo-hint { background: var(--cream); border: 1px dashed var(--sand); border-radius: 12px; padding: 12px 14px; margin-top: 18px; font-size: 13px; }
.demo-hint p { margin: 4px 0; }
.link-back { display: inline-block; margin-top: 14px; font-size: 14px; }

/* app shell */
.app-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: calc(100vh - 66px); }
.app-side {
  background: var(--forest-dark); color: #e9f0eb; padding: 20px 14px;
  display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
}
.app-brand { color: #fff; padding: 6px 8px 16px; }
.app-nav { display: flex; flex-direction: column; gap: 3px; }
.app-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  color: #dce8e0; font-size: 14px; transition: background-color 160ms var(--ease-hover);
}
.app-nav a img { filter: brightness(0) invert(1); opacity: .8; }
.app-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.app-nav a.active { background: var(--forest); color: #fff; }
.app-side__back { margin-top: auto; padding: 10px; color: #b9cbbf; font-size: 14px; }
.app-side__back:hover { color: #fff; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px clamp(14px, 3vw, 28px);
  border-bottom: 1px solid var(--sand); background: rgba(251,247,238,.9); position: sticky; top: 0; z-index: 20;
}
.app-topbar h2 { margin: 0; font-size: 24px; }
.app-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.role-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.role-switch select { padding: 7px 10px; border-radius: 9px; border: 1px solid var(--sand); background: var(--surface); }
.user-chip { font-size: 13px; background: var(--sand); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
#nav-toggle { display: none; }
.screen { padding: clamp(16px, 3vw, 30px); min-width: 0; }

/* dashboard */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--sand); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.kpi__label { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.kpi__value { font-family: var(--font-head); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; }
.kpi__hint { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.panel { background: var(--surface); border: 1px solid var(--sand); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel + .panel { margin-top: 16px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel__head h3 { margin: 0; font-size: 20px; }
.dash-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.chart-wrap { position: relative; width: 100%; min-height: 220px; }
.chart-wrap canvas { width: 100% !important; height: 220px !important; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.stage-bars { display: grid; gap: 12px; }
.stage-bar__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.progress { display: flex; height: 10px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; }
.recent-list { display: grid; gap: 8px; }
.recent-item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--sand); font-size: 14px; }
.recent-item:last-child { border-bottom: 0; }

/* toolbar / tables */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.toolbar .field-inline { flex: 0 1 auto; }
.toolbar .spacer { flex: 1; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--sand); vertical-align: middle; }
th { background: #f6f1e6; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
tbody tr:hover { background: #fcfaf4; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--forest); cursor: pointer; font-weight: 600; }
.linkish.danger { color: var(--danger); }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(238px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kanban-col { background: #f4eee0; border-radius: 14px; padding: 10px; min-width: 238px; min-height: 140px; border: 1px dashed transparent; }
.kanban-col.drag-over { border-color: var(--forest); background: #edf3ec; }
.kanban-col__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.kanban-col__count { background: var(--surface); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.lead-card {
  background: var(--surface); border: 1px solid var(--sand); border-radius: 12px;
  padding: 11px; margin-bottom: 9px; cursor: grab; box-shadow: var(--shadow-soft);
  transition: transform 180ms var(--ease-hover), box-shadow 180ms var(--ease-hover);
  min-width: 0;
}
.lead-card:active { cursor: grabbing; }
.lead-card.dragging { opacity: .45; }
.lead-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.lead-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lead-card__top img { width: 30px; height: 30px; border-radius: 50%; }
.lead-card__name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.lead-card__meta { font-size: 12px; color: var(--muted); }
.lead-card__sum { font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; }
.lead-card__flags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }

/* misc */
.section-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.section-title-row h2 { margin: 0; font-size: 26px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.info-card { background: var(--surface); border: 1px solid var(--sand); border-radius: var(--radius); padding: 18px; min-width: 0; }
.info-card h3 { font-size: 19px; margin-bottom: 6px; }
.info-card p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); max-width: min(420px, calc(100vw - 40px));
  animation: riseIn 240ms var(--ease-out) both;
}
.modal-root {
  position: fixed; inset: 0; z-index: 70; background: rgba(30,42,38,.45);
  display: grid; place-items: center; padding: 16px;
}
.modal {
  width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow); animation: riseIn 240ms var(--ease-out) both;
}
.modal h3 { margin-bottom: 12px; }
.modal__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.demo-banner {
  background: var(--sun); color: var(--ink); text-align: center; padding: 8px 14px;
  font-size: 13px; font-weight: 600; border-bottom: 1px solid #dda82f;
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button {
  border: 1px solid var(--sand); background: var(--surface); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; cursor: pointer;
}
.tabs button.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--sand); }
.toggle-row:last-child { border-bottom: 0; }
.toggle { position: relative; width: 46px; height: 26px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: #cfc6b2; border-radius: 999px; transition: background 160ms var(--ease-hover); cursor: pointer; }
.toggle span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 180ms var(--ease-hover); }
.toggle input:checked + span { background: var(--forest); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.status-note { font-size: 12px; color: var(--muted); }
.note-warn { background: #f9e7e1; color: #8c2f1b; border-radius: 10px; padding: 10px 14px; font-size: 14px; }

/* chat */
.chat-page { max-width: 760px; margin: 0 auto; padding: 28px 16px 60px; }
.chat-card { background: var(--surface); border: 1px solid var(--sand); border-radius: 20px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; min-height: 60vh; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--sand); }
.chat-head h1 { font-size: 24px; margin: 0; }
.chat-head p { margin: 0; }
.chat-messages { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 10px 13px; border-radius: 14px; font-size: 15px; }
.msg--client { align-self: flex-end; background: var(--sun); color: var(--ink); border-bottom-right-radius: 4px; }
.msg--counselor { align-self: flex-start; background: var(--sand); color: var(--ink); border-bottom-left-radius: 4px; }
.msg time { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.chat-form { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--sand); }
.chat-form input { flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--sand); border-radius: 10px; }

/* animation */
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes badgePop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.view { animation: fadeIn 180ms var(--ease-hover) both; }
.badge { animation: badgePop 180ms var(--ease-hover) both; }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .split, .booking, .contacts, .dash-grid { grid-template-columns: 1fr; }
  .split.reverse .split__media { order: 0; }
  .site-nav { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side {
    position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 40; transform: translateX(-100%);
    transition: transform 240ms var(--ease-out); height: auto;
  }
  .app-side.open { transform: none; }
  #nav-toggle { display: inline-flex; }
  .kanban { grid-template-columns: repeat(5, 238px); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-actions .btn-ghost { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .hero__actions .btn { width: 100%; }
  .section { padding-left: 14px; padding-right: 14px; }
  .app-topbar { flex-wrap: wrap; }
  .app-topbar h2 { font-size: 20px; }
  .app-topbar__right { width: 100%; justify-content: space-between; }
  .screen { padding: 12px; }
  .login-card { padding: 22px; }
  table { min-width: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tour-card:hover, .lead-card:hover, .btn:hover { transform: none; }
}
