/* ============================================================
   UNDERWATER — дизайн-система
   80% чёрный / 15% белый / 5% фиолетовый акцент

   Чтобы перекрасить весь сайт, достаточно изменить значения
   в блоке «акцент» ниже — всё остальное подхватится само.
   ============================================================ */

:root{
  /* фон */
  --bg:            #050505;
  --bg-2:          #0b0b0b;
  --card:          #111111;
  --card-2:        #141414;
  --surface:       #181818;
  --surface-2:     #1f1f1f;

  /* линии */
  --line:          #1e1e1e;
  --line-2:        #2a2a2a;
  --line-accent:   rgba(124,58,237,.34);

  /* акцент — фиолетовый бренда UNDERWATER */
  --accent:        #7c3aed;
  --accent-hot:    #9d7bff;
  --accent-deep:   #5b21b6;
  --accent-dim:    rgba(124,58,237,.14);
  --accent-dim-2:  rgba(124,58,237,.07);
  --glow:          rgba(124,58,237,.42);
  --logo:          #8b5cf6;

  /* текст */
  --text:          #ffffff;
  --text-2:        #b4b4b4;
  --muted:         #7d7d7d;
  --muted-2:       #565656;

  /* статусы */
  --star:          #ffb020;
  --wait:          #f5b301;
  --work:          #3d8bff;
  --done:          #2ecc71;
  --stop:          #ff5555;

  /* метрики */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow:      0 18px 50px rgba(0,0,0,.65);
  --shadow-accent:  0 12px 40px rgba(124,58,237,.22);
  --ease:  cubic-bezier(.22,.7,.3,1);
  --maxw:  1320px;
  --topbar-h: 72px;

  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html,body{ margin:0; padding:0; }

/* overflow-x у body мало: страницу прокручивает корневой элемент,
   поэтому запрет нужен и здесь — иначе на телефоне остаётся
   боковая прокрутка от любого элемента, вылезшего за край. */
html{ scroll-behavior:smooth; overflow-x:hidden; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  min-height:100vh;
  overflow-x:hidden;
}

body.no-scroll{ overflow:hidden; }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; background:none; border:none; padding:0; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; line-height:1.12; font-weight:800; letter-spacing:-.02em; }

::selection{ background:var(--accent); color:#fff; }

/* скроллбар */
*::-webkit-scrollbar{ width:10px; height:10px; }
*::-webkit-scrollbar-track{ background:var(--bg); }
*::-webkit-scrollbar-thumb{ background:#242424; border-radius:20px; border:2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover{ background:#3a3a3a; }

/* ============================================================
   Фоновое свечение
   ============================================================ */
.bg-glow{ position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
.glow{ position:absolute; border-radius:50%; filter:blur(120px); opacity:.5; }
.glow-1{ width:620px; height:620px; top:-260px; left:-160px;
  background:radial-gradient(circle, rgba(124,58,237,.30), transparent 68%); animation:float1 22s var(--ease) infinite; }
.glow-2{ width:540px; height:540px; top:24%; right:-220px;
  background:radial-gradient(circle, rgba(91,33,182,.24), transparent 68%); animation:float2 28s var(--ease) infinite; }
.glow-3{ width:700px; height:700px; bottom:-320px; left:38%;
  background:radial-gradient(circle, rgba(124,58,237,.14), transparent 70%); animation:float1 34s var(--ease) infinite reverse; }
@keyframes float1{ 50%{ transform:translate3d(60px,70px,0) scale(1.12); } }
@keyframes float2{ 50%{ transform:translate3d(-70px,50px,0) scale(1.08); } }

/* ============================================================
   Раскладка
   ============================================================ */
.app{ position:relative; z-index:1; min-height:60vh; padding-bottom:64px; }
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.section{ padding:64px 0 8px; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:26px; flex-wrap:wrap; }
.section-title{ font-size:30px; text-transform:uppercase; letter-spacing:-.01em; }
.section-title .accent{ color:var(--accent); }
.section-sub{ color:var(--muted); font-size:14px; margin-top:8px; }

.grid{ display:grid; gap:18px; }
.g-2{ grid-template-columns:repeat(2,1fr); }
.g-3{ grid-template-columns:repeat(3,1fr); }
.g-4{ grid-template-columns:repeat(4,1fr); }
.row{ display:flex; align-items:center; gap:12px; }
.row-between{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.wrap-flex{ flex-wrap:wrap; }
.spacer{ flex:1; }

/* ============================================================
   Кнопки
   ============================================================ */
.btn{
  --btn-bg:var(--surface); --btn-fg:var(--text); --btn-bd:var(--line-2);
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  height:46px; padding:0 22px; border-radius:12px;
  background:var(--btn-bg); color:var(--btn-fg); border:1px solid var(--btn-bd);
  font-size:14px; font-weight:650; letter-spacing:.01em; white-space:nowrap;
  transition:transform .18s var(--ease), background .2s, border-color .2s, box-shadow .3s, color .2s;
  position:relative; overflow:hidden;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }
.btn:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.btn[disabled]{ opacity:.45; pointer-events:none; }

.btn-accent{
  --btn-bg:linear-gradient(180deg,var(--accent) 0%, var(--accent-deep) 130%);
  --btn-fg:#fff; --btn-bd:transparent;
  box-shadow:0 6px 22px rgba(124,58,237,.28);
  font-weight:750;
}
.btn-accent:hover{ box-shadow:0 12px 34px rgba(124,58,237,.45); }
.btn-accent::after{
  content:""; position:absolute; inset:0; background:linear-gradient(120deg,transparent 20%,rgba(255,255,255,.28),transparent 80%);
  transform:translateX(-130%); transition:transform .7s var(--ease);
}
.btn-accent:hover::after{ transform:translateX(130%); }

.btn-ghost{ --btn-bg:transparent; --btn-bd:var(--line-2); }
.btn-ghost:hover{ --btn-bd:var(--line-accent); background:var(--accent-dim-2); }
.btn-outline-accent{ --btn-bg:transparent; --btn-bd:var(--line-accent); --btn-fg:var(--accent); }
.btn-outline-accent:hover{ background:var(--accent-dim); }
.btn-danger{ --btn-bg:rgba(255,85,85,.10); --btn-bd:rgba(255,85,85,.35); --btn-fg:#ff8080; }
.btn-danger:hover{ --btn-bg:rgba(255,85,85,.2); }
.btn-ok{ --btn-bg:rgba(46,204,113,.10); --btn-bd:rgba(46,204,113,.35); --btn-fg:#57d98a; }
.btn-ok:hover{ --btn-bg:rgba(46,204,113,.2); }
.btn-sm{ height:36px; padding:0 14px; font-size:13px; border-radius:10px; }
.btn-lg{ height:56px; padding:0 32px; font-size:15px; border-radius:14px; }
.btn-block{ width:100%; }
.btn-icon{ width:44px; height:44px; padding:0; border-radius:12px; }
.btn-icon.btn-sm{ width:36px; height:36px; }

/* ============================================================
   Верхняя панель
   ============================================================ */
.topbar{
  position:sticky; top:0; z-index:60;
  height:var(--topbar-h);
  background:rgba(5,5,5,.78);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
  transition:border-color .3s, background .3s;
}
.topbar-inner{ height:100%; display:flex; align-items:center; gap:22px; }

/* Логотип: своё изображение из assets/img/logo.png, иначе — SVG-начертание */
.logo{ display:flex; align-items:center; flex:none; color:var(--logo); line-height:0; }
.logo-img{ display:block; height:auto; }
.logo-svg{ display:block; line-height:0; }
.logo-svg-mark{ display:block; overflow:visible; transition:filter .3s var(--ease), opacity .2s; }
.logo:hover .logo-svg-mark,
.logo:hover .logo-img{ filter:drop-shadow(0 0 14px var(--glow)); }
.site-footer .logo{ margin-bottom:4px; }

.nav-links{ display:flex; align-items:center; gap:4px; }
.nav-link{
  padding:9px 14px; border-radius:10px; font-size:14px; color:var(--text-2); font-weight:550;
  transition:color .2s, background .2s; position:relative;
}
.nav-link:hover{ color:#fff; background:var(--surface); }
.nav-link.active{ color:#fff; }
.nav-link.active::after{
  content:""; position:absolute; left:14px; right:14px; bottom:2px; height:2px; border-radius:2px;
  background:var(--accent); box-shadow:0 0 12px var(--glow);
}

.topsearch{ flex:1; max-width:330px; position:relative; }
.topsearch input{
  width:100%; height:42px; border-radius:12px; padding:0 40px 0 16px;
  background:var(--card); border:1px solid var(--line-2); font-size:14px;
  transition:border-color .2s, box-shadow .25s, background .2s;
}
.topsearch input::placeholder{ color:var(--muted-2); }
.topsearch input:focus{ outline:none; border-color:var(--line-accent); box-shadow:0 0 0 4px var(--accent-dim-2); background:var(--card-2); }
.topsearch .ts-btn{ position:absolute; right:6px; top:6px; width:30px; height:30px; border-radius:8px; display:grid; place-items:center; color:var(--muted); transition:color .2s,background .2s; }
.topsearch .ts-btn:hover{ color:var(--accent); background:var(--accent-dim); }

.topbar-actions{ display:flex; align-items:center; gap:10px; flex:none; margin-left:auto; }

.avatar-btn{ display:flex; align-items:center; gap:10px; padding:5px 12px 5px 5px; border-radius:999px;
  border:1px solid var(--line-2); background:var(--card); transition:border-color .2s, background .2s; }
.avatar-btn:hover{ border-color:var(--line-accent); background:var(--card-2); }
.avatar-btn .who{ font-size:13px; font-weight:600; line-height:1.15; text-align:left; }
.avatar-btn .who small{ display:block; color:var(--muted); font-weight:500; font-size:11px; }

.burger{ display:none; width:42px; height:42px; border-radius:11px; border:1px solid var(--line-2); place-items:center; background:var(--card); }

/* выпадающее меню */
.dropdown{ position:relative; }
.dropdown-menu{
  position:absolute; right:0; top:calc(100% + 10px); min-width:230px; z-index:80;
  background:var(--card); border:1px solid var(--line-2); border-radius:var(--r); padding:8px;
  box-shadow:var(--shadow); animation:pop .18s var(--ease);
}
.dropdown-menu a,.dropdown-menu button{
  display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  padding:10px 12px; border-radius:10px; font-size:14px; color:var(--text-2); transition:background .16s,color .16s;
}
.dropdown-menu a:hover,.dropdown-menu button:hover{ background:var(--surface); color:#fff; }
.dropdown-menu .sep{ height:1px; background:var(--line); margin:6px 4px; }
.dropdown-menu .danger{ color:#ff7b7b; }
@keyframes pop{ from{ opacity:0; transform:translateY(-8px) scale(.97); } }

/* ============================================================
   Hero
   ============================================================ */
.hero{ position:relative; padding:70px 0 40px; overflow:hidden; }
/* огромное слово-подложка за первым экраном — тот же логотип, приглушённый */
.hero-bgword{
  position:absolute; left:50%; top:34px; transform:translateX(-50%);
  width:min(1340px,132vw); line-height:0; opacity:.19;
  pointer-events:none; user-select:none; z-index:0;
}
.hero-bgword img,
.hero-bgword svg{ width:100%; height:auto; display:block; color:var(--accent); }
.hero-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1fr 380px; gap:34px; align-items:start; }

.hero h1{
  font-size:clamp(34px,4.6vw,62px); text-transform:uppercase; line-height:1.02; letter-spacing:-.025em;
  margin-bottom:18px; max-width:15ch;
}
.hero h1 .accent{
  background:linear-gradient(100deg,var(--accent),var(--accent-hot)); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-lead{ color:var(--text-2); font-size:17px; max-width:46ch; margin-bottom:30px; }

.searchbar{
  display:flex; gap:10px; padding:10px; border-radius:var(--r-lg); align-items:center;
  background:linear-gradient(180deg,var(--card),#0d0d0d);
  border:1px solid var(--line-2); box-shadow:var(--shadow);
  max-width:760px;
}
.searchbar .field{ flex:1; position:relative; min-width:0; }
.searchbar input, .searchbar select{
  width:100%; height:52px; border-radius:12px; padding:0 16px;
  background:var(--bg-2); border:1px solid transparent; font-size:15px;
  transition:border-color .2s, box-shadow .2s;
}
.searchbar select{ appearance:none; padding-right:38px; cursor:pointer; }
.searchbar .field.sel::after{
  content:""; position:absolute; right:15px; top:50%; width:8px; height:8px; pointer-events:none;
  border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:translateY(-70%) rotate(45deg);
}
.searchbar .field.cat{ flex:0 0 210px; }
.searchbar input:focus, .searchbar select:focus{ outline:none; border-color:var(--line-accent); box-shadow:0 0 0 4px var(--accent-dim-2); }
.searchbar input::placeholder{ color:var(--muted-2); }

.chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
.chip{
  display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 16px; border-radius:999px;
  background:var(--card); border:1px solid var(--line-2); font-size:13.5px; color:var(--text-2); font-weight:550;
  transition:all .22s var(--ease);
}
.chip:hover{ color:#fff; border-color:var(--line-accent); background:var(--accent-dim-2); transform:translateY(-2px); }
.chip.active{ background:var(--accent-dim); border-color:var(--line-accent); color:#fff; }
.chip .emoji{ font-size:15px; }

.hero-stats{ display:flex; gap:34px; margin-top:38px; flex-wrap:wrap; }
.hero-stats .st b{ display:block; font-size:26px; font-weight:800; color:var(--accent); letter-spacing:-.02em; }
.hero-stats .st span{ font-size:12.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }

/* карточка «как это работает» в hero */
.side-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); padding:24px; }
.side-card + .side-card{ margin-top:18px; }
.side-card h3{ font-size:18px; margin-bottom:18px; }
.steps li{ display:flex; gap:14px; padding:12px 0; border-top:1px solid var(--line); }
.steps li:first-child{ border-top:none; padding-top:0; }
.steps .num{ font-size:15px; font-weight:800; color:var(--accent); flex:none; width:26px; }
.steps .tx b{ display:block; font-size:14.5px; margin-bottom:3px; font-weight:650; }
.steps .tx span{ font-size:13px; color:var(--muted); }

.cta-card{
  background:linear-gradient(150deg,var(--accent),#4c1d95 65%,#1a0b33);
  border:1px solid rgba(124,58,237,.35); border-radius:var(--r-lg); padding:26px;
  box-shadow:var(--shadow-accent); position:relative; overflow:hidden;
}
.cta-card::before{ content:""; position:absolute; width:220px; height:220px; right:-70px; top:-90px; border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.18),transparent 65%); }
.cta-card h3{ font-size:21px; margin-bottom:10px; position:relative; }
.cta-card p{ font-size:14px; color:rgba(255,255,255,.82); margin:0 0 20px; position:relative; }
.cta-card .btn{ background:#fff; color:#0b0b0b; border-color:#fff; font-weight:750; position:relative; }
.cta-card .btn:hover{ box-shadow:0 12px 30px rgba(0,0,0,.4); }
/* Вторая кнопка на фиолетовой карточке — контурная. Без этого правила
   она получала белый фон от строки выше и белый текст, то есть исчезала. */
.cta-card .btn-ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.45); }
.cta-card .btn-ghost:hover{ background:rgba(255,255,255,.14); border-color:#fff; }

/* ============================================================
   Карточка специалиста
   ============================================================ */
.pro-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden; display:flex; flex-direction:column; position:relative;
  transition:transform .3s var(--ease), border-color .3s, box-shadow .35s;
}
.pro-card::after{
  content:""; position:absolute; inset:0; border-radius:var(--r-lg); pointer-events:none;
  box-shadow:inset 0 0 0 1px transparent; transition:box-shadow .35s;
}
.pro-card:hover{ transform:translateY(-6px); border-color:var(--line-accent); box-shadow:0 22px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(124,58,237,.12); }
.pro-card:hover .pro-photo img,.pro-card:hover .pro-photo .ava-svg{ transform:scale(1.06); }

.pro-photo{ position:relative; aspect-ratio:4/3.2; overflow:hidden; background:var(--surface); }
.pro-photo img,.pro-photo .ava-svg{ width:100%; height:100%; object-fit:cover; transition:transform .55s var(--ease); }
.pro-photo::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(5,5,5,.9)); }
.pro-photo .badges{ position:absolute; top:12px; left:12px; right:12px; display:flex; gap:6px; z-index:2; }
.pro-photo .price-tag{
  position:absolute; left:14px; bottom:12px; z-index:2; font-size:15px; font-weight:800; color:var(--accent);
  text-shadow:0 2px 12px rgba(0,0,0,.9);
}
.pro-body{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:9px; flex:1; }
.pro-name{ font-size:17px; font-weight:750; letter-spacing:-.01em; }
.pro-spec{ font-size:13px; color:var(--accent); display:flex; align-items:center; gap:6px; font-weight:600; }
.pro-spec .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 8px var(--glow); }
.pro-desc{ font-size:13px; color:var(--muted); line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pro-meta{ display:flex; align-items:center; gap:14px; font-size:12.5px; color:var(--muted); }
.pro-actions{ display:flex; gap:8px; margin-top:auto; padding-top:12px; }
.pro-actions .btn{ flex:1; }

/* каталог: горизонтальная карточка */
.pro-row{
  display:grid; grid-template-columns:190px 1fr auto; gap:20px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); padding:18px;
  transition:transform .28s var(--ease), border-color .28s, box-shadow .3s;
}
.pro-row:hover{ border-color:var(--line-accent); transform:translateY(-3px); box-shadow:0 18px 44px rgba(0,0,0,.5); }
.pro-row .ph{ border-radius:var(--r); overflow:hidden; aspect-ratio:1/1; background:var(--surface); position:relative; }
.pro-row .ph img,.pro-row .ph .ava-svg{ width:100%; height:100%; object-fit:cover; }
.pro-row .info{ display:flex; flex-direction:column; gap:9px; min-width:0; }
.pro-row .side{ display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between; gap:14px; min-width:190px; }
.pro-row .price{ text-align:right; }
.pro-row .price b{ font-size:24px; color:var(--accent); font-weight:800; letter-spacing:-.02em; }
.pro-row .price span{ display:block; font-size:12px; color:var(--muted); }
.pro-row .side .btn{ width:100%; }
.tags{ display:flex; gap:7px; flex-wrap:wrap; }
.tag{ font-size:12px; padding:5px 11px; border-radius:999px; background:var(--surface); color:var(--text-2); border:1px solid var(--line-2); }
.tag.accent{ background:var(--accent-dim); border-color:var(--line-accent); color:#c4b5fd; }

/* бейджи */
.badge{
  display:inline-flex; align-items:center; gap:5px; height:24px; padding:0 9px; border-radius:7px;
  font-size:11.5px; font-weight:650; letter-spacing:.02em; background:var(--surface); border:1px solid var(--line-2); color:var(--text-2);
  backdrop-filter:blur(6px);
}
.badge.accent{ background:rgba(124,58,237,.18); border-color:var(--line-accent); color:#c4b5fd; }
.badge.verified{ background:rgba(61,139,255,.14); border-color:rgba(61,139,255,.35); color:#7fb2ff; }
.badge.top{ background:rgba(245,179,1,.14); border-color:rgba(245,179,1,.35); color:#ffd166; }
.badge.blocked{ background:rgba(255,85,85,.16); border-color:rgba(255,85,85,.4); color:#ff8f8f; }

/* рейтинг */
.rating{ display:inline-flex; align-items:center; gap:6px; font-size:13.5px; }
.stars{ display:inline-flex; gap:2px; }
.stars svg{ width:14px; height:14px; }
.stars .s-on{ fill:var(--star); }
.stars .s-off{ fill:#2e2e2e; }
.rating b{ font-weight:750; }
.rating span{ color:var(--muted); font-size:12.5px; }

/* ============================================================
   Работы / портфолио
   ============================================================ */
.work{
  position:relative; border-radius:var(--r); overflow:hidden; aspect-ratio:16/10;
  border:1px solid var(--line); cursor:pointer; background:var(--surface);
  transition:transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.work:hover{ transform:translateY(-5px) scale(1.01); border-color:var(--line-accent); box-shadow:0 18px 40px rgba(0,0,0,.55); }
.work .cover{ position:absolute; inset:0; }
.work .cover img{ width:100%; height:100%; object-fit:cover; }
.work .veil{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.15) 30%,rgba(5,5,5,.92)); }
.work .play{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) scale(.9); opacity:0;
  width:56px; height:56px; border-radius:50%; display:grid; place-items:center;
  background:rgba(124,58,237,.92); box-shadow:0 0 0 10px rgba(124,58,237,.14), 0 10px 30px rgba(0,0,0,.5);
  transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.work:hover .play{ opacity:1; transform:translate(-50%,-50%) scale(1); }
.work .cap{ position:absolute; left:14px; right:14px; bottom:12px; }
.work .cap b{ display:block; font-size:14px; font-weight:650; }
.work .cap span{ font-size:12px; color:var(--muted); }

/* ============================================================
   Услуги
   ============================================================ */
.svc{
  display:flex; align-items:center; gap:16px; padding:18px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  transition:border-color .25s, background .25s, transform .25s var(--ease);
}
.svc:hover{ border-color:var(--line-accent); background:var(--card-2); transform:translateX(4px); }
.svc .ic{ width:44px; height:44px; border-radius:12px; display:grid; place-items:center; flex:none;
  background:var(--accent-dim); border:1px solid var(--line-accent); font-size:19px; }
.svc .tx{ flex:1; min-width:0; }
.svc .tx b{ display:block; font-size:15px; font-weight:650; margin-bottom:3px; }
.svc .tx span{ font-size:13px; color:var(--muted); }
.svc .pr{ text-align:right; flex:none; }
.svc .pr b{ font-size:18px; color:var(--accent); font-weight:800; white-space:nowrap; }
.svc .pr span{ display:block; font-size:11.5px; color:var(--muted); }

/* ============================================================
   Отзывы
   ============================================================ */
.review{ background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:20px; }
.review-head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.review-head .ava{ width:42px; height:42px; border-radius:50%; overflow:hidden; flex:none; }
.review-head .nm{ flex:1; min-width:0; }
.review-head .nm b{ display:block; font-size:14.5px; font-weight:650; }
.review-head .nm span{ font-size:12px; color:var(--muted); }
.review p{ margin:0; font-size:14px; color:var(--text-2); line-height:1.6; }
.review .svc-of{ margin-top:12px; font-size:12px; color:var(--muted); }
.review .svc-of b{ color:var(--accent); font-weight:600; }

.rating-summary{
  display:flex; align-items:center; gap:28px; padding:22px; border-radius:var(--r-lg);
  background:var(--card); border:1px solid var(--line); flex-wrap:wrap;
}
.rating-summary .big{ text-align:center; padding-right:28px; border-right:1px solid var(--line); }
.rating-summary .big b{ display:block; font-size:44px; font-weight:800; color:var(--accent); line-height:1; letter-spacing:-.03em; }
.rating-summary .big span{ font-size:12.5px; color:var(--muted); }
.rating-bars{ flex:1; min-width:240px; display:flex; flex-direction:column; gap:7px; }
.rbar{ display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--muted); }
.rbar .track{ flex:1; height:6px; border-radius:4px; background:var(--surface-2); overflow:hidden; }
.rbar .fill{ height:100%; border-radius:4px; background:linear-gradient(90deg,var(--accent-deep),var(--accent)); transition:width .8s var(--ease); }

/* ============================================================
   Профиль специалиста
   ============================================================ */
.profile-hero{
  display:grid; grid-template-columns:340px 1fr; gap:32px;
  background:linear-gradient(160deg,var(--card),#0a0a0a);
  border:1px solid var(--line); border-radius:var(--r-xl); padding:26px; position:relative; overflow:hidden;
}
.profile-hero::before{
  content:""; position:absolute; width:420px; height:420px; right:-140px; top:-200px; border-radius:50%;
  background:radial-gradient(circle,rgba(124,58,237,.13),transparent 65%); pointer-events:none;
}
.profile-photo{ border-radius:var(--r-lg); overflow:hidden; aspect-ratio:1/1.06; background:var(--surface); position:relative; }
.profile-photo img,.profile-photo .ava-svg{ width:100%; height:100%; object-fit:cover; }
.profile-info{ position:relative; display:flex; flex-direction:column; }
.profile-info h1{ font-size:clamp(28px,3.4vw,42px); text-transform:uppercase; margin-bottom:10px; }
.profile-role{ display:inline-flex; align-items:center; gap:8px; color:var(--accent); font-size:15px; font-weight:650; margin-bottom:16px; }
.profile-about{ color:var(--text-2); font-size:14.5px; line-height:1.65; margin:16px 0 20px; max-width:70ch; }
.stat-row{ display:flex; gap:12px; flex-wrap:wrap; margin:4px 0 20px; }
.stat-box{ background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r); padding:14px 20px; min-width:112px; }
.stat-box b{ display:block; font-size:22px; font-weight:800; letter-spacing:-.02em; }
.stat-box.accent b{ color:var(--accent); }
.stat-box span{ font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.profile-actions{ display:flex; gap:10px; margin-top:auto; flex-wrap:wrap; }

.tabs{ display:flex; gap:4px; border-bottom:1px solid var(--line); margin:38px 0 24px; overflow-x:auto; }
.tab{
  padding:13px 18px; font-size:14px; font-weight:600; color:var(--muted); white-space:nowrap;
  border-bottom:2px solid transparent; margin-bottom:-1px; transition:color .2s, border-color .2s;
}
.tab:hover{ color:var(--text-2); }
.tab.active{ color:#fff; border-bottom-color:var(--accent); }
.tab .cnt{ margin-left:6px; font-size:11.5px; color:var(--muted); }

/* ============================================================
   Каталог: фильтры
   ============================================================ */
.catalog{ display:grid; grid-template-columns:280px 1fr; gap:26px; align-items:start; }
.filters{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); padding:20px; position:sticky; top:calc(var(--topbar-h) + 20px); }
.filters h3{ font-size:16px; margin-bottom:4px; }
.f-group{ padding:18px 0; border-top:1px solid var(--line); }
.f-group:first-of-type{ border-top:none; }
.f-group > label,.f-title{ display:block; font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:11px; font-weight:600; }
.f-range{ display:flex; gap:9px; align-items:center; }
.f-range input{ width:100%; min-width:0; }

.input, select.input, textarea.input{
  width:100%; height:44px; padding:0 14px; border-radius:11px;
  background:var(--surface); border:1px solid var(--line-2); font-size:14px;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
textarea.input{ height:auto; min-height:110px; padding:12px 14px; resize:vertical; line-height:1.55; }
select.input{ appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d7d7d' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; padding-right:36px; }
.input:focus{ outline:none; border-color:var(--line-accent); box-shadow:0 0 0 4px var(--accent-dim-2); background:var(--surface-2); }
.input::placeholder{ color:var(--muted-2); }
.input.err{ border-color:rgba(255,85,85,.6); }

.field-label{ display:block; font-size:12.5px; color:var(--muted); margin-bottom:8px; font-weight:600; }
.field{ margin-bottom:16px; }
.field-hint{ font-size:12px; color:var(--muted-2); margin-top:6px; }
.field-err{ font-size:12px; color:#ff8080; margin-top:6px; display:none; }
.field.invalid .field-err{ display:block; }

.check{ display:flex; align-items:center; gap:10px; padding:8px 0; cursor:pointer; font-size:14px; color:var(--text-2); transition:color .18s; }
.check:hover{ color:#fff; }
.check input{ appearance:none; width:19px; height:19px; border-radius:6px; border:1.5px solid var(--line-2);
  background:var(--surface); flex:none; position:relative; transition:all .18s; cursor:pointer; }
.check input:checked{ background:var(--accent); border-color:var(--accent); box-shadow:0 0 12px rgba(124,58,237,.4); }
.check input:checked::after{ content:""; position:absolute; left:6px; top:2.5px; width:5px; height:9px;
  border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.check.radio input{ border-radius:50%; }
.check.radio input:checked::after{ left:4.5px; top:4.5px; width:8px; height:8px; border:none; border-radius:50%; background:#fff; transform:none; }
.check .cnt{ margin-left:auto; font-size:12px; color:var(--muted-2); }

.star-pick{ display:flex; gap:5px; }
.star-pick button{ width:34px; height:34px; border-radius:9px; display:grid; place-items:center; border:1px solid var(--line-2); background:var(--surface); transition:all .18s; }
.star-pick button svg{ width:17px; height:17px; fill:#333; transition:fill .18s; }
.star-pick button.on svg{ fill:var(--star); }
.star-pick button:hover{ border-color:var(--line-accent); }

.results-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.results-head .cnt{ font-size:14px; color:var(--muted); }
.results-head .cnt b{ color:#fff; font-size:20px; font-weight:800; margin-right:6px; }
.sort{ display:flex; align-items:center; gap:9px; font-size:13px; color:var(--muted); }
.sort select{ height:38px; width:auto; min-width:170px; }

/* ============================================================
   Шаги заказа
   ============================================================ */
.stepper{ display:flex; gap:6px; margin-bottom:30px; flex-wrap:wrap; }
.stepper .st{ flex:1; min-width:88px; padding-top:12px; border-top:2px solid var(--line-2); transition:border-color .35s; }
.stepper .st b{ display:block; font-size:11.5px; color:var(--muted-2); letter-spacing:.05em; text-transform:uppercase; transition:color .3s; }
.stepper .st span{ font-size:13px; color:var(--muted); transition:color .3s; }
.stepper .st.done{ border-top-color:rgba(124,58,237,.4); }
.stepper .st.done b{ color:#c4b5fd; }
.stepper .st.active{ border-top-color:var(--accent); box-shadow:0 -2px 14px -3px var(--glow); }
.stepper .st.active b{ color:var(--accent); }
.stepper .st.active span{ color:#fff; font-weight:600; }

.panel{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; }
.panel + .panel{ margin-top:18px; }
.panel-head{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:20px; flex-wrap:wrap; }
.panel-head h2,.panel-head h3{ font-size:19px; }
.panel-head p{ margin:6px 0 0; font-size:13.5px; color:var(--muted); }

.pick-list{ display:grid; gap:10px; max-height:400px; overflow-y:auto; padding-right:4px; }
.pick{
  display:flex; align-items:center; gap:14px; padding:13px 15px; border-radius:var(--r);
  background:var(--surface); border:1px solid var(--line-2); cursor:pointer; text-align:left; width:100%;
  transition:all .2s var(--ease);
}
.pick:hover{ border-color:var(--line-accent); background:var(--surface-2); }
.pick.sel{ border-color:var(--accent); background:var(--accent-dim); box-shadow:0 0 0 3px var(--accent-dim-2); }
.pick .ava{ width:44px; height:44px; border-radius:11px; overflow:hidden; flex:none; }
.pick .tx{ flex:1; min-width:0; }
.pick .tx b{ display:block; font-size:14.5px; font-weight:650; }
.pick .tx span{ font-size:12.5px; color:var(--muted); }
.pick .pr{ font-size:15px; font-weight:750; color:var(--accent); white-space:nowrap; }

.role-pick{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.role-card{
  padding:24px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--line-2);
  text-align:left; transition:all .25s var(--ease); position:relative; overflow:hidden;
}
.role-card:hover{ border-color:var(--line-accent); transform:translateY(-3px); }
.role-card.sel{ border-color:var(--accent); background:linear-gradient(160deg,rgba(124,58,237,.14),transparent); box-shadow:0 0 0 3px var(--accent-dim-2); }
.role-card .ic{ width:46px; height:46px; border-radius:13px; display:grid; place-items:center; font-size:22px;
  background:var(--accent-dim); border:1px solid var(--line-accent); margin-bottom:14px; }
.role-card b{ display:block; font-size:17px; margin-bottom:6px; }
.role-card span{ font-size:13px; color:var(--muted); line-height:1.5; }

/* ============================================================
   Заявки / статусы
   ============================================================ */
.status{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; padding:5px 11px; border-radius:8px; }
.status .dot{ width:7px; height:7px; border-radius:50%; }
.status.wait{ background:rgba(245,179,1,.12); color:var(--wait); }  .status.wait .dot{ background:var(--wait); box-shadow:0 0 8px rgba(245,179,1,.6); }
.status.work{ background:rgba(61,139,255,.12); color:var(--work); }  .status.work .dot{ background:var(--work); box-shadow:0 0 8px rgba(61,139,255,.6); }
.status.done{ background:rgba(46,204,113,.12); color:var(--done); }  .status.done .dot{ background:var(--done); box-shadow:0 0 8px rgba(46,204,113,.6); }
.status.stop{ background:rgba(255,85,85,.12); color:var(--stop); }   .status.stop .dot{ background:var(--stop); }

.order-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); padding:20px;
  transition:border-color .25s, transform .25s var(--ease);
}
.order-card:hover{ border-color:var(--line-2); transform:translateY(-2px); }
.order-card.new{ border-color:var(--line-accent); box-shadow:0 0 0 1px rgba(124,58,237,.08); }
.order-card .oc-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:12px; }
.order-card h4{ font-size:16.5px; font-weight:700; }
.order-card .oc-sub{ font-size:13px; color:var(--muted); margin-top:4px; }
.order-card .oc-desc{ font-size:13.5px; color:var(--text-2); line-height:1.55; margin:12px 0; }
.order-meta{ display:flex; gap:22px; flex-wrap:wrap; padding:14px 0; border-top:1px solid var(--line); }
.order-meta .m span{ display:block; font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.order-meta .m b{ font-size:15px; font-weight:700; }
.order-meta .m b.accent{ color:var(--accent); }

/* ============================================================
   Кабинет
   ============================================================ */
.cab{ display:grid; grid-template-columns:250px 1fr; gap:26px; align-items:start; }
.cab-nav{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); padding:12px; position:sticky; top:calc(var(--topbar-h) + 20px); }
.cab-nav .who{ padding:14px 12px 16px; border-bottom:1px solid var(--line); margin-bottom:8px; display:flex; gap:12px; align-items:center; }
.cab-nav .who .ava{ width:44px; height:44px; border-radius:12px; overflow:hidden; flex:none; }
.cab-nav .who b{ display:block; font-size:14.5px; font-weight:700; }
.cab-nav .who span{ font-size:12px; color:var(--accent); }
.cab-link{
  display:flex; align-items:center; gap:11px; width:100%; padding:11px 13px; border-radius:11px;
  font-size:14px; color:var(--text-2); text-align:left; transition:all .2s; font-weight:550;
}
.cab-link:hover{ background:var(--surface); color:#fff; }
.cab-link.active{ background:var(--accent-dim); color:#fff; border:1px solid var(--line-accent); }
.cab-link .ic{ width:18px; display:grid; place-items:center; opacity:.85; }
.cab-link .badge-n{ margin-left:auto; min-width:20px; height:20px; padding:0 6px; border-radius:6px; background:var(--accent);
  color:#fff; font-size:11px; font-weight:750; display:grid; place-items:center; }

.kpi-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.kpi{ background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:18px; position:relative; overflow:hidden; }
.kpi::after{ content:""; position:absolute; right:-30px; top:-30px; width:110px; height:110px; border-radius:50%;
  background:radial-gradient(circle,var(--accent-dim),transparent 70%); }
.kpi b{ display:block; font-size:28px; font-weight:800; letter-spacing:-.025em; margin-bottom:2px; }
.kpi.accent b{ color:var(--accent); }
.kpi span{ font-size:12.5px; color:var(--muted); }
.kpi .delta{ font-size:12px; color:var(--done); margin-top:6px; display:block; }

.bars{ display:flex; align-items:flex-end; gap:8px; height:150px; padding-top:10px; }
.bars .b{ flex:1; border-radius:6px 6px 3px 3px; background:linear-gradient(180deg,var(--accent),rgba(91,33,182,.25));
  min-height:6px; position:relative; transition:filter .2s, transform .2s; animation:grow .7s var(--ease) backwards; }
.bars .b:hover{ filter:brightness(1.25); transform:scaleY(1.03); }
.bars .b span{ position:absolute; bottom:-22px; left:0; right:0; text-align:center; font-size:11px; color:var(--muted); }
@keyframes grow{ from{ height:0 !important; opacity:0; } }

/* таблица */
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--card); }
table.tbl{ width:100%; border-collapse:collapse; min-width:680px; }
table.tbl th{
  text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted);
  padding:14px 16px; border-bottom:1px solid var(--line); font-weight:650; white-space:nowrap; background:var(--bg-2);
}
table.tbl td{ padding:13px 16px; border-bottom:1px solid var(--line); font-size:14px; vertical-align:middle; }
table.tbl tr:last-child td{ border-bottom:none; }
table.tbl tbody tr{ transition:background .18s; }
table.tbl tbody tr:hover{ background:var(--surface); }
table.tbl .cell-user{ display:flex; align-items:center; gap:11px; }
table.tbl .cell-user .ava{ width:36px; height:36px; border-radius:10px; overflow:hidden; flex:none; }
table.tbl .cell-user b{ display:block; font-size:14px; font-weight:650; }
table.tbl .cell-user span{ font-size:12px; color:var(--muted); }
.t-actions{ display:flex; gap:6px; justify-content:flex-end; }

/* ============================================================
   Админ
   ============================================================ */
.admin-shell{ display:grid; grid-template-columns:240px 1fr; gap:24px; align-items:start; }
.admin-brand{ display:flex; align-items:center; gap:10px; padding:6px 12px 16px; border-bottom:1px solid var(--line); margin-bottom:10px; }
.admin-brand .m{ width:32px; height:32px; border-radius:9px; background:linear-gradient(150deg,var(--accent),var(--accent-deep)); display:grid; place-items:center; font-size:15px; }
.admin-brand b{ font-size:14.5px; letter-spacing:.06em; text-transform:uppercase; }
.admin-brand span{ display:block; font-size:11px; color:var(--muted); letter-spacing:0; text-transform:none; }
.perm-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(215px,1fr)); gap:8px; }
.perm{ display:flex; align-items:center; gap:10px; padding:11px 13px; border-radius:11px; background:var(--surface);
  border:1px solid var(--line-2); font-size:13px; cursor:pointer; transition:all .18s; }
.perm:hover{ border-color:var(--line-accent); }
.perm.on{ background:var(--accent-dim); border-color:var(--line-accent); }

/* ============================================================
   Модалка
   ============================================================ */
.modal-root{ position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:22px; }
/* важно: без этого правила пустой контейнер модалки перекрывает страницу
   и перехватывает все клики — атрибут hidden сам по себе слабее display:grid */
.modal-root[hidden]{ display:none; }
.modal-back{ position:absolute; inset:0; background:rgba(2,2,2,.82); backdrop-filter:blur(8px); animation:fade .25s var(--ease); }
.modal{
  position:relative; width:100%; max-width:560px; max-height:88vh; overflow-y:auto;
  background:var(--card); border:1px solid var(--line-2); border-radius:var(--r-xl); padding:28px;
  box-shadow:var(--shadow); animation:modalIn .32s var(--ease);
}
.modal.wide{ max-width:820px; }
.modal.video{ max-width:940px; padding:16px; background:#080808; }
.modal-x{ position:absolute; right:16px; top:16px; width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  color:var(--muted); background:var(--surface); border:1px solid var(--line-2); transition:all .2s; z-index:3; }
.modal-x:hover{ color:#fff; border-color:var(--line-accent); background:var(--accent-dim); }
.modal h2{ font-size:23px; margin-bottom:6px; padding-right:44px; }
.modal .m-sub{ color:var(--muted); font-size:14px; margin:0 0 22px; }
.modal-foot{ display:flex; gap:10px; margin-top:24px; }
.modal-foot .btn{ flex:1; }
@keyframes fade{ from{ opacity:0; } }
@keyframes modalIn{ from{ opacity:0; transform:translateY(24px) scale(.97); } }

.player{ position:relative; aspect-ratio:16/9; border-radius:var(--r); overflow:hidden; background:#000; }
.player video,.player iframe{ width:100%; height:100%; border:0; display:block; object-fit:cover; }
.player .fake{ position:absolute; inset:0; display:grid; place-items:center; text-align:center; padding:20px; }
.player .fake .ic{ width:74px; height:74px; border-radius:50%; background:rgba(124,58,237,.92); display:grid; place-items:center;
  margin:0 auto 16px; box-shadow:0 0 0 14px rgba(124,58,237,.12); animation:pulse 2.6s var(--ease) infinite; }
@keyframes pulse{ 50%{ box-shadow:0 0 0 26px rgba(124,58,237,0); } }

/* ============================================================
   Тосты
   ============================================================ */
.toast-root{ position:fixed; right:22px; bottom:22px; z-index:300; display:flex; flex-direction:column;
  gap:10px; align-items:flex-end; pointer-events:none; }
.toast-root > *{ pointer-events:auto; }
.toast{
  display:flex; align-items:center; gap:12px; padding:14px 18px; border-radius:var(--r);
  background:var(--card); border:1px solid var(--line-2); box-shadow:var(--shadow);
  font-size:14px; min-width:260px; max-width:380px; animation:toastIn .3s var(--ease);
}
.toast.out{ animation:toastOut .25s var(--ease) forwards; }
.toast .bar{ width:3px; align-self:stretch; border-radius:3px; background:var(--accent); }
.toast.ok .bar{ background:var(--done); }
.toast.err .bar{ background:var(--stop); }
.toast b{ display:block; font-size:14px; font-weight:650; }
.toast span{ font-size:12.5px; color:var(--muted); }
@keyframes toastIn{ from{ opacity:0; transform:translateX(40px); } }
@keyframes toastOut{ to{ opacity:0; transform:translateX(40px); } }

/* ============================================================
   Skeleton
   ============================================================ */
.sk{ background:linear-gradient(100deg,#131313 30%,#1e1e1e 50%,#131313 70%); background-size:220% 100%;
  animation:shimmer 1.25s linear infinite; border-radius:8px; }
@keyframes shimmer{ to{ background-position:-220% 0; } }
.sk-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; }
.sk-card .sk-img{ aspect-ratio:4/3.2; border-radius:0; }
.sk-card .sk-body{ padding:16px 18px 20px; display:flex; flex-direction:column; gap:10px; }

/* ============================================================
   Пустое состояние
   ============================================================ */
.empty{ text-align:center; padding:64px 24px; }
.empty .ic{ width:74px; height:74px; border-radius:20px; margin:0 auto 20px; display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--line-2); font-size:30px; }
.empty h3{ font-size:19px; margin-bottom:8px; }
.empty p{ color:var(--muted); font-size:14px; margin:0 auto 22px; max-width:44ch; }

/* ============================================================
   Футер
   ============================================================ */
.site-footer{ position:relative; z-index:1; border-top:1px solid var(--line); background:var(--bg-2); padding:52px 0 32px; margin-top:60px; }
.foot-grid{ display:grid; grid-template-columns:1.6fr repeat(3,1fr); gap:34px; }
.foot-grid p{ color:var(--muted); font-size:13.5px; line-height:1.6; margin:14px 0 0; max-width:36ch; }
.foot-grid h4{ font-size:12.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin-bottom:14px; }
.foot-grid li a{ display:block; padding:6px 0; font-size:14px; color:var(--text-2); transition:color .18s; }
.foot-grid li a:hover{ color:var(--accent); }
.foot-bottom{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-top:38px; padding-top:22px; border-top:1px solid var(--line); font-size:13px; color:var(--muted-2); }

/* ============================================================
   Нижняя мобильная навигация
   ============================================================ */
.mobile-nav{
  display:none; position:fixed; left:0; right:0; bottom:0; z-index:90;
  background:rgba(9,9,9,.94); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-top:1px solid var(--line-2); padding:8px 6px calc(8px + env(safe-area-inset-bottom));
}
.mobile-nav ul{ display:flex; }
.mobile-nav li{ flex:1; }
.mn-item{
  width:100%; display:flex; flex-direction:column; align-items:center; gap:4px; padding:7px 2px;
  font-size:10.5px; color:var(--muted); border-radius:12px; transition:color .2s; position:relative;
}
.mn-item svg{ width:22px; height:22px; }
.mn-item.active{ color:var(--accent); }
.mn-item.active::before{ content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:22px; height:2px; border-radius:2px; background:var(--accent); box-shadow:0 0 10px var(--glow); }
.mn-item .n{ position:absolute; top:3px; right:calc(50% - 20px); min-width:16px; height:16px; padding:0 4px;
  border-radius:5px; background:var(--accent); color:#fff; font-size:9.5px; font-weight:750; display:grid; place-items:center; }

/* мобильное меню-шторка */
.sheet{ position:fixed; inset:0; z-index:150; display:none; }
.sheet.open{ display:block; }
.sheet-back{ position:absolute; inset:0; background:rgba(2,2,2,.8); backdrop-filter:blur(6px); animation:fade .2s; }
.sheet-body{ position:absolute; right:0; top:0; bottom:0; width:min(86vw,340px); background:var(--card);
  border-left:1px solid var(--line-2); padding:20px; overflow-y:auto; animation:slideIn .3s var(--ease); }
@keyframes slideIn{ from{ transform:translateX(100%); } }
.sheet-body .nav-link{ display:block; padding:14px 12px; font-size:15px; border-radius:11px; }

/* ============================================================
   Анимации появления
   ============================================================ */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in{ opacity:1; transform:none; }

.page-enter{ animation:pageIn .38s var(--ease); }
@keyframes pageIn{ from{ opacity:0; transform:translateY(14px); } }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .reveal{ opacity:1; transform:none; }
}

/* карусель */
.carousel{ position:relative; }
.carousel-track{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(268px,1fr); gap:18px;
  overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:6px; scrollbar-width:none; }
.carousel-track::-webkit-scrollbar{ display:none; }
.carousel-track > *{ scroll-snap-align:start; }
.car-btns{ display:flex; gap:8px; }
.car-btns button{ width:40px; height:40px; border-radius:50%; border:1px solid var(--line-2); background:var(--card);
  display:grid; place-items:center; color:var(--text-2); transition:all .2s; }
.car-btns button:hover{ border-color:var(--line-accent); color:var(--accent); background:var(--accent-dim); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width:1180px){
  .hero-grid{ grid-template-columns:1fr; }
  .g-4{ grid-template-columns:repeat(3,1fr); }
  .kpi-grid{ grid-template-columns:repeat(2,1fr); }
  .topsearch{ display:none; }
}

@media (max-width:1024px){
  .nav-links{ display:none; }
  .burger{ display:grid; }
  .catalog,.cab,.admin-shell{ grid-template-columns:1fr; }
  /* Колонка 1fr сама по себе не сжимается уже содержимого: у элементов
     сетки min-width равен auto. Из-за этого боковое меню кабинета
     растягивало страницу до полутора тысяч пикселей, и телефон
     прокручивался вбок. Обнуляем — тогда меню прокручивается внутри себя. */
  .catalog > *,.cab > *,.admin-shell > *{ min-width:0; }
  .filters,.cab-nav{ position:static; }
  .profile-hero{ grid-template-columns:1fr; }
  .profile-photo{ max-width:300px; aspect-ratio:1/1; }
  .foot-grid{ grid-template-columns:1fr 1fr; }
  .cab-nav ul{ display:flex; gap:6px; overflow-x:auto; }
  .cab-nav .cab-link{ width:auto; white-space:nowrap; }
  .cab-nav .who{ display:none; }
}

@media (max-width:840px){
  :root{ --topbar-h:64px; }
  .wrap{ padding:0 18px; }
  .app{ padding-bottom:96px; }
  .mobile-nav{ display:block; }
  .site-footer{ margin-bottom:74px; }
  .g-3,.g-4{ grid-template-columns:repeat(2,1fr); }
  .section{ padding:44px 0 6px; }
  .section-title{ font-size:24px; }
  .searchbar{ flex-direction:column; align-items:stretch; border-radius:var(--r); }
  .searchbar .field.cat{ flex:1 1 auto; }
  .searchbar .btn{ width:100%; }
  .pro-row{ grid-template-columns:110px 1fr; }
  .pro-row .side{ grid-column:1/-1; flex-direction:row; flex-wrap:wrap; align-items:center; min-width:0; }
  .pro-row .side .price{ flex:1 0 100%; text-align:left; }
  .pro-row .side .price b{ font-size:21px; }
  .pro-row .side .btn{ width:auto; flex:1 1 0; min-width:0; }
  .pro-row .side .btn-icon{ flex:0 0 40px; }
  .role-pick{ grid-template-columns:1fr; }
  .rating-summary .big{ border-right:none; border-bottom:1px solid var(--line); padding:0 0 16px; width:100%; }
  .toast-root{ left:16px; right:16px; bottom:88px; align-items:stretch; }
  .toast{ max-width:none; }
  .modal{ padding:22px; border-radius:var(--r-lg); }
  .hero{ padding:38px 0 20px; }
  .stat-row{ gap:8px; }
  .stat-box{ padding:12px 14px; min-width:96px; flex:1; }
}

@media (max-width:680px){
  /* «Стать специалистом» рядом с логотипом и «Войти» не помещается
     и растягивает шапку шире экрана. Сама ссылка никуда не девается:
     она есть в бургер-меню и на странице входа. */
  .topbar-actions > .btn-ghost{ display:none; }
}

@media (max-width:430px){
  /* На узких экранах логотипу в 160 пикселей уже не хватает места
     рядом с кнопкой аккаунта и бургером — шапка вылезала за край
     на пару пикселей, и появлялась боковая прокрутка. */
  .topbar-inner .logo{ flex:0 1 auto; min-width:0; overflow:hidden; }
  .topbar-inner .logo-img,.topbar-inner .logo-svg{ max-width:100%; height:auto; }
  /* Имя и роль рядом с аватаром убираем: они видны в самом меню */
  .avatar-btn .who{ display:none; }
  .avatar-btn{ padding:5px; }
}

@media (max-width:560px){
  .g-2,.g-3,.g-4{ grid-template-columns:1fr; }
  .foot-grid{ grid-template-columns:1fr; gap:26px; }
  .kpi-grid{ grid-template-columns:1fr 1fr; }
  .logo-text{ font-size:16px; letter-spacing:.1em; }
  .hero-bgword{ display:none; }
  .profile-photo{ max-width:132px; border-radius:var(--r); }
  .profile-hero{ padding:20px; }
  .profile-info h1{ font-size:27px; }
  .modal-foot{ flex-direction:column; }
  .stepper .st span{ display:none; }
  .stepper .st{ min-width:0; }
  .btn{ height:44px; }
  .order-meta{ gap:16px; }

  /* Карточка услуги: в одну строку не помещаются иконка, название,
     цена и кнопка — раскладываем в три яруса. Отступ слева равен
     ширине иконки с зазором, чтобы цена шла ровно под названием. */
  .svc{ flex-wrap:wrap; }
  .svc .tx{ flex:1 1 140px; }
  .svc .pr{ flex:1 0 100%; text-align:left; padding-left:60px; }
  /* только прямые потомки: в админке внутри .row лежат две узкие
     кнопки-иконки, их на всю ширину растягивать не надо */
  .svc > .btn,.svc > .row{ flex:1 0 100%; }
}

/* утилиты */
.mt-0{margin-top:0}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}
.mt-20{margin-top:20px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.mb-0{margin-bottom:0}.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}
.txt-muted{ color:var(--muted); }
.txt-accent{ color:var(--accent); }
.txt-sm{ font-size:13px; }
.txt-c{ text-align:center; }
.hidden{ display:none !important; }
.nowrap{ white-space:nowrap; }
.ellipsis{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.divider{ height:1px; background:var(--line); margin:22px 0; }
