/* Спільні стилі стартової сторінки і кабінету клієнта (у стилі pps.com.ua) */
:root {
  --bg: #1a1a1a;
  --surface: #232322;
  --surface-2: #2c2c2a;
  --line: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.58);
  --olive: #4f5241;
  --olive-light: #9da084;
  --accent: #6b6f55;
  --accent-hover: #7b7f63;
  --danger: #e38b7a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 Montserrat, Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { font: 700 18px/1 Manrope, sans-serif; letter-spacing: 0.08em; }
.brand small { display: block; font-size: 10px; letter-spacing: 0.04em; color: var(--muted); margin-top: 3px; }
.site-link { font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; transition: color .15s, border-color .15s; }
.site-link:hover { color: var(--text); border-color: rgba(255,255,255,.25); }

main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 56px 0; position: relative; overflow: hidden; }
/* великий знак CUSTOS як фон — без фото, щоб сторінка вантажилась миттєво */
.bg-mark { position: absolute; right: -160px; top: 50%; transform: translateY(-50%); width: 720px; height: 720px; opacity: .06; pointer-events: none; }
.grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; position: relative; }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-light); margin-bottom: 18px; }
h1 { font: 600 44px/1.15 Manrope, sans-serif; margin: 0 0 18px; letter-spacing: -0.01em; text-wrap: balance; }
.lead { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 0 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 12px; font-size: 13px; }
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive-light); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.card h2 { font: 600 22px/1.3 Manrope, sans-serif; margin: 0 0 4px; }
.card p.sub { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
input {
  width: 100%; height: 46px; padding: 0 14px; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--olive-light); box-shadow: 0 0 0 3px rgba(157,160,132,.18); }
.pw { position: relative; }
.pw input { padding-right: 84px; }
.pw button { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 12px Montserrat, sans-serif; cursor: pointer; }
.pw button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.btn {
  width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff; font: 600 15px Montserrat, sans-serif; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.btn.ghost:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.error { display: none; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: rgba(227,139,122,.1); border: 1px solid rgba(227,139,122,.3); color: var(--danger); font-size: 13px; }
.error.show { display: block; }
.hint { margin: 18px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px; background: var(--surface-2); border-radius: 12px; }
.who .ava { width: 40px; height: 40px; border-radius: 50%; background: var(--olive); display: grid; place-items: center; font: 600 16px Manrope, sans-serif; }
.who small { display: block; color: var(--muted); font-size: 12px; }
[hidden] { display: none !important; }

footer { border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .card { order: -1; }           /* на телефоні спершу вхід */
  h1 { font-size: 30px; }
  main { padding: 32px 0; justify-content: flex-start; }
  .bg-mark { width: 480px; height: 480px; right: -200px; top: 120px; transform: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .card { padding: 24px 20px; border-radius: 16px; }
  .site-link { padding: 7px 12px; }
  .brand small { display: none; }
}

/* ---------- Посилання на кабінет клієнта ---------- */
.client-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--olive-light); font-size: 14px; font-weight: 500; text-decoration: none; }
.client-link:hover { color: var(--text); }

/* ---------- Статус замовлення ---------- */
.status-wrap { max-width: 720px; }
.status-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.status-form .field { margin: 0; }
.status-form .btn { margin: 0; width: auto; padding: 0 28px; }
.result { margin-top: 24px; }
.result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.result-head h2 { margin: 0; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(157,160,132,.15); color: var(--olive-light); }
.pill.cancelled { background: rgba(227,139,122,.12); color: var(--danger); }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.steps li { font-size: 12px; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--surface-2); }
.steps li.done { color: var(--text); border-color: var(--olive-light); }
.steps li.current { color: var(--text); font-weight: 600; border-color: var(--olive-light); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 20px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.lines td { padding: 10px 0; border-top: 1px solid var(--line); }
.lines td.q { text-align: right; white-space: nowrap; color: var(--muted); padding-left: 16px; }
.total { text-align: right; margin-top: 12px; font-weight: 600; }
@media (max-width: 640px) {
  .status-form { grid-template-columns: 1fr; }
  .status-form .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { border-top: 0; border-left: 3px solid var(--surface-2); padding: 6px 0 6px 12px; }
}

/* ---------- Вхід через Google ---------- */
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn.google { background: #fff; color: #1f1f1f; font-weight: 500; margin-top: 0; }
.btn.google:hover { background: #ececec; }
.notice { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: rgba(157,160,132,.12); border: 1px solid rgba(157,160,132,.3); color: var(--text); font-size: 13px; line-height: 1.5; }
.notice.bad { background: rgba(227,139,122,.1); border-color: rgba(227,139,122,.3); color: var(--danger); }
