:root {
  --ink:        #F4F6FA;
  --surface:    #FFFFFF;
  --surface-2:  #F7F8FB;
  --surface-3:  #EEF1F6;
  --line:       rgba(20,28,54,.10);
  --line-2:     rgba(20,28,54,.18);
  --text:       #14181F;
  --muted:      #5C6577;
  --faint:      #8B93A7;

  --brand:      #1868DB;
  --brand-2:    #1868DB;
  --coral:      #1868DB;
  --coral-2:    #1868DB;
  --teal:       #1868DB;
  --gold:       #F5B544;
  --danger:     #E5484D;

  --glass:      #FFFFFF;
  --glass-2:    #FFFFFF;
  --glass-brd:  rgba(20,28,54,.10);
  --blur:       0px;

  --grad-aurora: none;
  --grad-brand:  var(--brand);
  --grad-cta:    var(--brand);

  --r-sm: 6px;
  --r:    6px;
  --r-lg: 6px;
  --r-xl: 6px;

  --shadow:    0 4px 16px -6px rgba(20,28,54,.12);
  --shadow-lg: 0 12px 32px -10px rgba(20,28,54,.16);
  --ring:      0 0 0 3px rgba(24,104,219,.25);

  --fz: 'Manrope', system-ui, sans-serif;
  --fz-disp: 'Manrope', system-ui, 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; }


/* ---------- Контейнер ---------- */
.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, 34px); }
h2.section-title { font-size: clamp(1.6rem, 3.5vw, 27px); }
.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: 16px; max-width: 56ch;margin: 10px 0 10px 0px; }
.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: 8px;
  padding: 12px 24px; border-radius: 6px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn:active { opacity: .85; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #1552b0; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #1552b0; }
.btn-ghost { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-outline { border-color: var(--line-2); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 7px 32px; font-size: 1rem; }
.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: rgba(245,181,68,.15); 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: relative; 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; flex-direction:column; font-family: var(--fz-disp); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em;width:150px; }
.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; }
.sub-brand {font-size:11px;font-weight:500;}
.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: 28px; height: 42px; display: grid; place-items: center;
  cursor: pointer;
  color: var(--muted); transition: color .2s, border-color .2s, transform .15s;
  position: relative;background:none;border:0;
}
.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; overflow: hidden; background-image: url('/assets/img/back-hero.png'); background-repeat: no-repeat; background-position: right top; background-size: auto 100%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 71%, var(--ink) 96%),
    linear-gradient(90deg, var(--ink) 65%, rgba(244,246,250,.85) 55%, rgba(244,246,250,.4) 82%, transparent 130%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .95fr; gap: 40px; align-items: center; }
.hero h1 { margin: 18px 0 18px; }
.hero .lead { margin-bottom: 28px; }
.search-bar {
  display: flex; align-items: center; gap: 8px; padding: 0px 0px 0px 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: 4px 10px; border-radius: 6px; 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: 460px; }
.hero-visual::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(0deg, var(--ink) 0%, transparent 32%),
    linear-gradient(90deg, var(--ink) 0%, transparent 40%);
}

.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: center; 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;
    /*background: #f4f6fd url(/assets/img/card-bg-pages.png) 50%;*/
    box-shadow: var(--shadow);
    background-size: cover;
}
.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 { border-color: var(--brand); box-shadow: var(--shadow); }
.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: 16px; padding: 44px; position: relative; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 30px;align-items:center;justify-items:center; }
.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: 6px 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: 16px; 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 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; 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; }
.sw { width: 40px; height: 22px;border:none; border-radius: 999px; background: var(--surface-3); position: relative; flex: 0 0 auto; transition: background .25s; display: inline-block; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s; }
.sw.on { background: var(--teal); }
.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;white-space:nowrap; }
.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: 16px; 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: 16px; 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; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.step .s-info { flex: 1; min-width: 0; }
.step .btn { flex-shrink: 0; margin-left: auto; }
.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; position:relative; }
.lw-modal-box.wide { width:min(640px,100%); }
.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;}




/* Профиль: две колонки + панель показателей */
.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; width:150px;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:5px 12px; border-radius:9px; color:var(--text); font-size:14px; 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; }



/* ===== Модалки входа/регистрации (Kwork-стиль) ===== */
.auth-modal { position:fixed; inset:0; z-index:600; display:none; align-items:flex-start; justify-content:center; padding:60px 16px; background:rgba(0,0,0,.6); backdrop-filter:blur(4px); overflow-y:auto; }
.auth-modal.open { display:flex; }
.auth-modal-box { background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:20px 20px; width:min(370px,100%); position:relative; box-shadow:var(--shadow-lg); }
.auth-modal-box .am-close { position:absolute; top:16px; right:16px; background:none; border:none; color:var(--faint); cursor:pointer; }
.auth-modal-box .am-close:hover { color:var(--text); }
.am-title { font-size:1.6rem; margin-bottom:20px; }
.am-roles { display:flex; gap:0; border-radius:8px; overflow:hidden; border:1px solid var(--line-2); margin-bottom:18px; }
.am-role { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:6px; border:none; cursor:pointer; font-weight:600; font-size:.9rem; color:var(--muted); transition:all .2s; }
.am-role.active { background:var(--brand); color:#fff; }
.am-agree { display:flex; align-items:flex-start; gap:8px; font-size:.8rem; color:var(--muted); margin:14px 0; }
.am-agree input { margin-top:3px; }
.am-agree a { color:var(--brand-2); }
.am-switch { text-align:center; margin-top:18px; color:var(--muted); font-size:.9rem; }
.am-switch a { color:var(--brand-2); font-weight:600; }


.am-eye { position:absolute; right:12px; top:50%; transform:translateY(-50%); background:none; border:none; color:var(--faint); cursor:pointer; padding:4px; }
.am-eye:hover { color:var(--text); }




/* --- Kwork-style auth modal: VK-заглушка + табы ролей --- */
.am-divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--faint);font-size:.85rem}
.am-divider::before,.am-divider::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.08)}

.am-vk-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;background:#0077FF;color:#fff;border:none;border-radius:10px;padding:13px;font-size:.95rem;font-weight:600;cursor:not-allowed;opacity:.85}
.am-vk-btn svg{flex-shrink:0}

.am-alt-login{text-align:center;margin-top:14px}
.am-alt-login .link{color:var(--brand-2);font-size:.85rem}





.hero-slider { position:relative; width:100%; height:100%; }
.hs-slide { position:absolute; inset:0; opacity:0; transition:opacity .8s ease; display:flex; align-items:flex-end; justify-content:center; }
.hs-slide.active { opacity:1; }
.hs-slide img { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
.hs-caption {
  position:absolute; left:6%; bottom:6%; z-index:3;
  background:var(--surface); border-radius:var(--r-sm); box-shadow:var(--shadow);
  padding:12px 18px; display:flex; flex-direction:column; align-items:flex-start; gap:4px;
}
.hs-caption .rating-line .num { font-weight:700; }
.hs-caption strong { font-size:.92rem; font-weight:600; }

.brand-strip { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:24px; opacity:.55; font-weight:700; font-family:var(--fz-disp); font-size:1.1rem; filter:grayscale(1); }

.section-notop { padding-top: 0; }
.portfolio-tile { display: block; border-radius: var(--r-lg); overflow: hidden; }
.earn-banner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 36px; }
.earn-banner img { border-radius: var(--r-lg); width: 100%; height: 280px; object-fit: cover; }
.step-ic-round { width: 64px; height: 64px; border-radius: 50%; }
.review-role { color: var(--faint); font-size: .8rem; }


/* --- Kwork-style guest header --- */
.header-inner-guest { display:flex; align-items:center; gap:26px; height:64px; }
.header-search { display:flex; align-items:center; flex:0 0 380px; background:var(--surface-2); border:1px solid var(--line-2); border-radius:6px; overflow:hidden; }
.header-search svg { flex-shrink:0; }
.header-search input { flex:1; border:none; background:none; outline:none; padding:10px 8px; font-size:.9rem; }
.header-search button { background:var(--brand); border:none; color:#fff; width:38px; height:34px; display:grid; place-items:center; cursor:pointer; margin:2px; border-radius:4px; }
.header-search button:hover { background:#1552b0; }

.header-stats { display:flex; flex-direction:column; gap:3px; font-size:.76rem; color:var(--faint); white-space:nowrap; }
.header-stats b { color:var(--text); font-weight:700; }
.header-stats .hs-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:#2ECC71; margin-right:5px; }

.header-link { color:var(--text); font-weight:600; font-size:.92rem; padding:8px 6px; white-space:nowrap; }
.header-link:hover { color:var(--brand); }

.cat-nav { display:flex; gap:2px; height:46px; align-items:center;justify-content:space-between; border-top:1px solid var(--line);border-bottom:1px solid var(--line); overflow:visible; }
.cat-nav-item:not(:last-child) { position:relative; }
.cat-nav-item:not(:last-child)::after { content:''; position:absolute; top:50%; right:-1px; transform:translateY(-50%); width:1px; height:16px; background:var(--line-2); }
.cat-nav::-webkit-scrollbar { height:0; }
.cat-nav a { padding:8px 14px; font-size:.87rem; font-weight:600; color:var(--muted);  white-space:nowrap; }
.cat-nav a:hover { color:var(--brand); border-bottom:2px solid var(--brand);border-radius:0;transition:0.4s; }

@media (max-width:940px) {
  .header-stats { display:none; }
  .header-search { flex: 0 1 320px; }
    .cat-mega { display: none; }
  .cat-nav { overflow-x: auto; }
}
@media (max-width:720px) {
  .header-inner-guest { gap:12px; }
  .header-actions .header-link { display:none; }
}

/* --- Footer bottom: соцсети + app badges --- */
.footer-bottom-right { display:flex; align-items:center; gap:20px; }
.app-badges { display:flex; gap:10px; }
.app-badge { display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:6px; border:1px solid var(--line-2); font-size:.78rem; font-weight:600; color:var(--muted); }

/* --- "Фрилансеру" (for-sellers) --- */
.fs-hero { position:relative; min-height:520px; display:flex; flex-direction:column; justify-content:center; overflow:hidden; color:#fff; }
.fs-hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.fs-hero-overlay { position:absolute; inset:0; background:rgba(10,14,26,.6); z-index:1; }
.fs-hero-inner { position:relative; z-index:2; padding:100px 0 60px; }
.fs-hero-inner .display { color:#fff; }
.fs-hero-lead { color:rgba(255,255,255,.85); margin:14px 0 26px; }
.fs-hero-stats { position:absolute; z-index:2; background:rgb(255 255 255 / 35%); border-top:1px solid rgba(255,255,255,.15);bottom: 0;width: 100%;display: flex; }
.fs-hero-stats-inner { display:flex; gap:40px; padding:18px 0; justify-content: space-around; }
.fs-hero-stats-inner .l { display:block; font-size:.78rem; color:rgba(255,255,255,.7); }
.fs-hero-stats-inner b { font-family:var(--fz-num); font-size:1.15rem; }

.fs-avatar-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:32px; }
.fs-avatar-tile { position:relative; border-radius:var(--r-lg); overflow:hidden; aspect-ratio:1/1; }
.fs-avatar-tile img { width:100%; height:100%; object-fit:cover; }
.fs-avatar-label { position:absolute; left:14px; bottom:14px; color:#fff; font-size:.85rem; line-height:1.3; text-shadow:0 1px 4px rgba(0,0,0,.5); }
.fs-avatar-cta { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; background:var(--surface-2); border:1px solid var(--line); color:var(--brand); text-align:center; padding:16px; }

.fs-steps-band { background:var(--surface-2); }
.fs-step { text-align:center; padding:10px; }
.fs-step h3 { font-size:1rem; margin:16px 0 8px; }
.fs-step p { color:var(--muted); font-size:.9rem; }

@media (max-width:940px) { .fs-avatar-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:720px) { .fs-hero-stats-inner { gap:20px; } }



/* --- Попап карточки исполнителя (for-sellers) --- */
.fs-avatar-tile { cursor:pointer; border:none; padding:0; font:inherit; text-align:left; }
.fs-quote-modal .fs-quote-box { background:var(--surface); border-radius:var(--r-lg); width:min(900px,100%); max-height:88vh; padding:0; display:grid; grid-template-columns:1.3fr 1fr; overflow:hidden; position:relative; }
.fs-quote-close { position:absolute; top:14px; right:14px; z-index:3; background:rgba(0,0,0,.35); color:#fff; border:none; border-radius:50%; width:34px; height:34px; display:grid; place-items:center; cursor:pointer; }
.fs-quote-photo { position:relative; min-height:420px; background:var(--surface-3); }
.fs-quote-photo img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.fs-quote-text { position:absolute; left:24px; right:24px; bottom:24px; background:rgba(20,24,31,.72); color:#fff; padding:20px; border-radius:var(--r-lg); }
.fs-quote-text p { font-size:.92rem; line-height:1.5; margin-bottom:10px; }
.fs-quote-info { padding:32px 28px; display:flex; flex-direction:column; gap:20px; }
.fs-quote-joined { font-size:1.15rem; font-weight:700; }
.fs-quote-row { display:flex; align-items:center; gap:14px; }
.fs-quote-ic { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; flex-shrink:0; }
.fs-quote-star { background:rgba(245,181,68,.15); color:var(--gold); }
.fs-quote-check { background:rgba(24,104,219,.12); color:var(--brand); }
.fs-quote-row b { font-size:1.1rem; }
.fs-quote-row span { color:var(--muted); font-size:.85rem; }
@media (max-width:720px) { .fs-quote-box { grid-template-columns:1fr; } .fs-quote-photo { min-height:280px; } }

.header-ic-dot {display: flex; align-items: center;}



/* --- Отзывы покупателей (for-sellers): диагональная сетка как на Kwork --- */
.fs-review-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; }
.fs-review-tile { display:grid; grid-template-columns:1fr 1.2fr; background:var(--surface-2); min-height:260px; }
.fs-review-tile.flip { grid-template-columns:1.2fr 1fr; }
.fs-review-tile.flip .fs-review-photo { order:2; }
.fs-review-tile.flip .fs-review-text { order:1; }
.fs-review-photo { position:relative; overflow:hidden; clip-path:polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0% 100%); }
.fs-review-tile.flip .fs-review-photo { clip-path:polygon(22% 0, 100% 0, 100% 100%, 22% 100%, 0% 50%); }
.fs-review-photo img { width:100%; height:100%; object-fit:cover; }
.fs-review-text { display:flex; flex-direction:column; justify-content:center; padding:30px 34px; }
.fs-review-text p { font-style:italic; color:var(--text); line-height:1.55; margin-bottom:16px; }
.fs-review-text strong { color:var(--muted); font-weight:600; font-size:.92rem; }

@media (max-width:860px) {
  .fs-review-grid { grid-template-columns:1fr; }
  .fs-review-tile, .fs-review-tile.flip { grid-template-columns:1fr; min-height:auto; }
  .fs-review-photo, .fs-review-tile.flip .fs-review-photo { clip-path:none; aspect-ratio:16/9; order:0 !important; }
  .fs-review-text { order:1 !important; padding:24px; }
}

.h-s{border-radius:0px 6px 6px 0px;}

/* --- Мега-меню категорий в шапке (Kwork-стиль) --- */
.cat-nav-item { position: relative; }
.cat-mega {
  position: absolute; top: 38px; left: 0; z-index: 150;
  background: var(--surface); border: 1px solid var(--line); 
  box-shadow: var(--shadow-lg); border-radius:16px;
  display: flex; gap: 40px; padding: 24px 28px;
  min-width: 100%;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.cat-nav-item:hover .cat-mega { opacity: 1; visibility: visible; transform: none; }
.cat-nav-item:last-child .cat-mega { left: auto; right: 0; }
.cat-mega-col { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }
.cat-mega-col h4 { font-size: .82rem; font-weight: 700; color: var(--text); margin: 14px 0 6px; }
.cat-mega-col h4:first-child { margin-top: 0; }
.cat-mega-col a { padding: 5px 0; font-size: .87rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cat-mega-col a:hover { color: var(--brand); }
.cm-hot { color: #FF7A1A; display: inline-flex; }
.cm-new { font-size: .65rem; font-weight: 700; color: var(--teal); border: 1px solid var(--teal); border-radius: 4px; padding: 1px 5px; line-height: 1.4; }

@media (max-width: 940px) { .cat-mega { display: none; } }


/* --- Страница категории с сайдбаром --- */
.cat-page-layout { display:grid; grid-template-columns:270px 1fr; gap:32px; align-items:start; }
.cat-page-sidebar { position:sticky; top:88px; }
.cat-page-sidebar h3 { font-size:1.15rem; margin-bottom:14px; }
.cat-page-sidebar h4 { font-size:.85rem; font-weight:700; color:var(--text); margin:18px 0 6px; }
.cat-page-sidebar h4:first-of-type { margin-top:0; }
.cat-page-sidebar a { display:block; padding:5px 0; font-size:.88rem; color:var(--muted); }
.cat-page-sidebar a:hover { color:var(--brand); }

@media (max-width:940px) {
  .cat-page-layout { grid-template-columns:1fr; }
  .cat-page-sidebar { position:static; }
}




/* --- Каталог: вкладки соседних подкатегорий + блок "Рубрики" --- */
.cat-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-top:20px; }
.cat-tab { padding:9px 16px; border-radius:6px; border:1px solid var(--line-2); font-size:.88rem; font-weight:600; color:var(--muted); display:inline-flex; align-items:center; gap:8px; }
.cat-tab:hover { border-color:var(--brand); color:var(--brand); }
.cat-tab.active { background:var(--brand); color:#fff; border-color:var(--brand); }
.cat-tab-x { display:inline-flex; opacity:.8; }

.rubric-box { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:18px; margin-bottom:16px; }
.rubric-back { display:flex; align-items:center; gap:6px; color:var(--brand); font-weight:600; font-size:.88rem; padding:4px 0; }
.rubric-back svg { transform:rotate(180deg); width:12px; height:12px; }
.rubric-group { color:var(--muted); font-weight:500; }
.rubric-list { margin-top:8px; padding-top:8px; border-top:1px solid var(--line); display:flex; flex-direction:column; }
.rubric-list a, .rubric-current { padding:6px 0; font-size:.88rem; }
.rubric-list a { color:var(--muted); }
.rubric-list a:hover { color:var(--brand); }
.rubric-current { font-weight:700; color:var(--text); }


/* --- Каталог: переключатель вида + дропдаун сортировки + список --- */
.toolbar-right { display:flex; align-items:center; gap:16px; }
.view-toggle { display:flex; gap:2px; background:var(--surface-2); border:1px solid var(--line); border-radius:6px; padding:2px; }
.vt-btn { width:32px; height:32px; display:grid; place-items:center; border-radius:5px; color:var(--faint); }
.vt-btn:hover { color:var(--text); }
.vt-btn.active { background:var(--surface); color:var(--brand); box-shadow:var(--shadow); }

.sort-dd { position:relative; }
.sort-dd-trigger { display:flex; align-items:center; gap:6px; background:none; border:none; cursor:pointer; font-size:.88rem; color:var(--muted); }
.sort-dd-trigger b { color:var(--brand); font-weight:600; }
.sort-dd-menu {
  position:absolute; top:calc(100% + 8px); right:0; z-index:50; min-width:180px;
  background:var(--surface); border:1px solid var(--line); border-radius:6px; box-shadow:var(--shadow-lg);
  padding:6px; display:none; flex-direction:column;
}
.sort-dd.open .sort-dd-menu { display:flex; }
.sort-dd-menu a { padding:8px 12px; border-radius:5px; font-size:.88rem; color:var(--text); }
.sort-dd-menu a:hover { background:var(--surface-2); }
.sort-dd-menu a.active { color:var(--brand); font-weight:600; }

.service-list { display:flex; flex-direction:column; gap:14px; }
.service-row { display:flex; align-items:center; gap:20px; padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); }
.service-row:hover { border-color:var(--brand); }
.sr-cover { width:120px; height:80px; flex-shrink:0; border-radius:6px; overflow:hidden; background:var(--surface-3); display:grid; place-items:center; }
.sr-cover img { width:100%; height:100%; object-fit:cover; }
.sr-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.sr-title { font-weight:600; font-size:1rem; color:var(--text); }
.sr-seller { display:flex; align-items:center; gap:10px; font-size:.85rem; color:var(--muted); flex-wrap:wrap; }
.sr-meta { font-size:.8rem; color:var(--faint); }
.sr-price { font-weight:700; font-size:1.15rem; white-space:nowrap; }
.sr-fav { position:static; background:#1868db; }

@media (max-width:720px) {
  .service-row { flex-wrap:wrap; }
  .sr-cover { width:90px; height:64px; }
}




/* --- Баланс в шапке, переключатель ролей в дропдауне --- */
.header-balance { display:flex; align-items:center; gap:6px; color:var(--teal); font-weight:700; font-family:var(--fz-num); font-size:13px; padding:8px 10px; border-radius:8px; }
.header-balance:hover { background:var(--surface-2); }

.ud-role-switch { display:flex; gap:0; border-radius:8px; overflow:hidden; border:1px solid var(--line-2); margin:4px 4px 8px; }
.ud-role-form { flex:1; margin:0; }
.ud-role-btn { width:100%; border:none; background:none; padding:9px 6px; font-size:.85rem; font-weight:700; color:var(--muted); cursor:pointer; }
.ud-role-btn.active { background:var(--brand); color:#fff; }

.ud-accept-row { display:flex; align-items:center; justify-content:space-between; padding:9px 12px; font-size:.88rem; color:var(--text); margin:0; }


/* --- Компактный поиск в шапке кабинета --- */
.header-search-compact { flex: 0 0 260px; margin-right: 8px; }
@media (max-width: 940px) { .header-search-compact { display: none; } }


.card-cat-home {width:300px;height:200px;padding:5px;border-radius:16px;}


/* --- Чат: страница не скроллится, скроллятся список и лента отдельно --- */
.inbox-fixed { height: calc(100vh - 140px); }
.inbox-fixed .list { overflow-y: auto; height: 100%; }
.inbox-fixed .thread { overflow-y: auto; height: 100%; }

.dash-wrap:has(.inbox-fixed) { padding-bottom: 0; }

.chat-pane { display: flex; flex-direction: column; background: var(--surface); height: 100%; min-height: 0; }
.chat-pane-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chat-msgbox { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.chat-pane-foot { border-top: 1px solid var(--line); padding: 14px 16px; flex-shrink: 0; }


.steps-intro-banner { display:flex; align-items:center; justify-content:space-between; gap:20px; background:linear-gradient(135deg, rgba(24,104,219,.08), rgba(45,212,191,.08)); border-radius:var(--r-lg); padding:26px 30px; margin-bottom:16px; }
.steps-intro-banner h3 { font-size:1.15rem; margin-bottom:8px; }
.steps-intro-banner p { color:var(--muted); font-size:.9rem; max-width:56ch; }
.steps-intro-banner img { width:120px; height:auto; flex-shrink:0; }


.popup-head-grid { display:grid; grid-template-columns:120px 1fr; gap:20px; align-items:center; }
.popup-head-img { width:120px; height:120px; object-fit:contain; }
@media (max-width:520px) { .popup-head-grid { grid-template-columns:1fr; text-align:center; } .popup-head-img { margin:0 auto; } }

.step-ic { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; }

/* --- Мои услуги: Kwork-раскладка --- */
.svc-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.svc-title { font-size: 1.5rem; }

.svc-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.svc-controls .dash-switch { display: flex; align-items: center; gap: 10px; font-size: .9rem; }

.svc-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.svc-tab { padding: 10px 2px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 8px; }
.svc-tab.active { color: var(--brand); border-color: var(--brand); }
.svc-tab-cnt { background: var(--surface-3); color: var(--text); border-radius: 999px; padding: 1px 9px; font-size: .8rem; }
.svc-tab.active .svc-tab-cnt { background: var(--brand); color: #fff; }

.svc-list { display: flex; flex-direction: column; gap: 16px; }
.svc-card { display: flex; gap: 20px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.svc-cover { width: 220px; height: 140px; flex-shrink: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-3); display: grid; place-items: center; }
.svc-cover img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.svc-body-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.svc-name { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.svc-name:hover { color: var(--brand); }
.svc-actions { display: flex; gap: 4px; flex-shrink: 0; }
.svc-stats-row { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.svc-stats-col { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 200px; }
.svc-stat { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.svc-stat svg { color: var(--faint); flex-shrink: 0; }
.svc-stat b { color: var(--text); font-weight: 700; }
.svc-mid-note { color: var(--faint); font-size: .82rem; max-width: 220px; }
.svc-price { font-family: var(--fz-num); font-weight: 800; font-size: 1.2rem; color: var(--teal); margin-left: auto; white-space: nowrap; }
.comp-low { color: var(--teal); }
.comp-mid { color: var(--gold); }
.comp-high, .comp-vhigh { color: var(--danger); }

@media (max-width: 720px) {
  .svc-card { flex-direction: column; }
  .svc-cover { width: 100%; height: 180px; }
  .svc-price { margin-left: 0; }
}


/* --- Мои услуги: Kwork-раскладка --- */
.svc-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.svc-title { font-size: 1.5rem; }

.svc-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.svc-controls .dash-switch { display: flex; align-items: center; gap: 10px; font-size: .9rem; }

.svc-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.svc-tab { padding: 10px 2px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 8px; }
.svc-tab.active { color: var(--brand); border-color: var(--brand); }
.svc-tab-cnt { background: var(--surface-3); color: var(--text); border-radius: 999px; padding: 1px 9px; font-size: .8rem; }
.svc-tab.active .svc-tab-cnt { background: var(--brand); color: #fff; }

.svc-list { display: flex; flex-direction: column; gap: 16px; }
.svc-card { display: flex; gap: 20px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.svc-cover { width: 220px; height: 140px; flex-shrink: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-3); display: grid; place-items: center; }
.svc-cover img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.svc-body-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.svc-name { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.svc-name:hover { color: var(--brand); }
.svc-actions { display: flex; gap: 4px; flex-shrink: 0; }
.svc-stats-row { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.svc-stats-col { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 200px; }
.svc-stat { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.svc-stat svg { color: var(--faint); flex-shrink: 0; }
.svc-stat b { color: var(--text); font-weight: 700; }
.svc-mid-note { color: var(--faint); font-size: .82rem; max-width: 220px; }
.svc-price { font-family: var(--fz-num); font-weight: 800; font-size: 1.2rem; color: var(--teal); margin-left: auto; white-space: nowrap; }
.comp-low { color: var(--teal); }
.comp-mid { color: var(--gold); }
.comp-high, .comp-vhigh { color: var(--danger); }

@media (max-width: 720px) {
  .svc-card { flex-direction: column; }
  .svc-cover { width: 100%; height: 180px; }
  .svc-price { margin-left: 0; }
}






.board-topbar { display:flex; align-items:stretch; gap:16px; flex-wrap:wrap; margin-bottom:20px; width:100%; }
.board-tabs-box { display:flex; gap:4px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:14px 18px; }
.board-tab { font-weight:700; color:var(--muted); padding:8px 12px; border-radius:8px; }
.board-tab.active { color:var(--brand); background:rgba(24,104,219,.08); }
.board-connects-box { flex:1; min-width:220px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:14px 18px; }
.board-refill-box { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:14px 18px; text-align:center; }
.board-notify-box { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:14px 22px; display:flex; align-items:center; gap:8px; color:var(--muted); font-weight:600; cursor:pointer; }
.board-notify-box:hover { color:var(--brand); }
.bc-label { font-size:.78rem; color:var(--faint); display:flex; align-items:center; gap:5px; }
.bc-help { cursor:help; }
.bc-count { font-size:.9rem; margin:6px 0 8px; }
.bc-count b { color:var(--brand); }
.bc-bar { height:5px; background:var(--surface-3); border-radius:999px; overflow:hidden; }
.bc-fill { height:100%; background:var(--brand); }

.feedback-tag { display:inline-flex; align-items:center; gap:5px; color:var(--gold); font-size:.78rem; font-weight:600; }
.board-seen { display:inline-flex; align-items:center; gap:5px; color:var(--teal); font-size:.85rem; font-weight:600; }

.respond-hints { background:var(--surface-2); border-radius:var(--r-lg); padding:18px 20px; margin-bottom:18px; }
.respond-hints p { color:var(--muted); font-size:.88rem; line-height:1.6; margin-bottom:8px; }
.respond-hints p:last-child { margin-bottom:0; }

.respond-portfolio-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; }
.respond-pf-item { display:block; border-radius:8px; overflow:hidden; aspect-ratio:1/1; border:2px solid transparent; cursor:pointer; }
.respond-pf-item img { width:100%; height:100%; object-fit:cover; }
.respond-pf-item.checked { border-color:var(--brand); }
@media (max-width:720px) { .respond-portfolio-grid { grid-template-columns:repeat(3,1fr); } }


.pf-hidden { display: none; }




.pf-tabs { display:flex; gap:24px; border-bottom:1px solid var(--line); }
.pf-tab { padding:10px 2px; font-weight:700; color:var(--muted); border-bottom:2px solid transparent; }
.pf-tab.active { color:var(--brand); border-color:var(--brand); }

.pf-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; flex-wrap:wrap; gap:12px; }

.pf-grid { gap:16px; }
.pf-tile { border-radius:var(--r-lg); overflow:hidden; background:var(--surface); border:1px solid var(--line); }
.pf-tile-img { position:relative; aspect-ratio:16/10; background:var(--surface-3); cursor:pointer; overflow:hidden; }
.pf-tile-img img { width:100%; height:100%; object-fit:cover; }
.pf-tile-views { position:absolute; bottom:8px; right:10px; display:flex; align-items:center; gap:5px; background:rgba(0,0,0,.55); color:#fff; font-size:.75rem; padding:3px 8px; border-radius:999px; }
.pf-tile-actions { position:absolute; top:8px; right:8px; display:flex; gap:4px; opacity:0; transition:opacity .15s; }
.pf-tile-img:hover .pf-tile-actions { opacity:1; }
.pf-tile-btn { width:28px; height:28px; border-radius:50%; border:none; background:rgba(0,0,0,.55); color:#fff; display:grid; place-items:center; cursor:pointer; }
.pf-tile-body { padding:12px 14px; }
.pf-tile-title { font-size:.9rem; font-weight:600; }




.offer-sort { display:flex; gap:16px; align-items:center; color:var(--faint); font-size:.9rem; margin-bottom:16px; flex-wrap:wrap;background:#fff;border-radius:6px;padding:10px; }
.offer-sort a { color:var(--muted); font-weight:600; }
.offer-sort a.active { color:var(--brand); }
.offer-sort a:hover { color:var(--brand); }

.offer-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:22px; margin-bottom:16px; }
.offer-head { display:flex; gap:16px; }
.offer-head-info { flex:1; min-width:0; }
.offer-pf-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin-bottom:16px; }
.offer-pf-item { aspect-ratio:1/1; border-radius:8px; overflow:hidden; background:var(--surface-3); }
.offer-pf-item img { width:100%; height:100%; object-fit:cover; }
.offer-actions { display:flex; gap:10px; padding-top:16px; border-top:1px solid var(--line); flex-wrap:wrap; }

@media (max-width:600px) { .offer-pf-grid { grid-template-columns:repeat(3,1fr); } }

.offer-guarantee { display:flex; gap:16px; align-items:flex-start; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-lg); padding:20px; margin-bottom:20px; }
.offer-guarantee-badge { width:64px; height:64px; flex-shrink:0; }
.offer-guarantee-text strong { display:block; margin-bottom:4px; font-size:1rem; }
.offer-guarantee-text p { color:var(--muted); font-size:.88rem; margin-bottom:8px; }
#guaranteeArrow svg { transition:transform .2s; }
#guaranteeArrow.open svg { transform:rotate(180deg); }


.offer-actions-icons { display:flex; gap:6px; margin-right:auto; }
.offer-icon-btn { width:34px; height:34px; border-radius:50%; border:1px solid var(--line-2); background:var(--surface); color:var(--faint); display:grid; place-items:center; cursor:pointer; }
.offer-icon-btn:hover { color:var(--brand); border-color:var(--brand); }
.offer-pf-item { cursor:pointer; }



.myoffer-detail { margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }


.myoffer-card, .myoffer-detail ~ * { }
.myoffer-card { border-radius:var(--r-lg); }

.myoffers-layout { display:grid; grid-template-columns:280px 1fr; gap:28px; align-items:start; }
.board-tabs-vertical { display:flex; flex-direction:column; gap:2px; margin-bottom:16px; }
.board-tabs-vertical .board-tab { padding:12px 16px; text-align:left; border-radius:8px; }
@media (max-width:940px) { .myoffers-layout { grid-template-columns:1fr; } }



.ord-tabs { display:flex; gap:24px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.ord-tab { padding:10px 2px; font-weight:700; color:var(--muted); border-bottom:2px solid transparent; display:flex; align-items:center; gap:8px; }
.ord-tab.active { color:var(--brand); border-color:var(--brand); }
.ord-tab-cnt { background:var(--surface-3); color:var(--text); border-radius:999px; padding:1px 9px; font-size:.8rem; }
.ord-tab.active .ord-tab-cnt { background:var(--brand); color:#fff; }

.ord-st-pending { background:rgba(245,181,68,.15); color:var(--gold); }
.ord-st-done { background:rgba(45,212,191,.15); color:var(--teal); }
.ord-st-cancel { background:var(--surface-3); color:var(--faint); }


.ord-empty { text-align:center; padding:60px 20px; }
.ord-empty-ic { display:inline-flex; width:76px; height:76px; border-radius:50%; align-items:center; justify-content:center; background:var(--surface-2); color:var(--faint); margin-bottom:18px; }
.ord-empty h3 { font-size:1.15rem; margin-bottom:8px; }
.ord-empty p { color:var(--muted); font-size:.9rem; max-width:38ch; margin:0 auto; }



/* --- Hero-баннер главной: узор по краям, ровный цвет в центре --- */
.home-hero-banner {
position: relative;
    text-align: center;
    padding: 40px 24px;
    margin-bottom: 32px;
    overflow: hidden;
    background-color: #eaf3fb;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;
}
.home-hero-banner > * {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width:100%;
  margin-left: auto;
  margin-right: auto;
}
.home-hero-banner::before,
.home-hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background-image: url('/assets/img/back-hero.png');
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}
.home-hero-banner::before {
  left: 0;
  background-position: left center;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 40%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 40%, transparent 100%);
}
.home-hero-banner::after {
  right: 0;
  transform: scaleX(-1);
  background-position: left center;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 40%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 40%, transparent 100%);
}



.lvl-window { padding:0; overflow:hidden; }
.lvl-head { width:100%; display:flex; align-items:center; gap:12px; padding:14px 18px; background:none; border:0; cursor:pointer; text-align:left; font:inherit; color:var(--text); }
.lvl-ic { width:44px; height:44px; object-fit:contain; flex-shrink:0; }
.lvl-title { flex:1; }
.lvl-arrow { transition:transform .3s; color:var(--muted); }
.lvl-window.is-closed .lvl-arrow { transform:rotate(180deg); }
.lvl-body { display:grid; grid-template-rows:1fr; transition:grid-template-rows .35s ease; }
.lvl-window.is-closed .lvl-body { grid-template-rows:0fr; }
.lvl-inner { overflow:hidden; min-height:0; padding:0 18px; }
.lvl-body .lvl-inner > :last-child { margin-bottom:18px; }
.lvl-progress-text { color:var(--muted); font-size:.9rem; margin-bottom:8px; }
.lvl-progress { width:100%; height:10px; margin-bottom:18px; accent-color:var(--brand); }
.rt-title { font-weight:700; margin-bottom:8px; }
.rt-table { width:100%; border-collapse:collapse; margin-bottom:14px; font-size:.9rem; }
.rt-table th, .rt-table td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); }
.rt-table th { color:var(--muted); font-weight:600; }






.pc-lvl-ic { width:20px; height:20px; object-fit:contain; vertical-align:middle; margin-right:4px; }
.pc-level { margin-top:14px; text-align:left; }
.pc-level-text { color:var(--muted); font-size:.85rem; margin-bottom:6px; }


.chat-wave {
  background-color: var(--surface);
  background-image:
    linear-gradient(to right, rgba(255,255,255,0) 0%, var(--surface) 95%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M0 15 Q30 0 60 15 T120 15' fill='none' stroke='%231868DB' stroke-opacity='.10' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M0 45 Q30 30 60 45 T120 45' fill='none' stroke='%231868DB' stroke-opacity='.10' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
}


.pc-lvl-line { display:inline-flex; align-items:center; margin-left:8px; color:var(--muted); font-size:.8rem; }




.tb-summary { display:flex; flex-wrap:wrap; gap:8px 24px; padding:14px 18px; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-lg); margin-bottom:16px; color:var(--muted); font-size:.9rem; }
.tb-quarter { border:1px solid var(--line); border-radius:var(--r-lg); padding:14px 18px; margin-bottom:12px; background:var(--surface); }
.tb-quarter-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; }
.tb-empty { color:var(--faint); font-size:.88rem; }




.am-error { background:rgba(229,72,77,.08); border:1px solid rgba(229,72,77,.25); color:var(--danger); border-radius:8px; padding:10px 12px; font-size:.86rem; margin-bottom:14px; }
.am-error[hidden] { display:none; }



.lw-toast { z-index: 3000; }

/* ---- Переключатель языка ---- */
.lang-sw { position: relative; }
.lang-sw summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 8px; font-weight: 700; font-size: .8rem; color: var(--text); user-select: none; }
.lang-sw summary::-webkit-details-marker { display: none; }
.lang-sw summary:hover, .lang-sw[open] summary { background: var(--surface-3); }
.lang-sw-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; z-index: 300; }
.lang-sw-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-size: .88rem; font-weight: 600; }
.lang-sw-menu a:hover { background: var(--surface-3); }
.lang-sw-menu a.on { color: var(--brand); }
.footer-lang { display: flex; gap: 14px; margin-top: 10px; }
.footer-lang a { font-size: .85rem; font-weight: 700; color: var(--muted); }
.footer-lang a.on, .footer-lang a:hover { color: var(--brand); }

/* ---- Вкладки языка контента ---- */
.lang-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.lang-tabs-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; margin-right: 6px; }
.lang-tab { position: relative; padding: 7px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 800; font-size: .8rem; cursor: pointer; }
.lang-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.lang-tab-dot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: currentColor; opacity: .7; vertical-align: middle; }
.lang-tabs-hint { flex-basis: 100%; font-size: .78rem; color: var(--muted); }
[data-lp][hidden] { display: none !important; }

/* ---- Мои услуги: действия и язык ---- */
.svc-actions { gap: 8px; align-items: center; }
.svc-actions form { display: contents; }
.svc-act { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; padding: 0; }
.svc-act svg { width: 20px; height: 20px; display: block; }
.svc-act:hover { color: var(--brand); border-color: var(--brand); background: var(--surface-2); }
.svc-act-danger:hover { color: var(--danger); border-color: var(--danger); background: var(--surface-2); }
.svc-name-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.svc-langchips { display: flex; gap: 6px; }
.svc-chip { padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .03em; }
.svc-langs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.svc-langs-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--muted); margin-right: 4px; }
.svc-lang { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 800; font-size: .8rem; }
.svc-lang i { font-style: normal; padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: .72rem; }
.svc-lang.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.svc-lang.on i { background: rgba(255,255,255,.25); color: #fff; }

/* v1.62 */
.lang-flag { display:block; width:24px; height:16px; border-radius:3px; box-shadow:0 0 0 1px rgba(0,0,0,.14); object-fit:cover; flex:none; }
.lang-sw summary { padding:7px 8px; }
.header-balance { white-space:nowrap; flex:none; }
.header-actions { flex-wrap:nowrap; min-width:0; }
.header-actions > * { flex:none; }
@media (max-width:1180px) { .header-inner { gap:14px; } .header-balance { padding:8px 6px; } }
.tb-scroll { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.tb-scroll .rt-table { min-width:360px; }
.tb-summary, .tb-quarter, .tb-quarter-head { min-width:0; max-width:100%; }
.tb-summary { flex-wrap:wrap; }
.tb-quarter-head { flex-wrap:wrap; gap:6px 14px; }
.rt-table td, .rt-table th { overflow-wrap:anywhere; }
@media (max-width:760px) { html, body { overflow-x:hidden; } }
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table-wrap .tbl { min-width:560px; }
.mobile-menu .mm-brand { width:auto; flex-direction:row; align-items:center; }
.mobile-menu .mm-brand img { display:block; height:34px; width:auto; max-width:160px; }
/* v1.64 логотип: одинаковая высота, без отступов */
.brand { width:auto; flex:none; }
.brand-des { display:block; line-height:0; }
.brand-des img { display:block; height:44px; width:auto; }
.header-inner-guest .brand-des img { height:46px; }
.site-footer .brand-des img { height:46px; }
@media (max-width:760px) { .brand-des img, .header-inner-guest .brand-des img { height:36px; } }
.mobile-menu .mm-brand img { height:40px; max-width:none; }
.stat-logo { display:inline-block; line-height:0; }
.stat-logo img { display:block; height:44px; width:auto; margin:0 auto; }
.lvl-inline { display:inline-flex; align-items:center; gap:6px; font-size:.8rem; font-weight:600; color:var(--muted); }
.lvl-inline img { display:block; flex:none; }
.cat-pick .cp-label { display:block; margin-top:12px; }
.sub-filter { margin:4px 0 8px 12px; padding-left:10px; border-left:2px solid var(--line); }
.sub-filter-group { margin:8px 0 2px; font-size:.78rem; font-weight:700; color:var(--faint); text-transform:uppercase; letter-spacing:.04em; }
.sub-check { font-size:.86rem; }
.sub-check.on { color:var(--brand-2); font-weight:700; }

/* ===== v1.69: зоны (Местный / Международный) ===== */
.zone-sw { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-3); border-radius: 999px; }
.zone-sw a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.zone-sw a.on { background: var(--brand); color: #fff; }
.zone-sw-mobile { display: flex; margin: 0 16px 10px; }
.zone-sw-mobile a { flex: 1; justify-content: center; }
.zone-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.zone-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; font-size: .92rem; color: var(--muted); background: var(--surface); }
.zone-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.zone-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zone-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.zone-opt input { margin-top: 4px; }
.zone-opt b { display: block; }
.zone-opt small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.zone-opt:has(input:checked) { border-color: var(--brand); background: var(--surface-3); }
.zone-note { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
@media (max-width: 760px) { .zone-choice { grid-template-columns: 1fr; } }

/* ===== v1.69: кошельки и обмен валют ===== */
.fx-box { margin: 24px 0; }
.fx-box .muted { color: var(--muted); font-size: .88rem; margin: 6px 0 14px; }
.fx-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; }
@media (max-width: 760px) { .fx-form { grid-template-columns: 1fr; } }

/* ===== v1.70: зона в шапке — выпадающий список ===== */
.zone-dd summary { gap: 6px; }
.zone-dd-name { white-space: nowrap; }
.zone-dd .lang-sw-menu a { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1180px) { .zone-dd-name { display: none; } }

/* v1.71 шапка: помещается в стандартный контейнер */
.site-header .header-inner, .site-header .header-inner-guest { gap: 12px; }
.site-header .brand { width: 150px; flex: none; }
.site-header .header-search { flex: 1 1 140px; min-width: 100px; max-width: 320px; }
.site-header .header-search-compact { flex: 1 1 140px; min-width: 100px; max-width: 240px; margin-right: 0; }
.site-header .header-search input { min-width: 0; width: 100%; }
.site-header .main-nav { gap: 0; margin-left: 0; flex: none; }
.site-header .main-nav a { padding: 8px 9px; font-size: .9rem; white-space: nowrap; }
.site-header .header-actions { gap: 6px; flex: none; }
@media (max-width: 1500px) { .site-header .header-stats { display: none; } }
@media (max-width: 1280px) { .site-header .main-nav a { padding: 8px 7px; font-size: .86rem; } .site-header .header-search-compact { max-width: 150px; } }
