/* ============================================================
   Bittersweet Logistics — landing stylesheet
   Palette taken from bittersweet.coffee: dark chocolate, cream, caramel.
   No images: every visual is a CSS gradient / pattern.
   ============================================================ */

:root {
  --bg-deep: #150c09;
  --bg: #1c100c;
  --bg-raised: #241512;
  --bg-card: #201310;
  --cream: #f2e6d5;
  --cream-dim: rgba(242, 230, 213, 0.64);
  --cream-faint: rgba(242, 230, 213, 0.38);
  --caramel: #c98a4b;
  --caramel-soft: rgba(201, 138, 75, 0.16);
  --line: rgba(242, 230, 213, 0.12);
  --line-strong: rgba(242, 230, 213, 0.22);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "PT Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 148px);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }

::selection { background: var(--caramel); color: #1c100c; }

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
}

/* ---------- shared atoms ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--caramel);
  opacity: 0.8;
  flex: none;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.94;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.lede {
  color: var(--cream-dim);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 48ch;
}

.hairline {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 19px 34px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.28s ease, color 0.28s ease,
              border-color 0.28s ease, transform 0.28s ease;
}

.btn--primary {
  background: var(--caramel);
  color: #1a0f0a;
}

.btn--primary:hover {
  background: #dda167;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--cream);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--caramel);
  color: var(--caramel);
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.link-quiet:hover {
  color: var(--cream);
  border-bottom-color: var(--caramel);
}

.link-quiet .arrow {
  transition: transform 0.25s ease;
}

.link-quiet:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding-block: 26px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.logo__word {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.logo__sub {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.site-header__meta {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.site-header__login {
  color: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-header__login:hover {
  color: var(--caramel);
  border-color: var(--caramel);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(116px, 15vh, 168px) 112px;
  overflow: hidden;
  background:
    radial-gradient(115% 85% at 82% 8%, rgba(201, 138, 75, 0.17), transparent 56%),
    radial-gradient(90% 80% at 6% 92%, rgba(104, 45, 30, 0.5), transparent 62%),
    linear-gradient(164deg, #2a1a15 0%, #1e1210 42%, #150c09 100%);
}

/* thin vertical hairlines, map-like */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    var(--line) 0 1px,
    transparent 1px 100%
  );
  background-size: 12.5% 100%;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 76%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 76%, transparent);
  pointer-events: none;
}

/* coffee-ring circle: a single large thin ring, off-canvas right */
.hero::after {
  content: "";
  position: absolute;
  width: min(74vw, 780px);
  aspect-ratio: 1;
  right: -16vw;
  top: 42%;
  transform: translateY(-50%);
  border: 1px solid rgba(242, 230, 213, 0.085);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(242, 230, 213, 0.03),
    inset 0 0 130px rgba(201, 138, 75, 0.07);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__copy { max-width: 1060px; }

.hero__title {
  font-size: clamp(40px, 6.5vw, 92px);
  margin-block: 30px 0;
}

.hero__title em {
  font-style: normal;
  color: var(--caramel);
}

.hero__sub {
  margin-top: 32px;
  max-width: 42ch;
  color: var(--cream-dim);
  font-size: clamp(16px, 1.5vw, 19px);
}

.hero__actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.hero__facts {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--cream-faint);
}

.hero__facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}

.hero__facts b {
  font-weight: 500;
  color: var(--cream-dim);
  letter-spacing: 0.12em;
}

.hero__facts span + span {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

/* scroll hint at bottom edge */
.hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid var(--line);
}

.hero__foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

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

.hero__scroller span {
  display: block;
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, var(--caramel), transparent);
  animation: drip 2.6s ease-in-out infinite;
}

@keyframes drip {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); }
  50%      { opacity: 1;    transform: scaleY(1); }
}

/* ============================================================
   FEATURES — «Что внутри»
   ============================================================ */
.features {
  position: relative;
  padding-block: var(--section-y);
  background: linear-gradient(180deg, #150c09 0%, #1c100c 30%, #1c100c 100%);
}

.features__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 32px 64px;
  align-items: end;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.features__head .eyebrow { margin-bottom: 22px; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -1px;
}

.card {
  position: relative;
  padding: 40px 32px 46px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: transparent;
  transition: background-color 0.35s ease;
}

.features__grid .card:last-child { border-right: 1px solid var(--line); }

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--caramel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover { background: rgba(242, 230, 213, 0.025); }
.card:hover::after { transform: scaleX(1); }

.card__icon {
  color: var(--caramel);
  margin-bottom: 34px;
  opacity: 0.9;
}

.card__num {
  position: absolute;
  top: 34px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cream-faint);
}

.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 14px;
  min-height: 2.3em;
}

.card__text {
  color: var(--cream-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   HOW — «Как это работает»
   ============================================================ */
.how {
  position: relative;
  padding-block: var(--section-y);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(201, 138, 75, 0.08), transparent 60%),
    #241512;
  overflow: hidden;
}

.how__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 56px;
}

.how__head .eyebrow { margin-bottom: 22px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  padding: 44px clamp(20px, 2.6vw, 40px) 52px 0;
  position: relative;
}

.step + .step {
  padding-left: clamp(20px, 2.6vw, 40px);
  border-left: 1px solid var(--line);
}

.step__num {
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 600;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 138, 75, 0.55);
  margin-bottom: 26px;
  transition: -webkit-text-stroke-color 0.35s ease, color 0.35s ease;
}

.step:hover .step__num {
  color: rgba(201, 138, 75, 0.09);
  -webkit-text-stroke-color: var(--caramel);
}

.step__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  min-height: 2.3em;
}

.step__text {
  color: var(--cream-dim);
  font-size: 15px;
  max-width: 32ch;
}

/* CTA strip closing the page */
.cta {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(201, 138, 75, 0.14), transparent 62%),
    #1c100c;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 22px;
}

.cta__text {
  color: var(--cream-dim);
  max-width: 46ch;
  margin: 0 auto 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #150c09;
  border-top: 1px solid var(--line);
  padding-block: 46px 34px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 48px;
}

.site-footer__brandmark {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.site-footer__brandmark span { color: var(--caramel); }

.site-footer__line {
  color: var(--cream-faint);
  font-size: 14px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.site-footer__nav a { transition: color 0.25s ease; }
.site-footer__nav a:hover { color: var(--caramel); }

.site-footer__bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12.5px;
  color: var(--cream-faint);
  letter-spacing: 0.04em;
}

/* ============================================================
   AUTH / APP SHELL
   ============================================================ */
.auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px var(--gutter);
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(201, 138, 75, 0.13), transparent 60%),
    linear-gradient(180deg, #241512, #150c09 70%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: clamp(30px, 5vw, 46px);
  background: rgba(28, 16, 12, 0.86);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.auth-card__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 36px;
}

.auth-card__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.auth-card__hint {
  color: var(--cream-faint);
  font-size: 14px;
  margin-bottom: 30px;
}

.field { margin-bottom: 20px; }

.field__label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 9px;
}

.field__input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(21, 12, 9, 0.75);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

.field__input::placeholder { color: rgba(242, 230, 213, 0.28); }

.field__input:focus {
  outline: none;
  border-color: var(--caramel);
  background: rgba(21, 12, 9, 0.95);
}

.auth-card .btn {
  width: 100%;
  margin-top: 8px;
}

.form-error {
  display: none;
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid rgba(214, 96, 74, 0.45);
  border-left: 2px solid #d6604a;
  background: rgba(214, 96, 74, 0.1);
  color: #f0c3b8;
  font-size: 14px;
  line-height: 1.45;
}

.form-error.is-visible { display: block; }

.auth-card__foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.auth-card__foot a:hover { color: var(--caramel); }

/* app shell: map page */
.app-body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  overflow: hidden;
}

.app-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 3vw, 32px);
  height: 62px;
  background: #1a0f0b;
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.app-bar__left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.app-bar__rule {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}

.app-bar__tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-faint);
  white-space: nowrap;
}

.app-bar__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.app-bar__user {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  white-space: nowrap;
}

.logout-btn {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease;
}

.logout-btn:hover {
  border-color: var(--caramel);
  color: var(--caramel);
}

.map-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background:
    linear-gradient(180deg, #241512, #1c100c);
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #1c100c;
}

/* friendly placeholder when no Yandex key is configured */
.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  background-image:
    linear-gradient(rgba(242, 230, 213, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 230, 213, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
}

.map-placeholder__inner {
  max-width: 460px;
  padding: 38px 34px;
  background: rgba(21, 12, 9, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.map-placeholder__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.map-placeholder__text {
  color: var(--cream-dim);
  font-size: 15px;
  line-height: 1.6;
}

.map-placeholder__code {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 10px;
  background: rgba(201, 138, 75, 0.12);
  border: 1px solid rgba(201, 138, 75, 0.3);
  border-radius: 2px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
  color: var(--caramel);
  letter-spacing: 0.04em;
}

/* ============================================================
   MAP PAGE — split layout (side panel + map stage)
   ============================================================ */
/* author `display` rules must never resurrect hidden layers */
[hidden] { display: none !important; }

.map-shell--split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  background: var(--bg-deep);
}

/* ---------- top bar: warehouse chip ---------- */
.wh-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(242, 230, 213, 0.03);
  color: var(--cream-dim);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.wh-btn:hover { border-color: var(--caramel); color: var(--caramel); }
.wh-btn__value {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream-faint);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- side panel ---------- */
.side-panel {
  flex: 0 0 340px;
  width: 340px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #201310 0%, #1a0f0b 100%);
  border-right: 1px solid var(--line);
  z-index: 6;
}

.panel-tabs {
  flex: none;
  display: flex;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.panel-tab {
  flex: 1 1 0;
  padding: 13px 6px 11px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--cream-faint);
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.panel-tab:hover { color: var(--cream); }
.panel-tab.is-active {
  color: var(--cream);
  border-bottom-color: var(--caramel);
  background: rgba(201, 138, 75, 0.07);
}
.panel-tab__count {
  display: inline-block;
  margin-left: 1px;
  padding: 1px 5px;
  border-radius: 8px;
  background: rgba(201, 138, 75, 0.15);
  color: var(--caramel);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}

.panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 138, 75, 0.35) transparent;
}
.panel-scroll::-webkit-scrollbar { width: 8px; }
.panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(201, 138, 75, 0.3);
  border-radius: 8px;
}

.pane { display: none; }
.pane.is-active { display: block; }

/* ---------- chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.chip {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  background: rgba(242, 230, 213, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--cream); }
.chip.is-active {
  background: var(--caramel);
  border-color: var(--caramel);
  color: #1c100c;
}
.chip[data-day="1"].is-active { background: #4a90d9; border-color: #4a90d9; color: #0d0b0a; }
.chip[data-day="2"].is-active { background: #4caf50; border-color: #4caf50; color: #0d0b0a; }
.chip[data-day="3"].is-active { background: #9c6ade; border-color: #9c6ade; color: #0d0b0a; }
.chip[data-day="4"].is-active { background: #e8912d; border-color: #e8912d; color: #0d0b0a; }
.chip[data-day="5"].is-active { background: #d9534f; border-color: #d9534f; color: #f7ece0; }

/* ---------- small buttons ---------- */
.btn-s {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(242, 230, 213, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-s:hover { border-color: var(--caramel); color: var(--caramel); }
.btn-s--primary {
  background: var(--caramel);
  border-color: var(--caramel);
  color: #1c100c;
  font-weight: 500;
}
.btn-s--primary:hover { background: #d99a5c; border-color: #d99a5c; color: #1c100c; }
.btn-s--accent { border-color: rgba(201, 138, 75, 0.55); color: var(--caramel); }
.btn-s--accent:hover { background: rgba(201, 138, 75, 0.14); }
.btn-s--danger { background: rgba(217, 83, 79, 0.92); border-color: #d9534f; color: #fff; }
.btn-s--danger:hover { background: #e26460; border-color: #e26460; color: #fff; }
.btn-s[disabled] { opacity: 0.45; cursor: not-allowed; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.row-actions--stack { margin-top: 14px; }

.stat-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--cream-faint);
}
.stat-warn { color: #e8912d; }
.stat-warn::before { content: "⚠ "; }

.hint {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--cream-faint);
}
.hint--tight { margin: 6px 0 0; }

/* ---------- fields ---------- */
.field-mini { display: block; margin-bottom: 10px; }
.field-mini__label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.field-input,
.field-mini input[type="file"],
.field-mini select,
.import-box select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease;
}
.field-input:focus,
.field-mini select:focus {
  border-color: rgba(201, 138, 75, 0.7);
}
.field-input--sm { padding: 8px 10px; font-size: 12.5px; margin-bottom: 8px; }
.field-mini input[type="file"] { padding: 7px; font-size: 11.5px; }

.import-box {
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.import-report {
  margin-top: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  color: var(--cream-dim);
}
.import-report h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel);
}
.import-report ul { margin: 0 0 8px; padding-left: 16px; }
.import-report li { margin-bottom: 2px; word-break: break-word; }
.import-report .rep-ok { color: #7fc08a; }
.import-report .rep-bad { color: #e8912d; }

/* ---------- points list ---------- */
.pt-list,
.zone-list,
.route-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pt-list { display: flex; flex-direction: column; gap: 5px; }

.pt {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(242, 230, 213, 0.03);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.pt:hover { background: rgba(201, 138, 75, 0.1); border-color: rgba(201, 138, 75, 0.35); }
.pt.is-uncoded { opacity: 0.55; cursor: default; }
.pt__dot { width: 9px; height: 9px; border-radius: 50%; }
.pt__name {
  display: block;
  font-size: 12.5px;
  color: var(--cream);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt__addr {
  display: block;
  font-size: 11px;
  color: var(--cream-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt__right {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pt__count {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: #1c100c;
  background: var(--caramel);
  border-radius: 7px;
  padding: 1px 5px;
}
.pt__day {
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 4px;
  color: #0d0b0a;
  font-weight: 500;
}
.pt__day--none { background: rgba(242, 230, 213, 0.16); color: var(--cream-dim); }

/* ---------- zones list ---------- */
.zone-list { display: flex; flex-direction: column; gap: 8px; }

.zone {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(242, 230, 213, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.zone.is-editing {
  border-color: rgba(201, 138, 75, 0.6);
  background: rgba(201, 138, 75, 0.08);
}
.zone__swatch {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}
.zone__name {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.zone__days { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.zone__day {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  color: #0d0b0a;
}
.zone__actions { display: flex; gap: 4px; }

.icon-btn {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.icon-btn:hover { color: var(--cream); border-color: var(--line-strong); background: rgba(242, 230, 213, 0.05); }
.icon-btn.is-on { color: var(--caramel); border-color: rgba(201, 138, 75, 0.55); }

/* ---------- route panel ---------- */
.wh-card {
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}
.wh-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.wh-card__state {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream-faint);
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wh-card__state.is-set { color: #7fc08a; }

.route-start {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(201, 138, 75, 0.4);
  font-size: 11.5px;
  color: var(--cream-dim);
}
.route-start b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel);
}
.route-start span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(242, 230, 213, 0.035);
  cursor: grab;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.rt:hover { border-color: var(--line-strong); }
.rt.is-drag { opacity: 0.4; }
.rt.is-over {
  border-color: var(--caramel);
  background: rgba(201, 138, 75, 0.12);
}
.rt.is-start { border-color: rgba(201, 138, 75, 0.55); }
.rt__num {
  flex: none;
  width: 20px;
  padding-top: 1px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--cream-faint);
  text-align: center;
}
.rt.is-start .rt__num { color: var(--caramel); }
.rt__main { flex: 1 1 auto; min-width: 0; }
.rt__top { display: flex; align-items: flex-start; gap: 6px; }
.rt__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--cream);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rt__addr {
  display: block;
  font-size: 10.5px;
  color: var(--cream-faint);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rt__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin-top: 4px;
}
.rt__done,
.rt__start {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-faint);
  cursor: pointer;
  user-select: none;
}
.rt__done input,
.rt__start input { accent-color: var(--caramel); margin: 0; }
.rt__done.is-on { color: #7fc08a; }
.rt__tel {
  font-size: 10.5px;
  color: var(--caramel);
  text-decoration: none;
  border-bottom: 1px dotted rgba(201, 138, 75, 0.5);
  white-space: nowrap;
}
.rt__tel:hover { border-bottom-style: solid; }
.rt__x {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.rt__x:hover { color: #e8912d; border-color: rgba(232, 145, 45, 0.6); }
.rt.is-done { background: rgba(127, 192, 138, 0.07); border-color: rgba(127, 192, 138, 0.35); }
.rt.is-done .rt__name,
.rt.is-done .rt__addr { text-decoration: line-through; opacity: 0.55; }
.rt.is-done .rt__num { color: #7fc08a; }

/* ---------- map stage ---------- */
.map-stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  background: #1c100c;
}
.map-stage.is-drawing #map { cursor: crosshair; }
.map-shell--split #map { position: absolute; inset: 0; }

/* demo banner */
.demo-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(32, 19, 16, 0.9);
  border: 1px solid rgba(232, 145, 45, 0.55);
  color: #f0d9bc;
  font-size: 12.5px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.demo-banner__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8912d;
  box-shadow: 0 0 9px #e8912d;
}

/* transient map hint (drawing / picking) */
.map-status {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 14;
  max-width: min(520px, 88%);
  padding: 9px 15px;
  border-radius: 10px;
  background: rgba(28, 16, 12, 0.93);
  border: 1px solid rgba(201, 138, 75, 0.5);
  color: var(--cream);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

/* ---------- marker popup ---------- */
.marker-popup {
  position: absolute;
  z-index: 18;
  width: 306px;
  max-height: 62%;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(28, 16, 12, 0.97);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  transform: none;
}

.marker-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cream-faint);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.marker-popup__close:hover { color: var(--cream); background: rgba(242, 230, 213, 0.08); }

.marker-popup__head {
  flex: none;
  padding-right: 22px;
  margin-bottom: 6px;
}
.marker-popup__title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--caramel);
  line-height: 1.3;
}
.marker-popup__sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--cream-faint);
}

.marker-popup__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}

.pp-item { padding: 9px 0; border-top: 1px solid var(--line); }
.pp-item:first-child { border-top: 0; padding-top: 2px; }
.pp-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pp-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.pp-contact { margin-top: 2px; font-size: 11.5px; color: var(--cream-dim); }
.pp-comment {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--cream-faint);
}
.pp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.type-badge {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-route {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(201, 138, 75, 0.6);
  background: rgba(201, 138, 75, 0.14);
  color: var(--caramel);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.btn-route:hover { background: var(--caramel); color: #1c100c; }

.pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.btn-mini {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.btn-mini:hover { color: var(--cream); border-color: var(--cream-faint); background: rgba(242, 230, 213, 0.06); }

.pt-warn-head {
  margin-top: 10px;
  padding: 8px 9px 2px;
  font-size: 11px;
  line-height: 1.4;
  color: #e8912d;
  border-top: 1px dashed rgba(232, 145, 45, 0.35);
}
.pt-warn-head::before { content: "⚠ "; }

/* ---------- map pins (custom placemark layouts) ---------- */
.pin {
  position: relative;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.pin__dot {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pin-color, #c98a4b);
  border: 2px solid rgba(242, 230, 213, 0.92);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.55);
  transition: transform 0.14s ease;
}
.pin:hover .pin__dot { transform: scale(1.12); }
.pin--warehouse .pin__dot { border-radius: 5px; }
.pin--warehouse .pin__dot::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 1px;
  background: rgba(28, 16, 12, 0.55);
}
.pin__badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #1c100c;
  border: 1.5px solid var(--pin-color, #c98a4b);
  color: #f2e6d5;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}
.draft-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--caramel);
  border: 2px solid #1c100c;
  box-shadow: 0 0 0 1px rgba(242, 230, 213, 0.6);
}

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 8, 6, 0.72);
  backdrop-filter: blur(3px);
}
.modal__card {
  width: 100%;
  max-width: 380px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #221410;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
}
.modal__card--sm { max-width: 320px; }
.modal__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}
.modal__text {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cream-dim);
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.modal__error {
  margin: 10px 0 0;
  font-size: 12px;
  color: #e8912d;
}

.day-select { display: flex; flex-wrap: wrap; gap: 5px; }
.color-input {
  width: 100%;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* ---------- toasts ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  max-width: min(440px, 90vw);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(34, 20, 16, 0.97);
  color: var(--cream);
  font-size: 12.5px;
  line-height: 1.4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.18s ease both;
}
.toast--ok { border-color: rgba(127, 192, 138, 0.6); }
.toast--warn { border-color: rgba(232, 145, 45, 0.65); }
.toast--err { border-color: rgba(217, 83, 79, 0.7); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- mobile panel toggle ---------- */
.panel-toggle {
  display: none;
  position: absolute;
  left: 14px;
  bottom: 16px;
  z-index: 22;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 138, 75, 0.55);
  background: rgba(28, 16, 12, 0.94);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.panel-toggle__bars,
.panel-toggle__bars::before,
.panel-toggle__bars::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--caramel);
}
.panel-toggle__bars { position: relative; }
.panel-toggle__bars::before,
.panel-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.panel-toggle__bars::before { top: -4px; }
.panel-toggle__bars::after { top: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features__grid .card:nth-child(2n) { border-right: 1px solid var(--line); }
  .features__head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
  .hero { padding-block: 132px 120px; min-height: auto; }
  .hero__copy { max-width: none; }
  .hero__facts { display: none; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step {
    padding: 32px 0 34px;
    border-top: 1px solid var(--line);
  }
  .step + .step { padding-left: 0; border-left: 0; }
  .step__num { margin-bottom: 16px; }
  .site-header__meta span:not(.site-header__login) { display: none; }
  .app-bar__tag, .app-bar__rule { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .features__grid { grid-template-columns: 1fr; }
  .features__grid .card { border-right: 1px solid var(--line); padding: 30px 24px 34px; }
  .card__icon { margin-bottom: 22px; }
  .hero__title { font-size: clamp(40px, 12vw, 62px); }
  .hero__foot-inner { font-size: 9.5px; letter-spacing: 0.13em; gap: 10px; }
  .btn { width: 100%; padding: 17px 24px; }
  .hero__actions { gap: 14px; }
  .link-quiet { width: 100%; justify-content: space-between; }
  .site-footer__inner { flex-direction: column; }
  .auth-card { padding: 28px 22px; }
  .app-bar { height: 56px; }
  .app-bar__user { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   MAP PAGE — phone / tablet: side panel becomes a drawer
   ============================================================ */
@media (max-width: 900px) {
  .panel-toggle { display: inline-flex; z-index: 25; }
  .map-shell--split {
    display: block;
    position: relative;
  }
  .map-stage {
    position: absolute;
    inset: 0;
  }
  .side-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    flex: none;
    width: min(340px, 88vw);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.6);
    z-index: 24;
    border-right: 1px solid var(--line-strong);
  }
  .side-panel.is-open { transform: none; }
  .wh-btn { display: none; }
  .demo-banner {
    font-size: 11.5px;
    padding: 7px 12px;
    max-width: calc(100% - 28px);
    white-space: normal;
    text-align: center;
  }
  .marker-popup { width: min(306px, calc(100vw - 32px)); }
  .toasts { bottom: 78px; }
}

/* ============================================================
   THEME — semantic tokens. <html data-theme="dark|light">
   Dark is the product default; light keeps the cream/caramel spirit.
   ============================================================ */
html[data-theme="dark"] {
  color-scheme: dark;
  --surface-bar: #1a0f0b;
  --surface-panel: linear-gradient(180deg, #201310 0%, #1a0f0b 100%);
  --surface-tabs: rgba(0, 0, 0, 0.18);
  --surface-input: rgba(0, 0, 0, 0.25);
  --surface-glass: rgba(28, 16, 12, 0.97);
  --surface-tint: rgba(242, 230, 213, 0.035);
  --map-bg: #1c100c;
  --overlay: rgba(13, 8, 6, 0.72);
  --shadow-float: 0 18px 44px rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-deep: #efe2cd;
  --bg: #fbf6ee;
  --bg-raised: #ffffff;
  --bg-card: #fffdf8;
  --cream: #241512;
  --cream-dim: rgba(36, 21, 18, 0.74);
  --cream-faint: rgba(36, 21, 18, 0.55);
  --caramel: #b5742f;
  --caramel-soft: rgba(181, 116, 47, 0.14);
  --line: rgba(36, 21, 18, 0.13);
  --line-strong: rgba(36, 21, 18, 0.26);
  --surface-bar: #fcf7ef;
  --surface-panel: linear-gradient(180deg, #fffdf8 0%, #f7eedf 100%);
  --surface-tabs: rgba(36, 21, 18, 0.045);
  --surface-input: #ffffff;
  --surface-glass: rgba(255, 251, 245, 0.99);
  --surface-tint: rgba(36, 21, 18, 0.035);
  --map-bg: #e6d9c4;
  --overlay: rgba(36, 21, 18, 0.42);
  --shadow-float: 0 18px 44px rgba(72, 44, 28, 0.22);
}

html { background: var(--bg-deep); }
html, body { max-width: 100%; }

/* ---------- theme toggle button ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  color: var(--caramel);
  border-color: var(--caramel);
  background: var(--caramel-soft);
}
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle--sm { width: 32px; height: 32px; }
.theme-toggle .theme-ico--moon { display: none; }
html[data-theme="light"] .theme-toggle .theme-ico--sun { display: none; }
html[data-theme="light"] .theme-toggle .theme-ico--moon { display: block; }

.theme-fab {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-glass);
  color: var(--cream-dim);
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-fab:hover { color: var(--caramel); border-color: var(--caramel); }
.theme-fab .theme-ico--moon { display: none; }
html[data-theme="light"] .theme-fab .theme-ico--sun { display: none; }
html[data-theme="light"] .theme-fab .theme-ico--moon { display: block; }

.logout-btn { display: inline-flex; align-items: center; gap: 8px; }
.logout-btn__ico { display: none; }

/* ---------- light theme: landing ---------- */
html[data-theme="light"] .hero {
  background:
    radial-gradient(115% 85% at 82% 8%, rgba(201, 138, 75, 0.26), transparent 56%),
    radial-gradient(90% 80% at 6% 92%, rgba(201, 138, 75, 0.18), transparent 62%),
    linear-gradient(164deg, #fdf8f0 0%, #f7eedf 46%, #f1e4d0 100%);
}
html[data-theme="light"] .hero::before {
  background-image: linear-gradient(90deg, rgba(36, 21, 18, 0.09) 0 1px, transparent 1px 100%);
  opacity: 0.5;
}
html[data-theme="light"] .hero::after {
  border-color: rgba(36, 21, 18, 0.1);
  box-shadow: 0 0 0 1px rgba(36, 21, 18, 0.04), inset 0 0 130px rgba(201, 138, 75, 0.13);
}
html[data-theme="light"] .features { background: linear-gradient(180deg, #fbf6ee 0%, #fdf8f1 100%); }
html[data-theme="light"] .card:hover { background: rgba(36, 21, 18, 0.025); }
html[data-theme="light"] .card__num { color: rgba(36, 21, 18, 0.42); }
html[data-theme="light"] .how {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(201, 138, 75, 0.16), transparent 60%),
    #f4e9d7;
}
html[data-theme="light"] .step__num { -webkit-text-stroke: 1px rgba(181, 116, 47, 0.6); }
html[data-theme="light"] .cta {
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(201, 138, 75, 0.2), transparent 62%),
    #fbf6ee;
}
html[data-theme="light"] .site-footer { background: #f1e4d0; }
html[data-theme="light"] .btn--primary { color: #2a1810; }

/* ---------- light theme: auth ---------- */
html[data-theme="light"] .auth-page {
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(201, 138, 75, 0.22), transparent 60%),
    linear-gradient(180deg, #f7eedf, #efe2cc 70%);
}
html[data-theme="light"] .auth-card {
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 24px 60px rgba(72, 44, 28, 0.16);
}
html[data-theme="light"] .field__input { background: #fff; }
html[data-theme="light"] .field__input:focus { background: #fff; }
html[data-theme="light"] .field__input::placeholder { color: rgba(36, 21, 18, 0.36); }

/* ---------- light theme: app shell & map UI ---------- */
html[data-theme="light"] .app-bar { background: #fcf7ef; }
html[data-theme="light"] .app-bar__rule { background: rgba(36, 21, 18, 0.22); }
html[data-theme="light"] .map-shell,
html[data-theme="light"] .map-shell--split { background: linear-gradient(180deg, #f2e6d2, #e9dcc5); }
html[data-theme="light"] .map-stage,
html[data-theme="light"] #map { background: #e6d9c4; }
html[data-theme="light"] .side-panel {
  background: linear-gradient(180deg, #fffdf8 0%, #f7eedf 100%);
  box-shadow: 8px 0 30px rgba(72, 44, 28, 0.1);
}
html[data-theme="light"] .panel-tabs { background: rgba(36, 21, 18, 0.045); }
html[data-theme="light"] .panel-tab.is-active { background: rgba(181, 116, 47, 0.1); }
html[data-theme="light"] .panel-tab__count { background: rgba(181, 116, 47, 0.16); color: #8d5416; }
html[data-theme="light"] .wh-btn,
html[data-theme="light"] .chip,
html[data-theme="light"] .btn-s,
html[data-theme="light"] .pt,
html[data-theme="light"] .zone,
html[data-theme="light"] .rt { background: rgba(36, 21, 18, 0.035); }
html[data-theme="light"] .btn-s--primary,
html[data-theme="light"] .btn-s--primary:hover { background: #c98a4b; border-color: #c98a4b; color: #241512; }
html[data-theme="light"] .btn-s--primary:hover { background: #d99a5c; border-color: #d99a5c; }
html[data-theme="light"] .chip.is-active { background: #c98a4b; border-color: #c98a4b; color: #241512; }
html[data-theme="light"] .import-box,
html[data-theme="light"] .wh-card { background: rgba(36, 21, 18, 0.04); }
html[data-theme="light"] .import-report { background: #fff; }
html[data-theme="light"] .field-input,
html[data-theme="light"] .field-mini input[type="file"],
html[data-theme="light"] .field-mini select,
html[data-theme="light"] .import-box select,
html[data-theme="light"] .color-input { background: #fff; color: #241512; }
html[data-theme="light"] .pt:hover { background: rgba(181, 116, 47, 0.12); }
html[data-theme="light"] .icon-btn:hover,
html[data-theme="light"] .btn-mini:hover,
html[data-theme="light"] .search-clear:hover { background: rgba(36, 21, 18, 0.06); }
html[data-theme="light"] .btn-route {
  color: #8d5416;
  border-color: rgba(181, 116, 47, 0.6);
  background: rgba(181, 116, 47, 0.14);
}
html[data-theme="light"] .btn-route:hover { background: #c98a4b; color: #241512; }
html[data-theme="light"] .zone__swatch { box-shadow: 0 0 0 1px rgba(36, 21, 18, 0.18) inset; }
html[data-theme="light"] .route-start { background: rgba(181, 116, 47, 0.06); }
html[data-theme="light"] .demo-banner {
  background: rgba(255, 251, 245, 0.96);
  color: #7a4114;
  box-shadow: 0 8px 22px rgba(72, 44, 28, 0.16);
}
html[data-theme="light"] .map-status {
  background: rgba(255, 251, 245, 0.96);
  box-shadow: 0 10px 26px rgba(72, 44, 28, 0.18);
}
html[data-theme="light"] .marker-popup { background: rgba(255, 251, 245, 0.99); }
html[data-theme="light"] .marker-popup__close:hover { background: rgba(36, 21, 18, 0.07); }
html[data-theme="light"] .pin__dot { border-color: #fff; box-shadow: 0 3px 9px rgba(72, 44, 28, 0.35); }
html[data-theme="light"] .pin__badge { background: #fff; color: #241512; }
html[data-theme="light"] .draft-dot { border-color: #fff; box-shadow: 0 0 0 1px rgba(36, 21, 18, 0.5); }
html[data-theme="light"] .modal { background: rgba(36, 21, 18, 0.42); }
html[data-theme="light"] .modal__card { background: #fffdf8; box-shadow: 0 26px 60px rgba(72, 44, 28, 0.24); }
html[data-theme="light"] .toast { background: rgba(255, 251, 245, 0.98); color: #241512; box-shadow: 0 12px 30px rgba(72, 44, 28, 0.2); }
html[data-theme="light"] .panel-toggle { background: rgba(255, 251, 245, 0.97); color: #241512; box-shadow: 0 10px 24px rgba(72, 44, 28, 0.22); }
html[data-theme="light"] .map-placeholder {
  background-image:
    linear-gradient(rgba(36, 21, 18, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 21, 18, 0.07) 1px, transparent 1px);
}
html[data-theme="light"] .map-placeholder__inner { background: rgba(255, 251, 245, 0.94); }
html[data-theme="light"] .map-placeholder__code { background: rgba(181, 116, 47, 0.12); border-color: rgba(181, 116, 47, 0.32); color: #8d5416; }
html[data-theme="light"] .wh-card__state.is-set { color: #2f7a3f; }
html[data-theme="light"] .stat-warn,
html[data-theme="light"] .modal__error,
html[data-theme="light"] .pt-warn-head { color: #a8641a; }
html[data-theme="light"] .rt.is-done { background: rgba(47, 122, 63, 0.07); border-color: rgba(47, 122, 63, 0.32); }
html[data-theme="light"] .rt.is-done .rt__num,
html[data-theme="light"] .rt__done.is-on { color: #2f7a3f; }
html[data-theme="light"] .rt__tel { border-bottom-color: rgba(181, 116, 47, 0.5); }
html[data-theme="light"] .panel-backdrop { background: rgba(36, 21, 18, 0.4); }

/* ============================================================
   DRAWER (phone / tablet)
   ============================================================ */
.panel-backdrop {
  position: absolute;
  inset: 0;
  z-index: 23;
  border: 0;
  padding: 0;
  background: rgba(13, 8, 6, 0.55);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  cursor: pointer;
}

.panel-handle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px 2px 14px;
  border-bottom: 1px solid var(--line);
}
.panel-handle__title {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.panel-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--cream-dim);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.panel-close:hover { color: var(--cream); background: rgba(127, 127, 127, 0.12); }

/* ============================================================
   SEARCH (Точки)
   ============================================================ */
.search-box { position: relative; margin-bottom: 8px; }
.search-input {
  padding-right: 38px;
  min-height: 38px;
  font-size: 13px;
}
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cream-faint);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.search-hint {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--cream-faint);
}

/* ============================================================
   ROUTE PROGRESS
   ============================================================ */
.route-progress { margin: 0 0 10px; }
.route-progress__text {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.route-progress__bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(242, 230, 213, 0.16);
  overflow: hidden;
}
html[data-theme="light"] .route-progress__bar { background: rgba(36, 21, 18, 0.12); }
.route-progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c98a4b 0%, #6f9b57 100%);
  transition: width 0.25s ease;
}
html[data-theme="light"] .route-progress__text { color: #6d4a2a; }
html[data-theme="light"] .route-progress__bar span { background: linear-gradient(90deg, #b5742f 0%, #4f7a41 100%); }

/* ============================================================
   PRINT ROUTE SHEET
   ============================================================ */
.print-sheet {
  background: #fff;
  color: #1a1210;
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  padding: 24px 28px;
}
.ps-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c98a4b;
  margin-bottom: 10px;
}
.ps-brand {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: #241512;
}
.ps-brand-sub {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8a7259;
  margin-top: 2px;
}
.ps-meta { text-align: right; }
.ps-day {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #241512;
}
.ps-sub { font-size: 10.5px; color: #6f5a45; margin-top: 2px; }
.ps-wh {
  padding: 7px 10px;
  margin-bottom: 12px;
  border: 1px dashed #c98a4b;
  border-radius: 3px;
  font-size: 11.5px;
  color: #3a2618;
  background: #fdf6ec;
}
.ps-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ps-table th {
  text-align: left;
  padding: 4px 5px;
  border-bottom: 1px solid #8a7259;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5b452f;
}
.ps-table td {
  padding: 5px;
  border-bottom: 1px solid #e2d6c6;
  vertical-align: top;
  font-size: 10.5px;
  color: #241512;
  word-break: break-word;
}
.ps-c-num { width: 26px; }
.ps-c-name { width: 20%; }
.ps-c-addr { width: 22%; }
.ps-c-contact { width: 18%; }
.ps-c-comment { width: auto; }
.ps-c-places { width: 38px; text-align: center; }
.ps-table td.ps-num {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  color: #a8641a;
}
.ps-table td.ps-places { text-align: center; }
.ps-table tr.is-done td { color: #8a7259; text-decoration: line-through; }
.ps-foot {
  margin: 14px 0 0;
  padding-top: 6px;
  border-top: 1px solid #e2d6c6;
  font-size: 9.5px;
  color: #8a7259;
}

@media print {
  @page { size: A4; margin: 13mm 11mm; }
  html, body {
    background: #fff !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
  }
  body.is-printing > *:not(#print-sheet) { display: none !important; }
  body.is-printing #print-sheet { display: block !important; }
  html body #print-sheet {
    padding: 0;
    max-width: none;
  }
  .ps-table thead { display: table-header-group; }
  .ps-table tr,
  .ps-table td,
  .ps-table th { page-break-inside: avoid; break-inside: avoid; }
  .ps-table tr { page-break-after: auto; }
  .ps-wh { page-break-after: avoid; break-after: avoid; }
}

/* ============================================================
   MOBILE — phone / tablet: map fills the viewport, panel is a drawer
   ============================================================ */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .app-body { height: 100dvh; min-height: 100svh; overflow: hidden; }
  .app-bar { height: 56px; padding: 0 12px; gap: 10px; }
  .app-bar__left { gap: 10px; }
  .app-bar__right { gap: 10px; }

  /* map under the bar, nothing pushing it down */
  .map-shell--split { display: block; position: relative; overflow: hidden; }
  .map-stage { position: absolute; inset: 0; }

  /* big drawer toggle */
  .panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 18px;
    left: 12px;
    bottom: 14px;
    font-size: 12px;
    border-radius: 999px;
  }
  .panel-toggle__bars { width: 16px; height: 2px; }
  .panel-toggle__bars::before { top: -5px; }
  .panel-toggle__bars::after { top: 5px; }

  .side-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    flex: none;
    width: min(340px, 90vw);
    max-width: 90vw;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.45);
    z-index: 24;
    border-right: 1px solid var(--line-strong);
  }
  .side-panel.is-open { transform: none; }
  body.drawer-open .panel-toggle { opacity: 0; pointer-events: none; }
  .panel-handle { display: flex; }
  .panel-tabs { flex: none; }
  .panel-tab { min-height: 48px; padding: 12px 4px; }
  .panel-scroll {
    padding: 12px 12px 28px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* touch targets >= 44px */
  .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
    font-size: 11.5px;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .btn-s { min-height: 44px; padding: 10px 14px; }
  .icon-btn { width: 44px; height: 44px; border-radius: 10px; }
  .rt__x { width: 44px; height: 44px; font-size: 18px; }
  .rt__done,
  .rt__start { min-height: 44px; padding: 0 2px; font-size: 10.5px; }
  .rt__done input,
  .rt__start input { width: 20px; height: 20px; }
  .rt__tel { min-height: 36px; display: inline-flex; align-items: center; }
  .pt { min-height: 52px; padding: 10px; }
  .field-input,
  .field-mini input[type="file"],
  .field-mini select,
  .import-box select,
  .search-input { min-height: 44px; font-size: 16px; }
  .search-input { font-size: 15px; }
  .search-clear { width: 44px; height: 44px; right: 0; }
  .icon-btn.is-on { background: rgba(201, 138, 75, 0.14); }

  /* popups stay on screen */
  .marker-popup {
    width: min(340px, 92vw);
    max-width: 92vw;
    max-height: 58vh;
  }
  .marker-popup__close { width: 44px; height: 44px; top: 0; right: 0; font-size: 22px; }
  .marker-popup__head { padding-right: 46px; }
  .btn-mini,
  .btn-route { min-height: 44px; padding: 10px 12px; }
  .pp-actions { gap: 8px; }
  body.popup-open .panel-toggle { opacity: 0; pointer-events: none; }

  /* csv import panel scrolls instead of stretching the drawer */
  .import-box { max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .import-report { max-height: 30vh; }

  .demo-banner {
    font-size: 11.5px;
    padding: 7px 12px;
    max-width: calc(100% - 28px);
    white-space: normal;
    text-align: center;
    top: 8px;
  }
  .map-status { max-width: min(520px, 90%); bottom: 78px; }
  .toasts { bottom: 84px; }
  .modal { padding: 14px; }
  .modal__card { max-height: 88dvh; overflow-y: auto; }
}

@media (max-width: 480px) {
  .app-bar { height: 54px; padding: 0 10px; gap: 8px; }
  .app-bar__tag,
  .app-bar__rule,
  .wh-btn,
  .app-bar__user { display: none; }
  .logo__word { font-size: 20px; }
  .logo__sub { font-size: 8.5px; letter-spacing: 0.34em; }
  .app-bar__right { gap: 8px; }
  .theme-toggle { width: 44px; height: 44px; border-radius: 50%; }
  .logout-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .logout-btn__ico { display: block; }
  .logout-btn__text { display: none; }
  .panel-toggle { left: 10px; bottom: 12px; min-height: 48px; padding: 10px 16px; }
  .panel-handle__title { font-size: 10px; }
  .marker-popup { max-height: 54vh; }
}

/* ---------- misc: tel links, desktop-only drawer chrome ---------- */
.pp-tel {
  color: var(--caramel);
  text-decoration: none;
  border-bottom: 1px dotted rgba(201, 138, 75, 0.55);
  white-space: nowrap;
}
.pp-tel:hover { border-bottom-style: solid; }

@media (min-width: 901px) {
  .panel-backdrop { display: none !important; }
  .panel-handle { display: none; }
}

@media (max-width: 900px) {
  .site-header .theme-toggle { width: 40px; height: 40px; }
}
