/* ============================================================
   LuxWork — дизайн-система
   Палитра: violet + coral + teal · стекло · аврора-градиент
   ============================================================ */

/* ---------- Темы ---------- */
:root {
  --ink:        #0A0E1A;
  --surface:    #111729;
  --surface-2:  #18203a;
  --surface-3:  #1f2945;
  --line:       rgba(255,255,255,.08);
  --line-2:     rgba(255,255,255,.14);
  --text:       #EDF1FA;
  --muted:      #97A1BD;
  --faint:      #69748f;

  --brand:      #6D5DF6;
  --brand-2:    #A855F7;
  --coral:      #FF7A59;
  --coral-2:    #FF5C8A;
  --teal:       #2DD4BF;
  --gold:       #F5B544;
  --danger:     #F2545B;

  --glass:      rgba(20,27,48,.55);
  --glass-2:    rgba(28,36,62,.65);
  --glass-brd:  rgba(255,255,255,.10);
  --blur:       18px;

  --grad-aurora: radial-gradient(60% 80% at 15% 10%, rgba(109,93,246,.45), transparent 60%),
                 radial-gradient(50% 70% at 85% 20%, rgba(255,122,89,.30), transparent 55%),
                 radial-gradient(60% 80% at 60% 90%, rgba(45,212,191,.22), transparent 55%);
  --grad-brand:  linear-gradient(120deg, var(--brand), var(--brand-2));
  --grad-cta:    linear-gradient(120deg, var(--coral), var(--coral-2));

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 10px;
  --r-xl: 30px;

  --shadow:    0 10px 40px -12px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 80px -24px rgba(0,0,0,.6);
  --ring:      0 0 0 3px rgba(109,93,246,.35);

  --fz: 'Manrope', system-ui, sans-serif;
  --fz-disp: 'Unbounded', 'Manrope', sans-serif;
  --fz-num: 'Space Grotesk', monospace;
}

[data-theme="light"] {
  --ink:        #F4F6FD;
  --surface:    #FFFFFF;
  --surface-2:  #F7F9FF;
  --surface-3:  #EEF2FC;
  --line:       rgba(20,28,54,.09);
  --line-2:     rgba(20,28,54,.16);
  --text:       #141A2E;
  --muted:      #5C6585;
  --faint:      #8A93AE;

  --glass:      rgba(255,255,255,.65);
  --glass-2:    rgba(255,255,255,.8);
  --glass-brd:  rgba(20,28,54,.08);

  --grad-aurora: radial-gradient(60% 80% at 15% 10%, rgba(109,93,246,.22), transparent 60%),
                 radial-gradient(50% 70% at 85% 20%, rgba(255,122,89,.18), transparent 55%),
                 radial-gradient(60% 80% at 60% 90%, rgba(45,212,191,.14), transparent 55%);
  --shadow:    0 10px 40px -16px rgba(40,50,90,.25);
  --shadow-lg: 0 30px 70px -22px rgba(40,50,90,.28);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fz);
  background: var(--ink);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--brand); color: #fff; }

/* фоновое аврора-свечение */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: var(--grad-aurora);
  z-index: -2;
  pointer-events: none;
}

/* ---------- Контейнер ---------- */
.container { width: min(1240px, 92%); margin-inline: auto; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ---------- Типографика ---------- */
h1, h2, h3 { font-family: var(--fz-disp); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.display { font-size: clamp(2.4rem, 6vw, 3rem); }
h2.section-title { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
.eyebrow {
  font-family: var(--fz-num);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--brand-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.grad-text {
  background: linear-gradient(110deg, var(--brand-2), var(--coral) 60%, var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.num { font-family: var(--fz-num); font-feature-settings: 'tnum'; }

/* ---------- Стеклянные поверхности ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-brd);
  padding:24px;
  border-radius:10px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 10px 26px -10px rgba(255,92,138,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(255,92,138,.7); }
.btn-brand { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 26px -10px rgba(109,93,246,.6); }
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(109,93,246,.7); }
.btn-ghost { background: var(--glass-2); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn-outline { border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); background: var(--surface-2); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Бейджи ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  background: var(--surface-3); color: var(--muted); border: 1px solid var(--line);
}
.badge svg { width: 13px; height: 13px; }
.badge-pro    { background: linear-gradient(120deg, rgba(245,181,68,.18), rgba(255,122,89,.18)); color: var(--gold); border-color: rgba(245,181,68,.3); }
.badge-online { background: rgba(45,212,191,.14); color: var(--teal); border-color: rgba(45,212,191,.3); }
.badge-vip    { background: var(--grad-brand); color:#fff; border: none; }
.badge-verify { background: rgba(109,93,246,.14); color: var(--brand-2); border-color: rgba(109,93,246,.3); }
.badge-gold   { color: var(--gold); }

.level-pill {
  font-family: var(--fz-num); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 9px; border-radius: 6px;
  background: var(--surface-3); color: var(--muted); border: 1px solid var(--line);
}

/* ---------- Звёзды рейтинга ---------- */
.stars { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); }
.rating-line { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; }
.rating-line .num { font-weight: 700; color: var(--text); }
.rating-line .cnt { color: var(--faint); }

/* ---------- Аватар ---------- */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--surface-3); display: grid; place-items: center;
  font-weight: 700; color: var(--brand-2); border: 1px solid var(--line-2);
  font-family: var(--fz-disp); overflow: hidden;
}
.avatar.lg { width: 84px; height: 84px; font-size: 1.6rem; }
.avatar.xl { width: 120px; height: 120px; font-size: 2.2rem; }
.avatar-ring { position: relative; }
.avatar-ring::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: var(--grad-brand); z-index: -1;
}

/* ============================================================
   ХЕДЕР
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--glass-brd);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--fz-disp); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(109,93,246,.7);
}
.brand .mark svg { width: 20px; height: 20px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: .94rem;
  color: var(--muted); transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
  color: var(--muted); transition: color .2s, border-color .2s, transform .15s;
  position: relative;
}
.icon-btn:hover { color: var(--text); border-color: var(--brand); transform: translateY(-1px); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral); border: 2px solid var(--ink);
}
.burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { margin: 18px 0 18px; }
.hero .lead { margin-bottom: 28px; }
.search-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px;
  border-radius: 10px; background: var(--glass-2); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); box-shadow: var(--shadow); max-width: 560px;
}
.search-bar svg { color: var(--faint); flex-shrink: 0; }
.search-bar input { flex: 1; border: none; background: none; outline: none; font-size: 1rem; padding: 10px 4px; }
.search-bar input::placeholder { color: var(--faint); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-tags span { color: var(--faint); font-size: .85rem; padding-top: 6px; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  transition: all .2s; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--brand); transform: translateY(-1px); }

.hero-visual { position: relative; height: 440px; }
.float-card {
  position: absolute; border-radius: var(--r-lg); padding: 18px;
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.float-card.c1 { top: 0; left: 10%; width: 260px; }
.float-card.c2 { top: 150px; right: 0; width: 240px; animation-delay: -2s; }
.float-card.c3 { bottom: 0; left: 0; width: 250px; animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.mini-stat { display: flex; align-items: center; gap: 12px; }
.mini-stat .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand); color:#fff; }
.mini-stat .v { font-family: var(--fz-num); font-weight: 700; font-size: 1.3rem; }
.mini-stat .l { font-size: .78rem; color: var(--muted); }

/* ============================================================
   КАРТОЧКИ
   ============================================================ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr);margin-bottom:20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head .link { color: var(--brand-2); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.section-head .link:hover { gap: 10px; }

/* Категория */
.cat-card {
  display: flex; flex-direction: column; gap: 14px; padding: 22px;
  border-radius: var(--r);align-items:center;box-shadow: var(--shadow);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 10px 40px -16px rgb(0 0 0 / 52%); }
.cat-card .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--brand-2); transition: background .22s, color .22s;
}
.cat-card:hover .ic { background: var(--grad-brand); color: #fff; }
.cat-card h3 { font-family: var(--fz); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.cat-card p { font-size: .85rem; color: var(--muted); }
.cat-card .cnt { margin-top: auto; font-size: .78rem; color: var(--faint); font-family: var(--fz-num); }

/* Услуга */
.service-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.service-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-cover {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}
.service-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); opacity: .5; }
.service-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-cover img { transform: scale(1.06); }
.promo-flag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
}
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,14,26,.5); backdrop-filter: blur(8px); color: #fff;
  border: 1px solid rgba(255,255,255,.18); cursor: pointer; transition: all .2s;
}
.fav-btn:hover { background: var(--coral); }
.fav-btn.on { background: var(--coral); color: #fff; }
.service-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-seller { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.service-seller .avatar { width: 26px; height: 26px; font-size: .7rem; }
.service-seller a { color: var(--muted); font-weight: 500; }
.service-seller a:hover { color: var(--text); }
.service-title { font-weight: 600; font-size: .98rem; line-height: 1.35; }
.service-title a:hover { color: var(--brand-2); }
.service-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.service-price { font-family: var(--fz-num); }
.service-price .lbl { font-size: .68rem; color: var(--faint); display: block; }
.service-price .val { font-weight: 700; font-size: 1.05rem; }

/* Исполнитель */
.performer-card {
  border-radius: var(--r-lg); padding: 22px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.performer-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.performer-card .avatar { margin: 0 auto 14px; }
.performer-card h3 { font-family: var(--fz); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; display:flex; align-items:center; justify-content:center; gap:6px; }
.performer-card .role { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.performer-stats { display: flex; justify-content: center; gap: 18px; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.performer-stats div { text-align: center; }
.performer-stats .v { font-family: var(--fz-num); font-weight: 700; font-size: 1.05rem; }
.performer-stats .l { font-size: .7rem; color: var(--faint); }

/* Проект */
.project-card {
  border-radius: var(--r); padding: 22px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s; display:flex; flex-direction:column; gap:12px;
}
.project-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.project-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.project-card h3 { font-family: var(--fz); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; }
.project-budget { font-family: var(--fz-num); font-weight: 700; color: var(--teal); white-space: nowrap; }
.project-card p { font-size: .88rem; color: var(--muted); }
.project-foot { display: flex; align-items: center; gap: 14px; font-size: .8rem; color: var(--faint); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.project-foot .it { display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================
   СТАТИСТИКА
   ============================================================ */
.stats-band {
  border-radius: var(--r-xl); padding: 44px; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.stats-band::before { content: ''; position: absolute; inset: 0; background: var(--grad-aurora); opacity: .6; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.stat-item { text-align: center; }
.stat-item .v { font-family: var(--fz-disp); font-weight: 700; font-size: clamp(2rem,4vw,3rem); }
.stat-item .l { color: var(--muted); font-size: .92rem; }

/* ============================================================
   ОТЗЫВЫ / FAQ
   ============================================================ */
.review-card { border-radius: var(--r); padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.review-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-card .head .name { font-weight: 600; }
.review-card p { color: var(--muted); font-size: .92rem; }

.faq-item { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.faq-q { width: 100%; text-align: left; padding: 18px 22px; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 1rem; }
.faq-q .pm { color: var(--brand-2); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a .inner { padding: 0 22px 20px; color: var(--muted); }
.faq-item.open .faq-a { max-height: 320px; }

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.feature { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--brand); transform: translateY(-3px); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-3); color: var(--brand-2); }
.feature h3 { font-family: var(--fz); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.feature p { font-size: .88rem; color: var(--muted); }

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 14px; max-width: 30ch; }
.footer-col h4 { font-family: var(--fz); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .9rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; flex-wrap: wrap; gap: 12px; }
.socials { display: flex; gap: 10px; }

/* ============================================================
   ФОРМЫ
   ============================================================ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s; font-size: .95rem;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
.textarea { resize: vertical; min-height: 120px; }
.field .err { color: var(--danger); font-size: .8rem; margin-top: 6px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.input-icon .input { padding-left: 44px; }

/* ============================================================
   AUTH-страницы
   ============================================================ */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); border-right: 1px solid var(--line); }
.auth-aside::before { content: ''; position: absolute; inset: 0; background: var(--grad-aurora); }
.auth-aside > * { position: relative; }
.auth-aside h2 { font-size: 2rem; margin: 20px 0 14px; }
.auth-aside p { color: var(--muted); max-width: 40ch; }
.auth-points { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-points .it { display: flex; align-items: center; gap: 12px; font-size: .94rem; }
.auth-points .it .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-brand); color:#fff; flex-shrink:0; }
.auth-main { display: grid; place-items: center; padding: 40px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-switch { margin-top: 20px; text-align: center; color: var(--muted); font-size: .9rem; }
.auth-switch a { color: var(--brand-2); font-weight: 600; }

/* ============================================================
   КАТАЛОГ / Layout с сайдбаром
   ============================================================ */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filter-panel { border-radius: var(--r-lg); padding: 22px; background: var(--surface); border: 1px solid var(--line); position: sticky; top: 90px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border: none; }
.filter-group h4 { font-size: .85rem; margin-bottom: 12px; }
.filter-group label.check { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: .9rem; color: var(--muted); cursor: pointer; padding: 4px 0; }
.range-row { display: flex; gap: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: .9rem; }
.sort-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-tabs a { padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.sort-tabs a.active { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-banner { height: 220px; border-radius: var(--r-xl); background: var(--grad-aurora), var(--surface-2); position: relative; overflow: hidden; border: 1px solid var(--line); }
.profile-head { display: flex; align-items: flex-end; gap: 24px; margin-top: -50px; padding: 0 30px; position: relative; }
.profile-head .avatar { box-shadow: var(--shadow-lg); }
.profile-info { padding-bottom: 8px; flex: 1; }
.profile-info h1 { font-size: 1.8rem; display: flex; align-items: center; gap: 10px; }
.profile-info .uname { color: var(--faint); font-family: var(--fz-num); }
.profile-tabs { display: flex; gap: 4px; margin: 28px 0; border-bottom: 1px solid var(--line); }
.profile-tabs a { padding: 12px 18px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.profile-tabs a.active { color: var(--text); border-color: var(--brand); }
.skill-tag { padding: 6px 13px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); font-size: .82rem; color: var(--muted);display:flex;align-items:center;gap:5px }

/* ============================================================
   SERVICE detail
   ============================================================ */
.service-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.gallery-main { aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg,var(--surface-2),var(--surface-3)); display: grid; place-items: center; border: 1px solid var(--line); }
.pkg-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); padding: 4px; position: sticky; top: 90px; overflow: hidden; }
.pkg-tabs { display: flex; padding: 4px; gap: 4px; }
.pkg-tabs button { flex: 1; padding: 10px; border-radius: 12px; border: none; background: none; color: var(--muted); font-weight: 600; cursor: pointer; font-size: .85rem; }
.pkg-tabs button.active { background: var(--grad-brand); color: #fff; }
.pkg-body { padding: 22px; }
.pkg-price { font-family: var(--fz-disp); font-size: 2rem; }
.pkg-features { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.pkg-features .it { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.pkg-features .it svg { color: var(--teal); flex-shrink: 0; }

/* ============================================================
   DASHBOARD layout
   ============================================================ */
.dash-layout { display: grid; grid-template-columns: 290px 1fr; gap: 26px; align-items: start; padding: 28px 0 70px; }
.dash-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.dash-profile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; text-align: center; }
.dash-profile .avatar { margin: 0 auto 14px; }
.dash-profile h3 { font-size: 1.15rem; margin-bottom: 4px; }
.dash-profile .role-line { color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.dash-profile .rating-line { justify-content: center; margin-bottom: 16px; }
.dash-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: .85rem; font-weight: 600; }
.dash-switch .sw { width: 40px; height: 22px; border-radius: 999px; background: var(--surface-3); position: relative; flex: 0 0 auto; transition: background .25s; }
.dash-switch .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s; }
.dash-switch .sw.on { background: var(--teal); }
.dash-switch .sw.on::after { transform: translateX(18px); }
.stat-bars { display: flex; flex-direction: column; gap: 11px; text-align: left; }
.stat-bar .top { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 5px; }
.stat-bar .top b { color: var(--text); font-family: var(--fz-num); }
.stat-bar .track { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.stat-bar .fill { height: 100%; border-radius: 999px; background: var(--grad-brand); }
.dash-mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.dash-mini-stats div { text-align: center; }
.dash-mini-stats .v { font-family: var(--fz-num); font-weight: 700; font-size: 1.05rem; }
.dash-mini-stats .l { color: var(--faint); font-size: .7rem; }
.dash-navcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; }
.dash-nav { display: flex; flex-direction: column; gap: 3px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: .92rem; transition: all .2s; }
.dash-nav a:hover { background: var(--surface-2); color: var(--text); }
.dash-nav a.active { background: var(--grad-brand); color: #fff; }
.dash-nav a svg { width: 19px; height: 19px; }
.dash-main { padding: 0; min-width: 0; }
.dash-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 28px; }
.metric { border-radius: var(--r); padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.metric .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--brand-2); margin-bottom: 14px; }
.metric .v { font-family: var(--fz-num); font-weight: 700; font-size: 1.7rem; }
.metric .l { color: var(--muted); font-size: .85rem; }
.role-toggle { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.role-toggle button { flex: 1; padding: 8px; border: none; border-radius: 9px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; font-size: .85rem; }
.role-toggle button.active { background: var(--grad-brand); color: #fff; }

/* ---------- Таблица ---------- */
.table-wrap { border-radius: var(--r); margin-top:20px;border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th { text-align: left; padding: 14px 18px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); background: var(--surface-2); }
table.tbl td { padding: 14px 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.status-pill { padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.st-new{background:rgba(109,93,246,.15);color:var(--brand-2);}
.st-progress{background:rgba(245,181,68,.15);color:var(--gold);}
.st-completed{background:rgba(45,212,191,.15);color:var(--teal);}
.st-dispute{background:rgba(242,84,91,.15);color:var(--danger);}

/* ---------- Алёрты ---------- */
.alert { padding: 13px 18px; border-radius: var(--r-sm); font-size: .9rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-error { background: rgba(242,84,91,.12); color: var(--danger); border: 1px solid rgba(242,84,91,.25); }
.alert-success { background: rgba(45,212,191,.12); color: var(--teal); border: 1px solid rgba(45,212,191,.25); }
.alert-warn { background: rgba(245,181,68,.12); color: var(--gold); border: 1px solid rgba(245,181,68,.25); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { color: var(--faint); margin: 0 auto 16px; opacity: .6; }

/* ---------- Reveal-анимация ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Мобильное меню ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--ink); padding: 24px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
.mobile-menu.open { transform: none; }
.mobile-menu .mm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-menu nav a { display: block; padding: 14px 0; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--line); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .pkg-card { position: static; }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(3,1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .dash-layout { grid-template-columns: 1fr; gap: 18px; }
  .dash-side { position: static; }
  .dash-cards { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 24px; }
}
@media (max-width: 720px) {
  .main-nav, .header-actions .desktop-only { display: none; }
  .burger { display: grid; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .section { padding: 54px 0; }
  .profile-head { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: 1fr; }
  .display { font-size: 2.3rem; }
  .footer-top { grid-template-columns: 1fr; }
  .dash-main { padding: 0; }
  .grid-mob {grid-template-columns: 1fr 1fr;}
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Кнопка сайдбара кабинета (моб.) ---------- */
.dash-toggle { display: none; }
@media (max-width: 940px) { .dash-toggle { display: grid; } }

/* ============ КАБИНЕТ В СТИЛЕ МАРКЕТПЛЕЙСА ============ */
.dash-wrap { padding: 24px 0 70px; }
.dash-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.dash-tabs::-webkit-scrollbar { height: 0; }
.dash-tabs a { padding: 13px 16px; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 8px; }
.dash-tabs a:hover { color: var(--text); }
.dash-tabs a.active { color: var(--brand-2); border-bottom-color: var(--brand); }
.dash-tabs a svg { width: 17px; height: 17px; }

.dash-home { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.dash-home .col-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.dash-home .col-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.card { background: var(--surface); width:100%;border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
.card-head h3 { font-size: 1.05rem; }

.sum-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.sum-card .t { font-size: 1.02rem; font-weight: 600; }
.sum-card .t b { color: var(--brand-2); }

.msg-row { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); align-items: center; }
.msg-row:first-of-type { border-top: none; }
.msg-row .who { font-weight: 600; font-size: .88rem; }
.msg-row .snippet { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.msg-row .date { color: var(--faint); font-size: .72rem; margin-left: auto; white-space: nowrap; }

.board-row { display: grid; grid-template-columns: 1fr 180px auto; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.board-row:first-of-type { border-top: none; }
.board-row .b-title { font-weight: 600; }
.board-row .b-title a:hover { color: var(--brand-2); }
.board-row .b-crumb { color: var(--faint); font-size: .77rem; margin-top: 3px; }
.board-row .b-buyer { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.board-row .b-price { font-family: var(--fz-num); font-weight: 700; color: var(--teal); white-space: nowrap; text-align: right; }

.step { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: none; }
.step .s-info { font-size: .9rem; }
.step .s-bar { height: 6px; border-radius: 999px; background: var(--surface-3); width: 100%; max-width: 220px; overflow: hidden; margin-top: 8px; }
.step .s-fill { height: 100%; background: var(--grad-brand); }

.inbox { display: grid; grid-template-columns: 330px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-height: 540px; }
.inbox .list { border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; max-height: 620px; }
.inbox .thread { display: grid; place-items: center; color: var(--faint); background: var(--surface-2); text-align: center; }
.inbox .ci { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.inbox .ci:hover { background: var(--surface-2); }

.an-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 6px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.an-row .v { font-family: var(--fz-num); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.an-row .l { color: var(--muted); font-size: .84rem; margin-top: 6px; }

@media (max-width: 940px) {
  .dash-home { grid-template-columns: 1fr; }
  .dash-home .col-side { position: static; }
  .inbox { grid-template-columns: 1fr; }
  .inbox .thread { display: none; }
  .an-row { grid-template-columns: repeat(2,1fr); }
  .board-row { grid-template-columns: 1fr auto; }
  .board-row .b-buyer { display: none; }
}
@media (max-width: 560px) { .an-row { grid-template-columns: 1fr; } }


/* ---------- Портфолио: плюс, модалка, lightbox ---------- */
.pf-add { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:220px; border:2px dashed var(--line); border-radius:var(--r-lg); background:var(--surface); color:var(--muted); cursor:pointer; font-weight:600; transition:all .2s; }
.pf-add:hover { border-color:var(--brand); color:var(--brand-2); }
.pf-plus { width:60px; height:60px; border-radius:50%; display:grid; place-items:center; background:var(--surface-2); color:var(--brand-2); }

.lw-modal { position:fixed; inset:0; background:rgba(0,0,0,.6); backdrop-filter:blur(4px); z-index:300; display:none; place-items:center; padding:20px; }
.lw-modal.open { display:grid; }
.lw-modal-box { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:24px; width:min(520px,100%); max-height:90vh; overflow-y:auto; }
.lw-modal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }

.lw-lightbox { position:fixed; inset:0; background:rgba(0,0,0,.92); z-index:400; display:none; align-items:center; justify-content:center; }
.lw-lightbox.open { display:flex; }
.lw-lightbox img { max-width:88vw; max-height:88vh; border-radius:10px; }
.lw-lightbox .lb-close { position:absolute; top:20px; right:24px; background:none; border:none; color:#fff; cursor:pointer; }
.lw-lightbox .lb-nav { background:rgba(255,255,255,.1); border:none; color:#fff; width:54px; height:54px; border-radius:50%; cursor:pointer; margin:0 16px; display:grid; place-items:center; }
.lw-lightbox .lb-prev svg { transform:rotate(180deg); }
.lw-lightbox .lb-nav:hover { background:rgba(255,255,255,.2); }
.lb-prev {position:absolute;left:-15px;    }
.lb-next {position:absolute;right:-15px;}


.lw-toast { position:fixed; left:50%; bottom:28px; transform:translateX(-50%) translateY(20px); z-index:500; background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--teal); border-radius:12px; padding:14px 20px; box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:10px; font-weight:600; opacity:0; transition:all .3s; max-width:90vw; }
.lw-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.lw-toast.err { border-left-color:var(--danger); }

.notif-badge { position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:var(--coral); color:#fff; font-size:.68rem; font-weight:700; display:flex; align-items:center; justify-content:center; line-height:1; }

/* PRO: список преимуществ */
.pro-perks { display:flex; flex-direction:column; gap:12px; }
.pro-perk { display:flex; align-items:center; gap:10px; color:var(--muted); }
.pro-perk .pro-ic { flex:0 0 auto; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; background:var(--surface-2); color:var(--teal); }

/* Биржа: фильтры в столбик */
.filter-panel .filter-group a.check { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:7px 0; color:var(--muted); border-bottom:1px solid var(--line); }
.filter-panel .filter-group a.check:last-child { border-bottom:none; }
.filter-panel .filter-group a.check:hover { color:var(--brand-2); }

.brand-des {display:block;}

@media (max-width:680px){ .brand-des { display:none;}}



/* Профиль: две колонки + панель показателей */
.profile-layout { display:grid; grid-template-columns:1fr 320px; gap:28px; align-items:start; margin-top:24px; }
.profile-stats { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:22px; position:sticky; top:88px; }
.profile-stats .ps-rating { display:flex; align-items:center; gap:8px; padding-bottom:16px; margin-bottom:8px; border-bottom:1px solid var(--line); }
.profile-stats .ps-rating .star { color:var(--gold); }
.profile-stats .ps-rating .val { font-family:var(--fz-num); font-weight:800; font-size:1.5rem; }
.profile-stats .ps-rating .lbl { color:var(--muted); font-weight:600; }
.profile-stats .ps-row { display:flex; align-items:center; gap:8px; padding:8px 0; color:var(--text); font-weight:600; }
.ps-line { display:flex; align-items:baseline; gap:8px; padding:9px 0; border-bottom:1px solid var(--line); }
.ps-line:last-child { border-bottom:none; }
.ps-line .ps-n { font-family:var(--fz-num); font-weight:700; font-size:1.05rem; min-width:48px; }
.ps-line .ps-t { color:var(--muted); font-size:.88rem; }
@media (max-width:860px) {
  .profile-layout { grid-template-columns:1fr; }
  .profile-stats { position:static; order:-1; }
}



/* Профиль: блок "О себе" под профилем со сворачиванием */
.profile-about { margin-top:22px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:22px; }
.profile-about .pa-body { max-height:180px; overflow:hidden; position:relative; transition:max-height .35s ease; }
.profile-about .pa-body::after { content:''; position:absolute; left:0; right:0; bottom:0; height:60px; background:linear-gradient(transparent, var(--surface)); pointer-events:none; transition:opacity .3s; }
.profile-about.open .pa-body { max-height:4000px; }
.profile-about.open .pa-body::after { opacity:0; }
.profile-about .pa-toggle { margin-top:14px; background:none; border:none; color:var(--brand-2); font-weight:600; cursor:pointer; display:inline-flex; align-items:center; gap:6px; padding:0; }
.profile-about .pa-toggle svg { transition:transform .3s; }
.profile-about.open .pa-toggle svg { transform:rotate(-90deg); }



.ach-badge { display:grid; place-items:center;  cursor:grab; transition:transform .2s; }
.ach-badge:hover { transform:translateY(-2px); border-color:var(--gold); }









/* ============ АДМИН-ПАНЕЛЬ ============ */
.adm { display:grid; grid-template-columns:250px 1fr; min-height:100vh; background:var(--bg); }
.adm-side { background:var(--surface); border-right:1px solid var(--line); display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.adm-brand { display:flex; align-items:center; gap:10px; padding:20px; font-weight:800; font-size:1.15rem; border-bottom:1px solid var(--line); }
.adm-brand .mark { width:32px; height:32px; border-radius:9px; background:var(--grad-brand); display:grid; place-items:center; color:#fff; }
.adm-brand small { color:var(--faint); font-weight:600; font-size:.62rem; text-transform:uppercase; letter-spacing:.1em; align-self:flex-end; margin-bottom:3px; }
.adm-nav { flex:1; overflow-y:auto; padding:12px 10px; display:flex; flex-direction:column; gap:2px; }
.adm-nav a { display:flex; align-items:center; gap:11px; padding:10px 13px; border-radius:10px; color:var(--muted); font-weight:600; font-size:.9rem; }
.adm-nav a:hover { background:var(--surface-2); color:var(--text); }
.adm-nav a.active { background:var(--grad-brand); color:#fff; }
.adm-side-foot { padding:14px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:8px; }
.adm-side-foot a { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.85rem; font-weight:600; }
.adm-role { font-size:.72rem; color:var(--faint); }
.adm-main { min-width:0; display:flex; flex-direction:column; }
.adm-top { display:flex; justify-content:space-between; align-items:center; padding:18px 28px; border-bottom:1px solid var(--line); background:var(--surface); position:sticky; top:0; z-index:20; }
.adm-top h1 { font-size:1.3rem; }
.adm-top-r { display:flex; align-items:center; gap:10px; }
.adm-user { font-weight:600; font-size:.9rem; }
.adm-body { padding:28px; }
.adm-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:28px; }
.adm-stat { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:20px; }
.adm-stat .v { font-family:var(--fz-num); font-weight:800; font-size:1.8rem; }
.adm-stat .l { color:var(--muted); font-size:.85rem; margin-top:4px; }
.adm-stat .ic { width:40px; height:40px; border-radius:10px; background:var(--surface-2); display:grid; place-items:center; color:var(--brand-2); margin-bottom:12px; }
.adm-sect { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:22px; margin-bottom:22px; }
.adm-sect h2 { font-size:1.05rem; margin-bottom:16px; }
@media (max-width:900px){ .adm{grid-template-columns:1fr} .adm-side{position:fixed;z-index:200;transform:translateX(-100%);transition:.3s;width:250px} .adm-side.open{transform:none} .adm-cards{grid-template-columns:repeat(2,1fr)} }





/* Пополнение: шаги, таймер, копирование */
.dep-steps { display:flex; gap:10px; margin-bottom:20px; }
.dep-step { flex:1; display:flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; color:var(--muted); font-size:.85rem; font-weight:600; }
.dep-step .n { width:22px; height:22px; border-radius:50%; background:var(--surface-3); display:grid; place-items:center; font-size:.75rem; }
.dep-step.active { border-color:var(--brand); color:var(--brand-2); }
.dep-step.active .n { background:var(--grad-brand); color:#fff; }
.dep-step.done { color:var(--teal); border-color:var(--teal); }
.dep-step.done .n { background:var(--teal); color:#fff; }
.dep-timer { display:inline-flex; align-items:center; gap:6px; background:var(--surface-2); border-radius:999px; padding:8px 16px; font-weight:700; font-family:var(--fz-num); }
.copy-box { display:flex; gap:8px; margin-top:6px; }
.copy-box input { flex:1; background:var(--surface-2); border:1px solid var(--line); border-radius:10px; padding:11px 14px; color:var(--text); font-family:var(--fz-num); font-size:.92rem; }




/* Выпадающее меню пользователя в шапке */
.user-menu { position:relative; }
.user-menu-trigger { display:block; border-radius:50%; }
.user-dropdown {
  position:absolute; top:calc(100% + 10px); right:0; width:300px;
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.4); padding:8px;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .18s, transform .18s, visibility .18s; z-index:300;
}
.user-menu:hover .user-dropdown,
.user-dropdown:hover,
.user-menu.open .user-dropdown { opacity:1; visibility:visible; transform:translateY(0); }
/* мостик, чтобы меню не закрывалось при переходе мыши */
.user-menu::after { content:''; position:absolute; top:100%; right:0; width:100%; height:12px; }
.user-dropdown a { display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:9px; color:var(--text); font-size:.9rem; font-weight:500; }
.user-dropdown a:hover { background:var(--surface-2); }
.user-dropdown .ud-head { padding:10px 12px; }
.user-dropdown .ud-head small { color:var(--faint); font-weight:500; }
.user-dropdown .ud-bal { margin-left:auto; color:var(--teal); font-family:var(--fz-num); font-weight:700; font-size:.82rem; }
.user-dropdown .ud-divider { height:1px; background:var(--line); margin:6px 4px; }
.user-dropdown .ud-logout { color:var(--coral); }
.user-dropdown .ud-logout:hover { background:rgba(255,122,89,.1); }

@media (max-width:768px) {
  /* на мобилке меню открывается только по тапу (класс .open), не по hover */
  .user-menu:hover .user-dropdown { opacity:0; visibility:hidden; transform:translateY(-8px); }
  .user-menu.open .user-dropdown { opacity:1; visibility:visible; transform:translateY(0); }
  .user-dropdown { right:0; width:240px; max-width:calc(100vw - 32px); }
}





.cookie-banner { position:fixed; left:16px; right:16px; bottom:16px; max-width:680px; margin:0 auto; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px 20px; display:flex; align-items:center; gap:16px; box-shadow:0 18px 50px rgba(0,0,0,.4); z-index:999; font-size:.86rem; color:var(--muted); }
.cookie-banner a { color:var(--brand-2); }
@media (max-width:560px){ .cookie-banner { flex-direction:column; text-align:center; } }




.dash-switch { cursor:pointer; user-select:none; }



.cat-card .cat-img { width:100px; height:100px; border-radius:14px; overflow:hidden; display:grid; place-items:center; }
.cat-card .cat-img img { width:100%; height:100%; object-fit:cover; }


.adm-sect table.tbl td { position: relative; }
.adm-sect details summary::-webkit-details-marker { display: none; }

/* Жалоба на услугу */
.complaint-box { border-top:1px solid var(--line); padding-top:14px; margin-top:16px !important; }
.complaint-box summary {
  display:inline-flex; align-items:center; gap:6px;
  color:var(--faint); font-size:.82rem; cursor:pointer;
  list-style:none; transition:color .2s;
}
.complaint-box summary::-webkit-details-marker { display:none; }
.complaint-box summary:hover { color:var(--danger); }
.complaint-box summary svg { width:14px; height:14px; }
.complaint-box[open] summary { color:var(--text); margin-bottom:10px; }
.complaint-box textarea { font-size:.88rem; min-height:70px; }
.complaint-box .btn { margin-top:8px; }




