/* [Design v2 — Betone] cleaners.css — 2026-08-13
   Reskin of /cleaners onto the same flat/bold system built for /webapp
   (main.py, phase 0-6, 2026-08-12): paper/ink/orange, sharp corners, no
   shadows or glass, uppercase Unbounded display type. Same token names as
   main.py's :root block so the two stay easy to keep in sync by eye. */
:root {
  --paper:      #F2F1EE;
  --paper-alt:  #E8E6E1;
  --surface:    #FFFFFF;
  --ink:        #17181A;
  --muted:      rgba(23,24,26,.58);
  --hair:       rgba(23,24,26,.14);
  --accent:     #FF5A1F;
  --accent-ink: #FFFFFF;
  --good:       #1B7A43;
  --good-soft:  #EAF5EE;
  --warn:       #B45309;
  --warn-soft:  #FBF0DE;
  --danger:     #C0332A;
  --danger-soft:#FBEAE8;

  --radius: 0px;

  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Unbounded', 'Manrope', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

input, select, textarea {
  accent-color: var(--accent);
}
input:focus, select:focus, textarea:focus {
  outline-color: var(--accent);
}

.cleaner-page {
  min-height: 100vh;
}

/* Grows in step with main.py's .app max-width (420/1200/1520/1800 at the
   same breakpoints) so wide screens get the same full-bleed feel as the
   client site instead of staying capped at a phone-ish 1120px. */
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

@media (min-width: 900px) {
  .container { width: min(1160px, calc(100% - 40px)); }
}

@media (min-width: 1280px) {
  .container { width: min(1464px, calc(100% - 56px)); }
}

@media (min-width: 1600px) {
  .container { width: min(1728px, calc(100% - 72px)); }
}

/* ================== HEADER ================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}

.topbar-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a,
.nav button {
  padding: 10px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.nav a.is-active {
  color: var(--accent);
  background: rgba(255,90,31,.1);
}

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: translateY(1px); }

.btn.secondary {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ================== LAYOUT / TYPE ================== */
.section {
  padding: 72px 0;
}

.section.compact {
  padding: 40px 0;
}

.hero-grid,
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 40px;
  align-items: center;
}

/* grid items default to min-width:auto (sized to their content), which lets
   long headings/button rows push the track wider than its share of the
   container instead of wrapping -- on .hero that overflow gets silently
   clipped by the section's own overflow:hidden (added for the decorative
   wordmark), so text just vanishes past the edge instead of wrapping. */
.hero-grid > *,
.two-col > *,
.dashboard-grid > *,
.metric-row > *,
.grid > *,
.steps > *,
.stats-grid > *,
.order-details > *,
.form-grid > * {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.01em;
}

h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: .98;
  font-weight: 800;
  margin-bottom: 20px;
}

h2 {
  font-size: 30px;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 14px;
}

h3 {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 8px;
}

.lead {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 30px;
}

.copy {
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ================== HERO ================== */
/* Same card-with-photo hero as the client side (main.py's .hero2 /
   renderHero()) — kept byte-for-byte in sync by eye, just with the
   cleaner's own image/copy swapped in. */
.hero2 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 16px;
}

.hero2-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px;
}

.hero2-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.hero2-subtitle {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
}

.hero2-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero2-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.hero2-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,90,31,0.1);
  color: var(--accent);
}

.hero2-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.hero2-cta {
  padding: 18px 32px;
  font-size: 15px;
}

.hero2-cta-note {
  font-size: 12px;
  color: var(--muted);
}

.hero2-media {
  position: relative;
  min-height: 300px;
}

.hero2-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (hover: hover) {
  .hero2 { transition: transform .3s ease, box-shadow .3s ease; }
  .hero2:hover { transform: scale(1.01); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
}

@media (min-width: 900px) {
  .hero2 { grid-template-columns: 1fr 1fr; }
  .hero2-content { padding: 56px; gap: 28px; }
  .hero2-subtitle { font-size: 17px; }
  .hero2-benefits { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .hero2-cta { padding: 20px 40px; font-size: 16px; }
  .hero2-media { min-height: 700px; }
}

/* ================== CARDS / GRID ================== */
.panel {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 26px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}

.card {
  background: var(--surface);
  padding: 26px;
  min-height: 152px;
}

.icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  counter-reset: step;
}

.step {
  counter-increment: step;
  background: var(--surface);
  padding: 22px;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}

.faq {
  display: grid;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}

details {
  background: var(--surface);
  padding: 20px 22px;
}

summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+ ";
  color: var(--accent);
  font-weight: 800;
}
details[open] summary::before {
  content: "− ";
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ================== FORMS ================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

/* ================== DASHBOARD ================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1px;
  background: var(--hair);
  align-items: start;
}

.dashboard-grid > .list { background: transparent; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  margin-bottom: 20px;
}

.stat {
  background: var(--surface);
  padding: 24px;
}

.stat .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.stat .value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}

.list {
  display: grid;
  gap: 1px;
  background: var(--hair);
}

.list > * { background: var(--surface); }

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: var(--surface);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--good-soft);
  color: var(--good);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}

.pill.is-amber {
  background: var(--warn-soft);
  color: var(--warn);
}

.state-panel {
  max-width: 760px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.alert {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--good);
  background: var(--good-soft);
  color: var(--good);
  font-weight: 800;
}

.alert.is-error {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.order-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
}

.order-card.is-active {
  border-left-color: var(--accent);
  background: #FFF8F5;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.income {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--good);
}

.order-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}

.order-details div {
  padding: 12px;
  background: var(--paper);
}

.order-details span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 4px;
}

.order-details strong {
  font-size: 14px;
}

.empty-state {
  padding: 30px;
  border: 1px dashed var(--hair);
  background: var(--paper);
  color: var(--muted);
}

.file-action {
  position: relative;
  overflow: hidden;
}

.file-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.compact-item {
  align-items: flex-start;
}

.footer {
  border-top: 1px solid var(--hair);
  padding: 32px 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-legal a {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.profile-dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  margin: 16px 0;
  font-size: 14px;
}

.profile-dl dt {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .03em;
}

.profile-dl dd {
  margin: 0;
  font-weight: 800;
}

.profile-about {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
}

.photo-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--hair);
}

.photo-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--hair);
  display: block;
}

.photo-thumb {
  position: relative;
}

.photo-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.photo-thumb-remove:active { transform: translateY(1px); }

.photo-hint {
  color: var(--warn);
  margin: 0 0 8px;
}

.status-done-msg {
  color: var(--good);
  font-weight: 800;
}

/* ================== CHAT ================== */
.chat-panel {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}

.chat-messages {
  max-height: 280px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--hair);
  margin-bottom: 12px;
}

.chat-bubble {
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: 10px 12px;
}

.chat-bubble.is-mine {
  background: #FFF3EC;
  border-color: rgba(255,90,31,.3);
}

.chat-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-form input {
  flex: 1;
  min-height: 46px;
}

.history-item strong {
  white-space: nowrap;
}

/* ================== CHAT MODAL ================== */
.chats-modal {
  width: min(480px, calc(100% - 32px));
  max-height: min(640px, calc(100% - 64px));
  padding: 20px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  overflow-y: auto;
}

.chats-modal::backdrop {
  background: rgba(23,24,26,.5);
}

.chats-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chats-modal-head h2 {
  margin: 0;
  font-size: 16px;
}

.chats-modal-close {
  border: none;
  background: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  flex-shrink: 0;
}

.chats-modal-close:hover {
  color: var(--ink);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 860px) {
  .topbar-inner {
    position: relative;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: none;
    border: 1px solid var(--hair);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
  }

  .nav-toggle-icon {
    width: 16px;
    height: 11px;
    position: relative;
    flex-shrink: 0;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after,
  .nav-toggle-icon span {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
  }

  .nav-toggle-icon::before { top: 0; }
  .nav-toggle-icon span { top: 4.5px; }
  .nav-toggle-icon::after { bottom: 0; }

  /* Collapsed by default: an absolutely-positioned dropdown panel instead of
     a permanent second header row, so the working cleaner's dashboard isn't
     losing a whole viewport row of chrome to links they only need rarely
     (Работа/Анкета/Клиентский сайт) once they're already logged in. */
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--hair);
    box-shadow: 0 8px 20px rgba(23,24,26,.12);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hair);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .hero-grid,
  .two-col,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .grid,
  .steps,
  .stats-grid,
  .form-grid,
  .order-details {
    grid-template-columns: 1fr;
  }

  .section-head,
  .order-card-head {
    flex-direction: column;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero::after {
    font-size: 110px;
    bottom: -6%;
  }

  .metric-row {
    gap: 6px;
  }

  .metric {
    padding: 10px;
  }

  .metric-value {
    font-size: 15px;
  }
}
