/* Темы оформления клиентской страницы: tenant.theme, в демо — ?theme=.
   Каждая тема меняет не только цвета, но и компоновку: шапку, логотип, вид услуг, кнопки. */

/* общее: шапка с фото уходит в тёмное, чтобы белое название читалось */
body.client .cl-hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(10,11,13,.92) 100%); }

/* ---------- Гараж: тёмная + оранжевый, индустриально ---------- */
body.theme-orange { --accent: #ff6a13; --on-accent: #111111; --tile: #1b1f25; --border: #2b3038; }
body.theme-orange .cl h2 { color: #ff6a13; }
body.theme-orange .cl .tile { border-radius: 10px; border-left: 4px solid #2b3038; }
body.theme-orange .cl .tile.active { background: #1b1f25; color: #fff; border-color: #ff6a13; border-left-color: #ff6a13; }
body.theme-orange .cl .tile.active span { color: #ff6a13; opacity: 1; }
body.theme-orange .cl-logo { border-radius: 8px; }

/* ---------- общее для светлых тем со «светлой шапкой»: обложка, под ней логотип и тёмное название ---------- */
body.theme-yellow, body.theme-classic, body.theme-mint { color-scheme: light; }
body.theme-yellow .cl-hero, body.theme-classic .cl-hero, body.theme-mint .cl-hero { height: auto; overflow: visible; background: transparent; }
body.theme-yellow .cl-hero-img, body.theme-classic .cl-hero-img, body.theme-mint .cl-hero-img { position: relative; inset: auto; height: 180px; }
body.theme-yellow .cl-hero-shade, body.theme-classic .cl-hero-shade, body.theme-mint .cl-hero-shade { display: none; }
body.theme-yellow .cl-hero-empty, body.theme-classic .cl-hero-empty, body.theme-mint .cl-hero-empty {
  background: linear-gradient(135deg, #e3e6ec, #cfd4dc); color: rgba(0,0,0,.06); }
body.theme-yellow .cl-ph-note, body.theme-classic .cl-ph-note, body.theme-mint .cl-ph-note {
  top: 90px; color: rgba(0,0,0,.6); border-color: rgba(0,0,0,.25); }
body.theme-yellow .cl-hero-body, body.theme-classic .cl-hero-body, body.theme-mint .cl-hero-body {
  position: relative; left: auto; right: auto; bottom: auto; flex-direction: column; align-items: flex-start;
  gap: 20px; padding: 0 16px; margin-top: -36px; }
body.theme-yellow .cl h1, body.theme-classic .cl h1, body.theme-mint .cl h1 { color: var(--text); text-transform: none; letter-spacing: 0; }
body.theme-yellow .cl-meta, body.theme-classic .cl-meta, body.theme-mint .cl-meta { color: var(--muted); }
body.theme-yellow .cl-star, body.theme-classic .cl-star, body.theme-mint .cl-star { color: var(--text); }
body.theme-yellow .cl-ph-logo, body.theme-classic .cl-ph-logo, body.theme-mint .cl-ph-logo { color: var(--muted); }
body.theme-yellow .cl h2, body.theme-classic .cl h2, body.theme-mint .cl h2 { text-transform: none; letter-spacing: 0; font-size: 20px; color: var(--text); }
body.theme-yellow .demo-bar, body.theme-classic .demo-bar, body.theme-mint .demo-bar, body.theme-premium .demo-bar { background: #fff4d6; color: #6b4a00; }

/* ---------- Жёлтая (в духе Яндекс Go): фото скруглённой карточкой, большие белые плитки ---------- */
body.theme-yellow { --bg: #f5f4f2; --card: #ffffff; --tile: #ffffff; --border: #ffffff; --chip: #ffffff;
  --text: #21201f; --muted: #6b6b6b; --accent: #fce000; --on-accent: #21201f; }
body.theme-yellow .cl-hero-img { width: calc(100% - 24px); margin: 12px 12px 0; border-radius: 26px; }
body.theme-yellow .cl-logo { border-radius: 20px; border: 4px solid #f5f4f2; margin-left: 12px; }
body.theme-yellow .cl h1 { font-size: 28px; font-weight: 800; }
body.theme-yellow .cl .tile { border-radius: 24px; min-height: 104px; }
body.theme-yellow .cl .chip { border-radius: 14px; font-weight: 700; }
body.theme-yellow .cl .cta-bar .btn { border-radius: 20px; text-transform: none; font-size: 17px; }

/* ---------- Синяя (классика): круглый логотип и название по центру, услуги строками со стрелкой ---------- */
body.theme-classic { --bg: #f3f4f8; --card: #ffffff; --tile: #ffffff; --border: #e3e6ef; --chip: #ffffff;
  --text: #1f2430; --muted: #6b7280; --accent: #4b5bdc; --on-accent: #ffffff; }
body.theme-classic .cl-hero-body { align-items: center; text-align: center; margin-top: -44px; }
body.theme-classic .cl-logo { width: 88px; height: 88px; border-radius: 50%; border: 4px solid #fff; font-size: 26px; }
body.theme-classic .cl-hero-body > div:last-child { width: 100%; }
body.theme-classic .cl h1 { font-size: 22px; }
body.theme-classic .tiles { grid-template-columns: 1fr; gap: 8px; }
body.theme-classic .cl .tile { flex-direction: row; align-items: center; min-height: 64px; border-radius: 12px; }
body.theme-classic .cl .tile span { margin-left: auto; text-align: right; white-space: nowrap; }
body.theme-classic .cl .tile::after { content: "\203A"; font-size: 22px; color: var(--muted); margin-left: 6px; }
body.theme-classic .cl .tile.active::after { color: var(--on-accent); }
body.theme-classic .cl .cta-bar .btn { border-radius: 12px; text-transform: none; }

/* ---------- Мятная (витрина в духе DIKIDI): квадратный аватар на обложке, список с «+» ---------- */
body.theme-mint { --bg: #ffffff; --card: #ffffff; --tile: #ffffff; --border: #eef0f2; --chip: #f1f8f5;
  --text: #111827; --muted: #6b7280; --accent: #10b981; --on-accent: #ffffff; }
body.theme-mint .cl-logo { width: 80px; height: 80px; border-radius: 22px; border: 4px solid #fff; }
body.theme-mint .cl h2 { color: #10b981; font-size: 15px; border-bottom: 2px solid #10b981; display: inline-block; padding-bottom: 6px; }
body.theme-mint .tiles { grid-template-columns: 1fr; gap: 0; }
body.theme-mint .cl .tile { flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; min-height: 66px; padding: 12px 0; background: transparent; }
body.theme-mint .cl .tile span { margin-left: auto; color: var(--text); font-weight: 700; }
body.theme-mint .cl .tile::after { content: "+"; flex: none; width: 34px; height: 34px; margin-left: 12px; border-radius: 10px;
  background: #ecfdf5; color: #10b981; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
body.theme-mint .cl .tile.active { background: transparent; color: var(--text); }
body.theme-mint .cl .tile.active::after { content: "\2713"; background: #10b981; color: #fff; }
body.theme-mint .cl .tile.active span { color: #10b981; opacity: 1; }

/* ---------- Премиум: тёмное фото во всю высоту, название с засечками, услуги списком с линиями ---------- */
body.theme-premium { --bg: #ffffff; --card: #ffffff; --tile: #ffffff; --border: #e8e8e8; --chip: #ffffff;
  --text: #111111; --muted: #8a8f98; --accent: #111111; --on-accent: #ffffff; color-scheme: light; }
body.theme-premium .cl-hero { height: 400px; }
body.theme-premium .cl h1 { font-family: Georgia, "Times New Roman", serif; text-transform: none; font-weight: 400;
  font-size: 34px; letter-spacing: -.3px; }
body.theme-premium .cl-logo { border-radius: 50%; }
body.theme-premium .cl-badge { background: #fff; color: #111; border-radius: 99px; }
body.theme-premium .tiles { grid-template-columns: 1fr; gap: 0; }
body.theme-premium .cl .tile { flex-direction: row; align-items: baseline; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; min-height: 0; padding: 18px 0; background: transparent; }
body.theme-premium .cl .tile b { font-weight: 500; font-size: 16px; }
body.theme-premium .cl .tile span { margin-left: auto; color: var(--text); }
body.theme-premium .cl .tile.active { background: transparent; color: var(--text); }
body.theme-premium .cl .tile.active b { font-weight: 800; }
body.theme-premium .cl .tile.active b::before { content: "\2014  "; }
body.theme-premium .cl .tile.active span { color: var(--text); opacity: 1; }
body.theme-premium .cl .chip { border-radius: 0; border-color: #111; background: #fff; }
body.theme-premium .cl .chip.active { background: #111; color: #fff; }
body.theme-premium .cl .cta-bar .btn { border-radius: 99px; text-transform: none; letter-spacing: .3px; }

body.theme-premium .cl .tile.active { background: #111; color: #fff; padding-left: 14px; padding-right: 14px; }
body.theme-premium .cl .tile.active span { color: #fff; }

/* длинные названия переносятся в любой теме */
body.client .cl-hero-body > div:last-child { min-width: 0; }
body.client .cl h1 { overflow-wrap: anywhere; }
/* премиум: чёрный акцент не должен прятать логотип на тёмном фото */
body.theme-premium .cl-mono { background: #fff; color: #111; }
/* премиум: кнопки «позвонить / маршрут» — белые, как плашка «открыто до» */
body.theme-premium .cl .cl-round { background: #fff; color: #111; border-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
body.theme-premium .cl h1 { font-size: 28px; line-height: 1.15; }
