/* Цеховик · Заказы — дизайн-токены cehovik.pro */
:root{
  --canvas:#0f1113;
  --surface:#1c1e20;
  --ink:#f7f7f8;
  --muted:#9aa3ad;
  --line:#383e46;
  --line-soft:#ffffff14;
  --accent:#d1fe17;
  --accent-hover:#e2ff5c;
  --accent-ink:#14151a;
  --accent-soft:#d1fe171a;
  --data:#5cc8f5;
  --danger:#f87171;
  --ok:#4ade80;
  --radius:16px;
  --radius-sm:12px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--canvas);
  color:var(--ink);
  font-family:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:16px;line-height:1.55;
  min-height:100vh;
}
h1,h2,h3,.display{font-family:'Space Grotesk',ui-sans-serif,system-ui,sans-serif;letter-spacing:-.01em}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;border-radius:var(--radius-sm)}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}

/* ── Шапка ── */
.site-header{
  position:sticky;top:0;z-index:50;
  background:#0f1113d9;backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft);
}
.site-header .wrap{display:flex;align-items:center;gap:28px;height:64px}
.logo{font-family:'Space Grotesk',ui-sans-serif,system-ui,sans-serif;font-weight:700;font-size:20px;color:var(--ink);white-space:nowrap}
.logo b{color:var(--accent);font-weight:700}
.logo span{color:var(--muted);font-weight:500;font-size:14px;margin-left:6px}
nav{display:flex;gap:20px;margin-left:auto;align-items:center;flex-wrap:wrap}
nav a{color:var(--muted);font-size:14.5px;font-weight:500}
nav a:hover{color:var(--ink);text-decoration:none}
nav a.active{color:var(--ink)}

/* ── Кнопки ── */
.btn{
  display:inline-block;background:var(--accent);color:var(--accent-ink);
  font-family:'Space Grotesk','Inter',ui-sans-serif,system-ui,sans-serif;font-weight:600;font-size:15px;
  border:none;border-radius:var(--radius-sm);
  padding:12px 22px;cursor:pointer;transition:.15s;text-align:center;
}
.btn:hover{background:var(--accent-hover);text-decoration:none}
.btn.sm{padding:8px 14px;font-size:14px}
.btn-ghost{
  display:inline-block;background:transparent;color:var(--ink);
  border:1px solid var(--line);border-radius:var(--radius-sm);
  font-family:'Space Grotesk','Inter',ui-sans-serif,system-ui,sans-serif;font-weight:600;font-size:15px;
  padding:11px 21px;cursor:pointer;transition:.15s;text-align:center;
}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}
.btn-ghost.sm{padding:7px 13px;font-size:14px}
.btn[disabled]{opacity:.5;cursor:not-allowed}

/* ── Hero ── */
.hero{padding:72px 0 48px;text-align:center}
.hero h1{font-size:clamp(34px,6vw,58px);font-weight:700;line-height:1.08;max-width:820px;margin:0 auto 18px}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero p{color:var(--muted);font-size:18px;max-width:620px;margin:0 auto 30px}
.hero .cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ── Секции ── */
.section{padding:44px 0}
.section>h2{font-size:28px;font-weight:700;margin-bottom:22px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.section-head h2{font-size:28px;font-weight:700}
.section-head a{font-size:14.5px}

/* ── Карточки ── */
.card{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--radius);padding:22px}
.grid{display:grid;gap:16px}
.grid-3{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.grid-2{grid-template-columns:repeat(auto-fill,minmax(440px,1fr))}
@media(max-width:560px){.grid-2{grid-template-columns:1fr}}

/* ── Чипы / бейджи ── */
.chip{
  display:inline-block;font-size:12.5px;font-weight:500;color:var(--muted);
  border:1px solid var(--line);border-radius:999px;padding:3px 11px;
}
.chip.accent{color:var(--accent-ink);background:var(--accent);border-color:var(--accent);font-weight:600}
.chip.data{color:var(--data);border-color:#5cc8f540;background:#5cc8f51a}
.badge{
  display:inline-block;font-size:12.5px;font-weight:600;border-radius:8px;padding:3px 10px;
}
.badge.ok{background:#4ade8022;color:var(--ok)}
.badge.wait{background:#fbbf2422;color:#fbbf24}
.badge.off{background:#ffffff10;color:var(--muted)}
.badge.danger{background:#f8717118;color:var(--danger)}

/* ── Шаги ── */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;counter-reset:step}
.step{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--radius);padding:22px}
.step::before{
  counter-increment:step;content:"0" counter(step);
  font-family:'Space Grotesk','Inter',ui-sans-serif,system-ui,sans-serif;font-weight:700;font-size:15px;color:var(--accent-ink);
  background:var(--accent);border-radius:8px;padding:2px 9px;display:inline-block;margin-bottom:14px;
}
.step h3{font-size:17px;margin-bottom:8px}
.step p{color:var(--muted);font-size:14.5px}

/* ── Формы ── */
.form{max-width:640px}
.form label{display:block;font-size:13.5px;font-weight:600;color:var(--muted);margin:16px 0 6px}
.form label:first-child{margin-top:0}
.form input,.form select,.form textarea{
  width:100%;background:var(--canvas);border:1px solid var(--line);border-radius:var(--radius-sm);
  color:var(--ink);font:inherit;font-size:15px;padding:11px 14px;outline:none;transition:.15s;
}
.form input:focus,.form select:focus,.form textarea:focus{border-color:var(--accent)}
.form textarea{min-height:110px;resize:vertical}
.form .hint{font-size:12.5px;color:var(--muted);margin-top:5px}
.form .btn{margin-top:22px}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:560px){.form .row{grid-template-columns:1fr}}

/* ── Заказ-карточка ── */
.order-card h3{font-size:18px;margin:10px 0 8px}
.order-card .meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.order-card p{color:var(--muted);font-size:14.5px}
.order-card .price{font-family:'Space Grotesk','Inter',ui-sans-serif,system-ui,sans-serif;font-weight:700;color:var(--accent);font-size:18px}
.order-card .photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:12px}
.order-card .foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;flex-wrap:wrap}
.muted{color:var(--muted)}
.small{font-size:13.5px}
.desc{white-space:pre-line;color:var(--ink)}

/* ── Отклик ── */
.response{border-left:3px solid var(--accent)}
.response .top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.response .who{font-family:'Space Grotesk','Inter',ui-sans-serif,system-ui,sans-serif;font-weight:600;font-size:16.5px}
.response .price{font-family:'Space Grotesk','Inter',ui-sans-serif,system-ui,sans-serif;font-weight:700;font-size:20px;color:var(--accent)}

/* ── Баннер/алерты ── */
.flash{
  border:1px solid #4ade8040;background:#4ade8014;color:var(--ok);
  border-radius:var(--radius-sm);padding:13px 16px;font-size:14.5px;margin-bottom:20px;white-space:pre-line;
}
.flash.warn{border-color:#fbbf2440;background:#fbbf2414;color:#fbbf24}
.flash.err{border-color:#f8717140;background:#f8717114;color:var(--danger)}

/* ── Кабинет: разрез ── */
.split{display:grid;grid-template-columns:1fr;gap:28px}
.split>h2{font-size:22px;margin-bottom:14px}
.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px}

/* ── Таблицы (админ) ── */
table{width:100%;border-collapse:collapse;font-size:13.5px}
th,td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line-soft)}
th{color:var(--muted);font-weight:500}

/* ── Футер ── */
.site-footer{border-top:1px solid var(--line-soft);margin-top:60px;padding:28px 0;color:var(--muted);font-size:13.5px}
.site-footer .wrap{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}

/* ── Auth-карточка ── */
.auth{max-width:440px;margin:56px auto}
.auth .card{padding:28px}
.auth h1{font-size:26px;margin-bottom:4px}
.auth .sub{color:var(--muted);font-size:14.5px;margin-bottom:18px}
.auth .alt{margin-top:16px;font-size:14px;color:var(--muted)}

/* ── Оплата ── */
.paybox{max-width:480px;margin:56px auto;text-align:center}
.paybox .sum{font-family:'Space Grotesk','Inter',ui-sans-serif,system-ui,sans-serif;font-weight:700;font-size:44px;color:var(--accent);margin:10px 0}
.paybox .note{color:var(--muted);font-size:14px;margin:14px 0 22px}
.kv{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--line-soft);font-size:14.5px}
.kv span:first-child{color:var(--muted)}

/* ── Чат ── */
.chat .card{max-width:820px}
#msgs{display:flex;flex-direction:column;gap:8px;max-height:52vh;overflow-y:auto;padding:6px 2px}
.bubble{max-width:78%;padding:10px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--line-soft);font-size:15px;word-wrap:break-word}
.bubble.me{align-self:flex-end;background:var(--accent-soft);border-color:#d1fe173d}
.bubble.them{align-self:flex-start}
.btime{font-size:11.5px;color:var(--muted);margin-top:4px}
.chform{display:flex;gap:10px;margin-top:14px;align-items:flex-end}
.chform textarea{flex:1;min-height:64px;max-height:120px;background:var(--canvas);border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--ink);font:inherit;font-size:15px;padding:10px 12px;outline:none}
.chform .btn{white-space:nowrap}

/* ── Работы мастера ── */
.works-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.work{position:relative}
.work img{width:100%;height:110px;object-fit:cover;border-radius:10px;border:1px solid var(--line-soft);display:block}
.work .del{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:8px;border:1px solid var(--line);background:#0f1113cc;color:var(--ink);cursor:pointer;font-size:16px;line-height:1}
.work .del:hover{border-color:var(--danger);color:var(--danger)}
.delform{display:inline}

/* ── Пакеты откликов ── */
.pkg-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.pkg{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.pkg-n{font-family:'Space Grotesk',ui-sans-serif,system-ui,sans-serif;font-weight:700;font-size:40px;color:var(--accent)}
.pkg-t{color:var(--muted);font-size:14px}
.pkg-p{font-weight:700;font-size:22px}
.pkg-u{font-size:12.5px;color:var(--muted);margin-bottom:10px}

/* ── Счётчик непрочитанных ── */
.cnt{display:inline-block;background:var(--danger);color:#fff;font-size:12px;font-weight:700;border-radius:999px;padding:1px 7px;margin-left:6px}

/* ── Согласие с политикой ── */
.consent{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:var(--muted);margin:16px 0 4px;line-height:1.5}
.consent input{width:17px;height:17px;margin-top:2px;accent-color:var(--accent);flex:none}
.consent a{color:var(--accent)}

/* ===== Logo & hero (v3.1) ===== */
.site-header .logo{display:flex;align-items:center}
.logo-img{height:46px;width:auto;display:block;border-radius:10px}
.hero{position:relative;padding-top:40px;overflow:visible}
.hero-logo{display:block;width:min(400px,80vw);height:auto;margin:0 auto 8px;border-radius:28px;
  filter:drop-shadow(0 0 70px rgba(209,254,23,.13))}
.hero::before{content:"";position:absolute;top:-140px;left:50%;transform:translateX(-50%);
  width:760px;height:760px;border-radius:50%;pointer-events:none;z-index:0;
  background:radial-gradient(closest-side,rgba(209,254,23,.09),transparent 70%)}
.hero>*{position:relative;z-index:1}
body::after{content:"";position:fixed;inset:0;z-index:2000;pointer-events:none;opacity:.05;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E")}
/* mono for prices */
.sum,.pkg-p,.response .price,.pkg-n{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,monospace;letter-spacing:-.02em}
/* interactions */
button{cursor:pointer}
a,button{transition:filter .2s ease,transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.card{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.card:hover{transform:translateY(-2px);border-color:rgba(209,254,23,.30);box-shadow:0 12px 40px rgba(0,0,0,.35)}
.btn:hover{filter:brightness(1.07)}
.btn:active,.btn-ghost:active{transform:scale(.97)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
/* motion pre-hide (html.anim set by inline script; safety timeout in motion.js) */
html.anim .hero-logo,html.anim .hero h1,html.anim .hero p,html.anim .hero .cta{opacity:0}
/* chat bubble pop */
.bubble{animation:bubbleIn .22s ease both}
@keyframes bubbleIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* reduced motion */
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html.anim .hero-logo,html.anim .hero h1,html.anim .hero p,html.anim .hero .cta{opacity:1}
}
