/* ============================================================
   Сервис мастеров — единая система стилей
   Мобильный экран первичен, десктоп — расширение.
   ============================================================ */

:root{
  --brand:#ff6a1a; --brand-dark:#e05305; --brand-soft:#fff1e8; --brand-ink:#7c2d02;
  --ink:#0f172a; --ink-2:#334155; --mut:#64748b; --mut-2:#94a3b8;
  --bg:#f5f6f8; --surface:#ffffff; --surface-2:#f8fafc; --line:#e6e9ef; --line-2:#d5dae3;
  --ok:#16a34a; --ok-soft:#e8f7ee; --warn:#d97706; --warn-soft:#fff5e5;
  --danger:#dc2626; --danger-soft:#fdecec; --info:#2563eb; --info-soft:#eaf1ff;
  --navy:#0f172a; --navy-2:#1e293b; --navy-3:#334155;
  --r-s:10px; --r:14px; --r-l:20px; --r-xl:26px;
  --sh-s:0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --sh:0 4px 16px rgba(15,23,42,.07), 0 1px 3px rgba(15,23,42,.04);
  --sh-l:0 18px 48px rgba(15,23,42,.14);
  --head-h:60px;
  --font:'Inter','Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--font); background:var(--bg); color:var(--ink);
  font-size:16px; line-height:1.55; min-height:100vh; overflow-x:hidden;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button,input,select,textarea{font:inherit; color:inherit}
b,strong{font-weight:700}
h1,h2,h3,h4{line-height:1.2; font-weight:800; letter-spacing:-.02em}
h1{font-size:26px} h2{font-size:22px} h3{font-size:18px} h4{font-size:16px}
@media(min-width:760px){ h1{font-size:36px} h2{font-size:27px} h3{font-size:20px} body{font-size:16.5px} }
small{font-size:13px}
hr{border:0;border-top:1px solid var(--line);margin:18px 0}

/* ---------- каркас ---------- */
.wrap{width:100%; max-width:1180px; margin:0 auto; padding:0 16px}
.wrap-narrow{max-width:760px}
.wrap-mid{max-width:960px}
.main{min-height:60vh; padding-bottom:40px}
.l-cabinet .main, .l-admin .main{padding-bottom:96px}
@media(min-width:900px){ .l-cabinet .main, .l-admin .main{padding-bottom:40px} }
.section{padding:36px 0}
.section--tight{padding:22px 0}
@media(min-width:760px){ .section{padding:52px 0} }
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:18px; flex-wrap:wrap}
.section-head p{color:var(--mut); font-size:15px; margin-top:4px}
.stack{display:flex; flex-direction:column; gap:12px}
.stack-s{display:flex; flex-direction:column; gap:8px}
.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.row-between{display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap}
.spacer{flex:1}
.grid{display:grid; gap:14px}
.grid-2{grid-template-columns:1fr}
.grid-3{grid-template-columns:1fr}
.grid-4{grid-template-columns:repeat(2,1fr)}
@media(min-width:640px){ .grid-2{grid-template-columns:repeat(2,1fr)} .grid-3{grid-template-columns:repeat(2,1fr)} }
@media(min-width:980px){ .grid-3{grid-template-columns:repeat(3,1fr)} .grid-4{grid-template-columns:repeat(4,1fr)} }
.hide-mob{display:none}
/* .btn задаёт свой display ниже по файлу и с тем же весом перебивал .hide-mob —
   из-за этого кнопки «Войти»/«Кабинет» не прятались и шапка вылезала за 375 px */
.btn.hide-mob{display:none}
@media(min-width:760px){ .hide-mob{display:block} .btn.hide-mob{display:inline-flex} .hide-desk{display:none!important} }

/* ---------- шапка публичная ---------- */
.hdr{position:sticky; top:0; z-index:60; background:rgba(255,255,255,.94); backdrop-filter:saturate(160%) blur(12px); border-bottom:1px solid var(--line)}
.hdr-in{display:flex; align-items:center; gap:14px; height:var(--head-h)}
/* min-width:0 + обрезка — чтобы длинное название («Мастера Тулы») ужималось,
   а не выталкивало кнопку и бургер за край экрана на 375 px */
.logo{display:flex; align-items:center; gap:9px; font-weight:900; font-size:18px; letter-spacing:-.03em; white-space:nowrap; min-width:0}
.logo>span:last-child{min-width:0; overflow:hidden; text-overflow:ellipsis}
.logo-mark{width:32px; height:32px; flex:none; border-radius:9px; background:linear-gradient(135deg,var(--brand),#ff9248); color:#fff;
  display:grid; place-items:center; font-size:17px; box-shadow:0 4px 12px rgba(255,106,26,.35)}
.logo small{display:block; font-size:11px; font-weight:600; color:var(--mut); letter-spacing:0}
.hdr-nav{display:none; gap:4px; margin-left:10px}
.hdr-nav a{padding:8px 12px; border-radius:9px; font-size:15px; font-weight:600; color:var(--ink-2)}
.hdr-nav a:hover{background:var(--surface-2); color:var(--ink)}
.hdr-nav a.is-active{color:var(--brand); background:var(--brand-soft)}
@media(min-width:1000px){ .hdr-nav{display:flex} }
.hdr-act{margin-left:auto; display:flex; align-items:center; gap:8px; flex:none}
.burger{width:42px; height:42px; flex:none; border-radius:11px; border:1px solid var(--line); background:var(--surface); display:grid; place-items:center; cursor:pointer}
.burger span{display:block; width:18px; height:2px; background:var(--ink); border-radius:2px; position:relative}
.burger span::before,.burger span::after{content:''; position:absolute; left:0; width:18px; height:2px; background:var(--ink); border-radius:2px}
.burger span::before{top:-6px} .burger span::after{top:6px}
@media(min-width:1000px){ .burger{display:none} }
.drawer{position:fixed; inset:0; z-index:200; display:none}
.drawer.is-open{display:block}
.drawer-bg{position:absolute; inset:0; background:rgba(15,23,42,.45)}
.drawer-panel{position:absolute; right:0; top:0; bottom:0; width:min(320px,86vw); background:var(--surface); padding:18px; overflow:auto;
  box-shadow:var(--sh-l); display:flex; flex-direction:column; gap:6px; animation:slideIn .18s ease}
@keyframes slideIn{from{transform:translateX(30px);opacity:.5}to{transform:none;opacity:1}}
.drawer-panel a{padding:13px 12px; border-radius:11px; font-weight:600; display:flex; align-items:center; gap:10px}
.drawer-panel a:active{background:var(--surface-2)}
.drawer-panel .sep{height:1px; background:var(--line); margin:8px 0}

/* ---------- кнопки ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border-radius:12px; border:1px solid transparent; background:var(--surface);
  font-weight:700; font-size:15px; cursor:pointer; transition:.15s transform,.15s background,.15s box-shadow; white-space:nowrap;
}
.btn:active{transform:translateY(1px)}
.btn--primary{background:linear-gradient(180deg,#ff7c33,var(--brand)); color:#fff; box-shadow:0 6px 18px rgba(255,106,26,.32)}
.btn--primary:hover{background:linear-gradient(180deg,#ff8a47,#f2620f)}
.btn--dark{background:var(--navy); color:#fff}
.btn--dark:hover{background:var(--navy-2)}
.btn--ghost{background:var(--surface); border-color:var(--line-2); color:var(--ink)}
.btn--ghost:hover{background:var(--surface-2)}
.btn--soft{background:var(--brand-soft); color:var(--brand-dark)}
.btn--ok{background:var(--ok); color:#fff}
.btn--danger{background:var(--danger-soft); color:var(--danger); border-color:#f6cfcf}
.btn--danger:hover{background:#fbdcdc}
.btn--link{background:none; padding:6px 2px; color:var(--info); font-weight:600}
.btn--sm{padding:8px 13px; font-size:14px; border-radius:10px}
.btn--lg{padding:15px 26px; font-size:17px; border-radius:14px}
.btn--block{display:flex; width:100%}
.btn[disabled],.btn.is-disabled{opacity:.55; pointer-events:none}
.btn-group{display:flex; gap:8px; flex-wrap:wrap}

/* ---------- карточки ---------- */
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-l); padding:18px; box-shadow:var(--sh-s)}
.card--flat{box-shadow:none}
.card--pad{padding:22px}
@media(min-width:760px){ .card{padding:22px} .card--pad{padding:28px} }
.card--accent{border-color:#ffd9c2; background:linear-gradient(180deg,#fff8f3,#fff)}
.card-head{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:12px}
.card-title{font-size:17px; font-weight:800}
.card-sub{color:var(--mut); font-size:14px}
.tile{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:14px; display:block; box-shadow:var(--sh-s); transition:.15s}
.tile:hover{border-color:var(--line-2); box-shadow:var(--sh); transform:translateY(-1px)}

/* ---------- плашки и метки ---------- */
.badge{display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:100px; font-size:12.5px; font-weight:700; background:var(--surface-2); color:var(--ink-2); white-space:nowrap}
.badge--ok{background:var(--ok-soft); color:#15803d}
.badge--warn{background:var(--warn-soft); color:#b45309}
.badge--danger{background:var(--danger-soft); color:var(--danger)}
.badge--info{background:var(--info-soft); color:var(--info)}
.badge--accent{background:var(--brand-soft); color:var(--brand-dark)}
.badge--muted{background:#eef1f5; color:var(--mut)}
.badge--dot::before{content:''; width:6px; height:6px; border-radius:50%; background:currentColor}
.chip{display:inline-flex; align-items:center; gap:6px; padding:7px 13px; border-radius:100px; background:var(--surface); border:1px solid var(--line-2); font-size:14px; font-weight:600; cursor:pointer}
.chip.is-on{background:var(--ink); color:#fff; border-color:var(--ink)}
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chips--scroll{flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; -ms-overflow-style:none}
.chips--scroll::-webkit-scrollbar{display:none}
.pill-price{font-weight:800; font-size:18px; white-space:nowrap}

/* ---------- формы ---------- */
.field{margin-bottom:15px}
.label{display:block; font-size:14px; font-weight:700; margin-bottom:6px; color:var(--ink-2)}
.label .req{color:var(--brand)}
.input,.select,.textarea{
  width:100%; padding:13px 14px; border:1.5px solid var(--line-2); border-radius:12px; background:var(--surface);
  font-size:16px; transition:.15s border-color,.15s box-shadow;
}
.input:focus,.select:focus,.textarea:focus{outline:none; border-color:var(--brand); box-shadow:0 0 0 4px rgba(255,106,26,.13)}
.textarea{min-height:110px; resize:vertical; line-height:1.5}
.select{appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; padding-right:38px}
.hint{font-size:13px; color:var(--mut); margin-top:5px}
.err{font-size:13px; color:var(--danger); margin-top:5px; font-weight:600}
.field.has-err .input,.field.has-err .textarea,.field.has-err .select{border-color:var(--danger)}
.check{display:flex; align-items:flex-start; gap:10px; padding:11px 12px; border:1.5px solid var(--line); border-radius:12px; cursor:pointer; background:var(--surface)}
.check input{width:20px; height:20px; accent-color:var(--brand); flex:none; margin-top:1px}
.check.is-on{border-color:var(--brand); background:var(--brand-soft)}
.check-grid{display:grid; grid-template-columns:1fr; gap:8px}
@media(min-width:640px){ .check-grid{grid-template-columns:repeat(2,1fr)} }
.radio-cards{display:grid; gap:10px; grid-template-columns:1fr}
@media(min-width:640px){ .radio-cards{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))} }
.radio-card{border:1.5px solid var(--line-2); border-radius:14px; padding:14px; cursor:pointer; background:var(--surface); transition:.15s}
.radio-card:hover{border-color:var(--brand)}
.radio-card.is-on{border-color:var(--brand); background:var(--brand-soft); box-shadow:0 0 0 3px rgba(255,106,26,.12)}
.radio-card input{position:absolute; opacity:0; pointer-events:none}
.radio-card b{display:block; font-size:15px}
.radio-card small{color:var(--mut); display:block; margin-top:3px}
.form-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:6px}
.upload{border:2px dashed var(--line-2); border-radius:14px; padding:18px; text-align:center; color:var(--mut); cursor:pointer; background:var(--surface-2)}
.upload:hover{border-color:var(--brand); color:var(--brand-dark)}
.upload input{display:none}
.thumbs{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.thumb{position:relative; width:84px; height:84px; border-radius:12px; overflow:hidden; border:1px solid var(--line)}
.thumb img{width:100%; height:100%; object-fit:cover}
.thumb .x{position:absolute; top:3px; right:3px; width:22px; height:22px; border-radius:50%; background:rgba(15,23,42,.72); color:#fff; border:0; font-size:13px; cursor:pointer; display:grid; place-items:center}

/* ---------- сообщения ---------- */
.flash{margin:14px 0; display:flex; flex-direction:column; gap:8px}
.alert{display:flex; gap:10px; align-items:flex-start; padding:13px 15px; border-radius:13px; font-size:15px; font-weight:600; border:1px solid transparent}
.alert--success{background:var(--ok-soft); color:#15803d; border-color:#c6ecd3}
.alert--error{background:var(--danger-soft); color:#b91c1c; border-color:#f6cfcf}
.alert--info{background:var(--info-soft); color:#1d4ed8; border-color:#d3e2ff}
.alert--warn{background:var(--warn-soft); color:#b45309; border-color:#fae0b6}
.alert b{font-weight:800}
.note{background:var(--surface-2); border:1px solid var(--line); border-left:3px solid var(--brand); border-radius:12px; padding:13px 15px; font-size:14.5px; color:var(--ink-2)}
.note--info{border-left-color:var(--info)}
.note--ok{border-left-color:var(--ok)}
.note--warn{border-left-color:var(--warn)}

/* ---------- таблицы ---------- */
.table-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:var(--r); background:var(--surface)}
table.tbl{width:100%; border-collapse:collapse; font-size:14.5px; min-width:560px}
.tbl th{text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--mut); font-weight:700;
  padding:11px 12px; border-bottom:1px solid var(--line); background:var(--surface-2); white-space:nowrap}
.tbl td{padding:12px; border-bottom:1px solid var(--line); vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl tr:hover td{background:#fbfcfe}
.tbl .num{text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap}
.tbl a.lnk{color:var(--info); font-weight:600}

/* ---------- список карточек заявок/мастеров ---------- */
.item{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-l); padding:16px; box-shadow:var(--sh-s); transition:.15s}
.item:hover{box-shadow:var(--sh); border-color:var(--line-2)}
.item-top{display:flex; gap:12px; align-items:flex-start; justify-content:space-between}
.item-title{font-size:17px; font-weight:800; letter-spacing:-.01em}
.item-title a:hover{color:var(--brand-dark)}
.item-meta{display:flex; gap:10px; flex-wrap:wrap; color:var(--mut); font-size:13.5px; margin-top:6px}
.item-meta span{display:inline-flex; align-items:center; gap:4px}
.item-body{margin-top:10px; color:var(--ink-2); font-size:15px}
.item-foot{margin-top:13px; padding-top:13px; border-top:1px solid var(--line); display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.price-tag{font-size:19px; font-weight:900; white-space:nowrap}
.price-tag small{font-size:13px; color:var(--mut); font-weight:600}

.avatar{width:46px; height:46px; border-radius:50%; object-fit:cover; flex:none; background:var(--surface-2)}
.avatar-ph{width:46px; height:46px; border-radius:50%; display:grid; place-items:center; color:#fff; font-weight:800; flex:none; font-size:17px}
.avatar-lg,.avatar-ph.avatar-lg{width:76px; height:76px; font-size:27px}
.stars{color:#f59e0b; letter-spacing:1px; font-size:14px}
.stars .star{opacity:.28}
.stars .star.is-on{opacity:1}
.rating-num{font-weight:800}

/* ---------- пустые состояния ---------- */
.empty{text-align:center; padding:44px 20px; color:var(--mut)}
.empty .ico{font-size:44px; margin-bottom:10px}
.empty h3{color:var(--ink); margin-bottom:6px}
.empty p{max-width:420px; margin:0 auto 16px}

/* ---------- пагинация ---------- */
.pager{display:flex; gap:6px; justify-content:center; margin-top:22px; flex-wrap:wrap}
.pager a,.pager span{min-width:40px; height:40px; padding:0 12px; display:grid; place-items:center; border-radius:11px; border:1px solid var(--line); background:var(--surface); font-weight:700; font-size:14px}
.pager .is-cur{background:var(--ink); color:#fff; border-color:var(--ink)}

/* ---------- главная: первый экран ---------- */
.hero{background:linear-gradient(165deg,#0f172a 0%,#1b2b45 55%,#26374f 100%); color:#fff; padding:38px 0 44px; position:relative; overflow:hidden}
.hero::after{content:''; position:absolute; right:-120px; top:-90px; width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle,rgba(255,106,26,.42),transparent 62%)}
.hero-in{position:relative; z-index:2; display:grid; gap:26px}
@media(min-width:980px){ .hero{padding:60px 0 66px} .hero-in{grid-template-columns:1.05fr .95fr; align-items:center; gap:44px} }
.hero h1{font-size:29px; line-height:1.14; margin-bottom:12px}
@media(min-width:760px){ .hero h1{font-size:44px} }
.hero p.lead{font-size:16.5px; color:#cbd5e1; max-width:560px}
.hero-badges{display:flex; gap:8px; flex-wrap:wrap; margin-top:18px}
.hero-badges span{background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16); padding:7px 13px; border-radius:100px; font-size:13.5px; font-weight:600}
.hero-card{background:var(--surface); border-radius:var(--r-xl); padding:20px; box-shadow:var(--sh-l); color:var(--ink)}
.hero-card h3{margin-bottom:4px}
.hero-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:20px}
.hero-stats div{background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:12px}
.hero-stats b{display:block; font-size:22px; line-height:1.1}
.hero-stats small{color:#cbd5e1; font-size:12.5px}

/* ---------- блоки главной ---------- */
.cat-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:10px}
@media(min-width:760px){ .cat-grid{grid-template-columns:repeat(3,1fr); gap:14px} }
@media(min-width:1040px){ .cat-grid{grid-template-columns:repeat(5,1fr)} }
.cat{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:15px 13px; text-align:left; transition:.15s; box-shadow:var(--sh-s)}
.cat:hover{transform:translateY(-2px); box-shadow:var(--sh); border-color:#ffd9c2}
.cat .ico{font-size:26px; display:block; margin-bottom:8px}
.cat b{font-size:15px; display:block}
.cat small{color:var(--mut); font-size:12.5px}
.steps{display:grid; gap:14px; counter-reset:s}
@media(min-width:760px){ .steps{grid-template-columns:repeat(3,1fr)} }
.step{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-l); padding:20px; position:relative}
.step::before{counter-increment:s; content:counter(s); position:absolute; top:-14px; left:20px; width:34px; height:34px; border-radius:11px;
  background:var(--brand); color:#fff; display:grid; place-items:center; font-weight:900; box-shadow:0 6px 14px rgba(255,106,26,.35)}
.step h4{margin:12px 0 6px; font-size:16.5px}
.step p{color:var(--mut); font-size:14.5px}
.cta-band{background:linear-gradient(135deg,var(--brand),#ff9a4d); color:#fff; border-radius:var(--r-xl); padding:26px; text-align:center}
.cta-band h2{margin-bottom:8px}
.cta-band p{opacity:.94; margin-bottom:18px}

/* тарифы */
.plans{display:grid; gap:14px; grid-template-columns:1fr}
@media(min-width:760px){ .plans{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))} }
.plan{background:var(--surface); border:1.5px solid var(--line); border-radius:var(--r-l); padding:20px; display:flex; flex-direction:column; gap:10px; position:relative}
.plan.is-pop{border-color:var(--brand); box-shadow:0 12px 30px rgba(255,106,26,.16)}
.plan .tag{position:absolute; top:-11px; right:16px; background:var(--brand); color:#fff; font-size:12px; font-weight:800; padding:4px 11px; border-radius:100px}
.plan .price{font-size:30px; font-weight:900; letter-spacing:-.03em}
.plan ul{list-style:none; display:flex; flex-direction:column; gap:7px; font-size:14.5px; color:var(--ink-2)}
.plan li{padding-left:22px; position:relative}
.plan li::before{content:'✓'; position:absolute; left:0; color:var(--ok); font-weight:900}

/* ---------- кабинеты: шапка ---------- */
.chdr{position:sticky; top:0; z-index:60; background:var(--surface); border-bottom:1px solid var(--line)}
.chdr-in{display:flex; align-items:center; gap:12px; height:var(--head-h)}
.role-tag{font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; padding:3px 9px; border-radius:7px; background:var(--brand-soft); color:var(--brand-dark)}
.bell{position:relative; width:42px; height:42px; border-radius:12px; border:1px solid var(--line); background:var(--surface); display:grid; place-items:center; font-size:18px}
.bell .cnt{position:absolute; top:-5px; right:-5px; min-width:19px; height:19px; padding:0 5px; border-radius:100px; background:var(--danger); color:#fff; font-size:11px; font-weight:800; display:grid; place-items:center}
.cnav{display:none; gap:4px}
@media(min-width:900px){ .cnav{display:flex} }
.cnav a{padding:9px 13px; border-radius:10px; font-weight:600; font-size:15px; color:var(--ink-2); display:flex; align-items:center; gap:7px}
.cnav a:hover{background:var(--surface-2)}
.cnav a.is-active{background:var(--ink); color:#fff}
.cnav .n{background:var(--brand); color:#fff; border-radius:100px; padding:1px 7px; font-size:11.5px; font-weight:800}
.cnav a.is-active .n{background:#fff; color:var(--ink)}

/* нижнее меню на телефоне */
.bnav{position:fixed; left:0; right:0; bottom:0; z-index:70; background:rgba(255,255,255,.97); backdrop-filter:blur(10px);
  border-top:1px solid var(--line); display:flex; padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
@media(min-width:900px){ .bnav{display:none} }
.bnav a{flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 2px; font-size:11px; font-weight:600; color:var(--mut); position:relative}
.bnav a .ic{font-size:20px; line-height:1}
.bnav a.is-active{color:var(--brand)}
.bnav .dot{position:absolute; top:4px; right:calc(50% - 16px); min-width:16px; height:16px; padding:0 4px; border-radius:100px; background:var(--danger); color:#fff; font-size:10px; font-weight:800; display:grid; place-items:center}

/* ---------- админка ---------- */
.l-admin{background:#f2f4f7}
.ahdr{background:var(--navy); color:#fff; position:sticky; top:0; z-index:60}
.ahdr-in{display:flex; align-items:center; gap:12px; height:56px}
.ahdr a{color:#cbd5e1}
.ahdr .logo{color:#fff; font-size:16px}
.ahdr .logo-mark{width:28px;height:28px;font-size:15px;border-radius:8px}
.anav{display:none; gap:2px; margin-left:8px; flex-wrap:wrap}
@media(min-width:1080px){ .anav{display:flex} }
.anav a{padding:7px 11px; border-radius:9px; font-size:14px; font-weight:600; color:#cbd5e1}
.anav a:hover{background:rgba(255,255,255,.09); color:#fff}
.anav a.is-active{background:var(--brand); color:#fff}
.anav .n{background:var(--danger); color:#fff; border-radius:100px; padding:0 6px; font-size:11px; margin-left:4px; font-weight:800}
.main--admin{padding-top:18px}
.aside-nav{display:none}
@media(min-width:1080px){
  .admin-layout{display:grid; grid-template-columns:230px 1fr; gap:22px; align-items:start}
  .aside-nav{display:block; position:sticky; top:76px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:8px}
  .aside-nav a{display:flex; align-items:center; gap:9px; padding:9px 11px; border-radius:10px; font-size:14.5px; font-weight:600; color:var(--ink-2)}
  .aside-nav a:hover{background:var(--surface-2)}
  .aside-nav a.is-active{background:var(--brand-soft); color:var(--brand-dark)}
  .aside-nav .grp{font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--mut-2); padding:12px 11px 5px; font-weight:800}
}
.stat-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:10px}
@media(min-width:760px){ .stat-grid{grid-template-columns:repeat(4,1fr); gap:14px} }
.stat{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:15px; box-shadow:var(--sh-s)}
.stat .lbl{font-size:12.5px; color:var(--mut); font-weight:600; display:flex; align-items:center; gap:5px}
.stat .val{font-size:25px; font-weight:900; letter-spacing:-.03em; margin-top:3px; line-height:1.1}
.stat .sub{font-size:12.5px; color:var(--mut); margin-top:3px}
.stat--accent{background:linear-gradient(160deg,#fff6f0,#fff); border-color:#ffd9c2}
.stat--ok .val{color:var(--ok)}
.stat--warn .val{color:var(--warn)}

/* подсказки для админа */
.hint-i{display:inline-grid; place-items:center; width:18px; height:18px; border-radius:50%; background:var(--info-soft); color:var(--info);
  font-size:12px; font-weight:800; cursor:help; flex:none; position:relative}
.hint-i:hover::after{content:attr(data-hint); position:absolute; bottom:26px; left:50%; transform:translateX(-50%); width:250px;
  background:var(--navy); color:#fff; padding:10px 12px; border-radius:10px; font-size:13px; font-weight:500; line-height:1.45; z-index:90; box-shadow:var(--sh-l); text-align:left}
.hint-box{background:var(--info-soft); border:1px solid #d3e2ff; border-radius:13px; padding:13px 15px; font-size:14.5px; color:#1e40af; display:flex; gap:10px}
.hint-box .ic{font-size:18px; line-height:1.2}
.hint-box b{color:#1d4ed8}
.hint-box.is-hidden{display:none}
.checklist{display:flex; flex-direction:column; gap:9px}
.checklist .ci{display:flex; gap:11px; align-items:flex-start; padding:12px 14px; border:1px solid var(--line); border-radius:13px; background:var(--surface)}
.checklist .ci.is-done{background:var(--ok-soft); border-color:#c6ecd3}
.checklist .mark{width:23px; height:23px; border-radius:50%; border:2px solid var(--line-2); flex:none; display:grid; place-items:center; font-size:13px; font-weight:900; color:#fff}
.checklist .ci.is-done .mark{background:var(--ok); border-color:var(--ok)}

/* ---------- вкладки ---------- */
.tabs{display:flex; gap:4px; background:var(--surface-2); padding:4px; border-radius:13px; overflow-x:auto; scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs a,.tabs button{padding:9px 15px; border-radius:10px; font-weight:700; font-size:14.5px; color:var(--mut); white-space:nowrap; border:0; background:none; cursor:pointer}
.tabs a.is-active,.tabs button.is-active{background:var(--surface); color:var(--ink); box-shadow:var(--sh-s)}

/* ---------- модалка ---------- */
.modal{position:fixed; inset:0; z-index:300; display:none; align-items:flex-end; justify-content:center}
.modal.is-open{display:flex}
@media(min-width:640px){ .modal{align-items:center} }
.modal-bg{position:absolute; inset:0; background:rgba(15,23,42,.5)}
.modal-panel{position:relative; background:var(--surface); border-radius:22px 22px 0 0; padding:22px; width:100%; max-width:520px; max-height:88vh; overflow:auto; box-shadow:var(--sh-l)}
@media(min-width:640px){ .modal-panel{border-radius:22px} }
.modal-panel h3{margin-bottom:10px}
.modal-x{position:absolute; top:14px; right:14px; width:32px; height:32px; border-radius:50%; border:0; background:var(--surface-2); cursor:pointer; font-size:16px}

/* ---------- всплывашки ---------- */
.toast-box{position:fixed; left:50%; transform:translateX(-50%); bottom:calc(74px + env(safe-area-inset-bottom)); z-index:400; display:flex; flex-direction:column; gap:8px; width:min(420px,92vw)}
@media(min-width:900px){ .toast-box{bottom:24px} }
.toast{background:var(--navy); color:#fff; padding:12px 16px; border-radius:13px; font-size:14.5px; font-weight:600; box-shadow:var(--sh-l); animation:up .2s ease}
@keyframes up{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}

/* ---------- подвал ---------- */
.foot{background:var(--navy); color:#94a3b8; padding:34px 0 30px; margin-top:30px}
.foot a{color:#cbd5e1}
.foot a:hover{color:#fff}
.foot-grid{display:grid; gap:22px; grid-template-columns:1fr}
@media(min-width:760px){ .foot-grid{grid-template-columns:1.4fr 1fr 1fr 1.1fr} }
.foot h4{color:#fff; font-size:14px; margin-bottom:10px; text-transform:uppercase; letter-spacing:.06em}
.foot ul{list-style:none; display:flex; flex-direction:column; gap:7px; font-size:14.5px}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1); margin-top:24px; padding-top:16px; font-size:13px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}
.foot .logo{color:#fff}

/* ---------- мелочи ---------- */
.mut{color:var(--mut)}
.small{font-size:13.5px}
.center{text-align:center}
.nowrap{white-space:nowrap}
.b{font-weight:700}
.mt{margin-top:14px} .mt-s{margin-top:8px} .mt-l{margin-top:26px}
.mb{margin-bottom:14px} .mb-s{margin-bottom:8px} .mb-l{margin-bottom:26px}
.sticky-cta{position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:65; box-shadow:var(--sh-l)}
@media(min-width:900px){ .sticky-cta{display:none} }
.breadcrumbs{font-size:13.5px; color:var(--mut); padding:14px 0 2px; display:flex; gap:7px; flex-wrap:wrap}
.breadcrumbs a:hover{color:var(--brand-dark)}
.gallery{display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:8px}
.gallery img{border-radius:12px; aspect-ratio:1/1; object-fit:cover; cursor:zoom-in; width:100%}
.copy-line{display:flex; gap:8px; align-items:center; background:var(--surface-2); border:1px dashed var(--line-2); border-radius:11px; padding:10px 12px; font-size:14.5px; word-break:break-all}
.progress{height:8px; border-radius:100px; background:var(--line); overflow:hidden}
.progress i{display:block; height:100%; background:var(--brand); border-radius:100px}
.timeline{list-style:none; position:relative; padding-left:24px}
.timeline::before{content:''; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background:var(--line)}
.timeline li{position:relative; padding:0 0 16px}
.timeline li::before{content:''; position:absolute; left:-21px; top:6px; width:12px; height:12px; border-radius:50%; background:var(--surface); border:2.5px solid var(--line-2)}
.timeline li.is-done::before{background:var(--ok); border-color:var(--ok)}
.timeline li.is-cur::before{background:var(--brand); border-color:var(--brand); box-shadow:0 0 0 4px rgba(255,106,26,.18)}
.timeline b{display:block; font-size:15px}
.timeline small{color:var(--mut)}

@media print{
  .hdr,.chdr,.ahdr,.bnav,.foot,.btn,.sticky-cta{display:none!important}
  body{background:#fff}
  .card,.item{box-shadow:none; border-color:#ddd}
}
