/* Карев — публичные страницы сервиса (владелец: исполнитель Д).

Здесь три вещи и только они:
  - главная сервиса (templates/public_home.html);
  - страницы «не найдено» и «домен ещё не подтверждён» (templates/not_found.html);
  - пометка «черновик, видно только вам» (её вставляет routes_public.py поверх вывода Б).
Стили самого клип-лендинга — static/clip.css (исполнитель Б), их не трогаем.

Оформление — по эталону из _скриншоты/эталон-страница-фото-сверху.jpg и
_скриншоты/эталон-страница-фото-в-теле-и-заголовок.jpg: тёмный фон, по центру белая карточка со
скруглением, жёлтая плашка, крупный заголовок, большие скруглённые кнопки с жёлтым
градиентом (#feae00 → #ffdf00, как .btn в _ref/akarev_index_css.css). Шрифты системные,
внешних CDN нет.
*/

:root {
  --ink: #17162b;
  --ink-2: #2a2846;
  --bg: #31313a;
  --bg-2: #26262d;
  --card: #ffffff;
  --text: #1d1c2b;
  --body: #3f3f3f;
  --muted: #6f6d84;
  --line: #e4e6ed;
  --yellow: #ffe032;
  --yellow-1: #feae00;
  --yellow-2: #ffdf00;
  --blue: #20a4ef;
  --r-card: 25px;
  --r-btn: .75em;
  --shadow-card: 0 18px 60px rgba(0, 0, 0, .35);
  --shadow-btn: 0 .15em .75em rgba(32, 0, 160, .3);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

.ph-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font: 400 17px/1.55 var(--font);
  color: #fff;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 224, 50, .13), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
}

.ph-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.ph-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }

/* ------------------------------------------------------------- шапка */

.ph-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(38, 38, 45, .82);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.ph-top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}

.ph-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .2px;
}

.ph-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow-1));
  color: #241a00;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(254, 174, 0, .35);
}

.ph-brand-text { display: inline-flex; align-items: baseline; gap: 8px; }
.ph-brand-text small {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .3px;
  text-transform: uppercase;
}

.ph-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ph-inline { display: inline; margin: 0; }

/* ------------------------------------------------------------- кнопки */

.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font: 700 16px/1.1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}

.ph-btn-yellow {
  background: linear-gradient(180deg, var(--yellow-2) 0%, var(--yellow-1) 100%);
  color: #161400;
  box-shadow: var(--shadow-btn);
}

.ph-btn-yellow:hover { transform: translateY(-3px); box-shadow: 0 .35em 1em rgba(32, 0, 160, .32); }

.ph-btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}

.ph-btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }

.ph-btn-blue {
  background: var(--blue);
  color: #fff;
}

.ph-btn-blue:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(32, 164, 239, .4); }

.ph-btn-big {
  min-height: 62px;
  padding: 0 34px;
  font-size: 19px;
}

.ph-btn:focus-visible { outline: 3px solid var(--yellow-2); outline-offset: 3px; }

/* ------------------------------------------------------------- главный блок */

.ph-hero { padding: 54px 0 10px; }

.ph-card {
  position: relative;
  background: var(--card);
  color: var(--text);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 44px 44px 40px;
}

.ph-card h1 {
  margin: 16px 0 18px;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -.4px;
  font-weight: 800;
}

.ph-plaque {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 10px;
  background: var(--yellow);
  color: #2b2500;
  font-size: 14px;
  font-weight: 700;
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

.ph-lead {
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--body);
  max-width: 46em;
}

.ph-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ph-note { flex-basis: 100%; margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------- три пункта */

.ph-points { padding: 46px 0 10px; }

.ph-h2 {
  margin: 0 0 22px;
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -.2px;
  color: #fff;
}

.ph-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ph-point {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
}

.ph-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow-1));
  color: #241a00;
  font-weight: 800;
  font-size: 18px;
}

.ph-point h3 { margin: 0 0 8px; font-size: 19px; font-weight: 750; color: #fff; }
.ph-point p { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .74); }

.ph-bottom-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 34px 0 8px;
}

.ph-or { color: rgba(255, 255, 255, .6); font-size: 15px; }

/* ------------------------------------------------------------- подвал */

.ph-foot {
  margin-top: auto;
  padding: 40px 0 30px;
  color: rgba(255, 255, 255, .45);
  font-size: 13.5px;
}

.ph-foot p { margin: 0; }

/* ------------------------------------------------------------- страница «не найдено» */

.nf-main { padding: 48px 0 20px; flex: 1 0 auto; }

.nf-num {
  font-size: clamp(72px, 14vw, 132px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -4px;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, var(--yellow-2), rgba(254, 174, 0, .55));
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0 0 6px;
  user-select: none;
}

.nf-card { max-width: 720px; margin: 0 auto; }

.nf-card h1 { margin-top: 6px; font-size: clamp(24px, 3.4vw, 34px); }
.nf-card p { color: var(--body); }
.nf-card .ph-lead { font-size: 18px; }

.nf-detail {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13.5px;
  color: var(--muted);
  background: #f6f7fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.nf-draft {
  margin: 6px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6cc;
  border: 1px solid #f0d200;
  color: #3a3200;
  font-size: 15px;
}

.nf-other { margin: 6px 0 22px; }

.nf-other-title { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); }

.nf-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f4f5f8;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}

.nf-list a:hover { background: #eceef4; }

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.nf-card .ph-btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.nf-card .ph-btn-ghost:hover { background: #fafbfd; border-color: #c9cdd8; }

/* ------------------------------------------------------------- пометка «черновик» */

.kv-draft-badge {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 2147483000;
  max-width: min(680px, 92vw);
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff6cc;
  border: 1px solid #f0d200;
  box-shadow: 0 6px 20px rgba(23, 22, 43, .18);
  font: 500 14px/1.4 var(--font);
  color: #3a3200;
  text-align: center;
}

.kv-draft-badge b { font-weight: 800; }

/* ------------------------------------------------------------- телефон и планшет */

@media (max-width: 900px) {
  .ph-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.ph-body { font-size: 16px; }
  .ph-wrap { padding: 0 14px; }
  .ph-top-in { min-height: 62px; }
  .ph-brand-text small { display: none; }
  .ph-nav .ph-btn { min-height: 42px; padding: 0 14px; font-size: 14.5px; }
  .ph-hero { padding: 24px 0 8px; }
  .ph-card { padding: 26px 20px 26px; border-radius: 20px; }
  .ph-lead { font-size: 16.5px; }
  .ph-cta { display: grid; grid-template-columns: 1fr; }
  .ph-cta .ph-btn { width: 100%; }
  .ph-btn-big { min-height: 58px; font-size: 17.5px; width: 100%; }
  .ph-bottom-cta { display: grid; grid-template-columns: 1fr; }
  .ph-bottom-cta .ph-btn { width: 100%; }
  .ph-or { justify-self: center; }
  .ph-point { padding: 20px 18px; }
  .nf-main { padding: 28px 0 10px; }
  .nf-num { letter-spacing: -2px; }
  .nf-actions { display: grid; grid-template-columns: 1fr; }
  .nf-actions .ph-btn { width: 100%; }
  .ph-foot { padding: 28px 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-btn { transition: none; }
  .ph-btn:hover { transform: none; }
}
