/* [Design v2 — Betone] entry.css — 2026-08-13
   Split-hero entry page (chistoapp.pro root -> /start): choose "клиентам"
   vs "клинерам", then land on /webapp or /cleaners. Same token names as
   main.py / cleaners.css so all three 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;

  --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; }

html, body {
  height: 100%;
}

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; }

.entry-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Site-wide topbar — same menu as chistoapp.pro/webapp, present on every
   Чисто.Про page without exception (see [Design v2 — Betone] header at
   main.py's .bottom-nav desktop rules for the reference this mirrors). */
.topbar {
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
}
.topbar-nav { display: flex; align-items: center; gap: 2px; order: 1; }
.topbar-brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
  color: var(--accent);
  order: 2;
}
.topbar-right { display: flex; align-items: center; gap: 2px; order: 3; }
.topbar-nav a, .topbar-right a {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 8px 12px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.topbar-nav a:hover, .topbar-right a:hover { color: var(--ink); background: var(--paper-alt); }
@media (min-width: 900px) {
  .topbar-inner { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 24px; }
  .topbar-nav { justify-self: start; order: 0; }
  .topbar-brand { justify-self: center; order: 0; }
  .topbar-right { justify-self: end; order: 0; }
}


/* ================== SPLIT HERO ================== */
.split-hero {
  flex: 1;
  display: flex;
  gap: 20px;
  padding: 0 20px 40px;
  min-height: 560px;
}

.split-half {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 24px;
  display: block;
  background: var(--ink);
}

.split-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  transition: transform .5s cubic-bezier(.16,1,.3,1), filter .4s ease;
}

.split-half::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23,24,26,.75) 0%, rgba(23,24,26,.15) 45%, rgba(23,24,26,.05) 100%);
  transition: opacity .4s ease;
}

.split-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
}

.split-content-right {
  align-items: flex-end;
  text-align: right;
}

.split-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -.01em;
  color: #fff;
  transition: color .3s ease;
}

.split-cta {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink);
}

/* Muted by default, full colour + orange label on hover — desktop/mouse
   only. Touch has no hover to "reveal" the colour with, so on touch the
   photo stays full colour and the label starts already orange (see the
   (hover:none) block below) instead of sitting permanently desaturated. */
@media (hover: hover) {
  .split-photo {
    filter: grayscale(85%) brightness(.9);
  }

  .split-half:hover .split-photo {
    transform: scale(1.035);
    filter: grayscale(0%) brightness(1);
  }

  .split-half:hover .split-title {
    color: var(--accent);
  }

  .split-half:hover::before {
    opacity: .7;
  }
}

@media (hover: none) {
  .split-half:active .split-title {
    color: var(--accent);
  }
}

/* ================== TRUST BAR ================== */
.trust-bar-wrap {
  display: flex;
  justify-content: center;
  padding: 0 20px 32px;
  margin-top: -20px;
}

.trust-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
}

.trust-item {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}

.trust-item.is-active {
  background: var(--ink);
  color: #fff;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 860px) {
  .topbar {
    display: none;
  }

  .split-hero {
    flex-direction: column;
    min-height: auto;
  }

  .split-half {
    min-height: 46vh;
  }

  .split-content-right {
    align-items: flex-start;
    text-align: left;
  }

  .trust-bar {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
  }

  .trust-bar-wrap {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .trust-item {
    font-size: 11px;
    padding: 8px 12px;
  }
}
