/* =====================================================================
   FREELANCERS — Modern Design System 2026
   Layered on top of legacy bootstrap/base/style. Loaded LAST.
   Palette: Indigo→Violet primary, Cyan accent, Slate neutrals
   ===================================================================== */

:root {
  --wv-primary: #4f46e5;
  --wv-primary-600: #4338ca;
  --wv-primary-500: #6366f1;
  --wv-violet: #7c3aed;
  --wv-accent: #06b6d4;
  --wv-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%);
  --wv-grad-soft: linear-gradient(135deg, rgba(79,70,229,.10), rgba(124,58,237,.10));
  --wv-dark: #0f172a;
  --wv-darker: #0b1120;
  --wv-text: #0f172a;
  --wv-body: #334155;
  --wv-muted: #64748b;
  --wv-line: #e2e8f0;
  --wv-bg: #f6f7fb;
  --wv-card: #ffffff;
  --wv-success: #10b981;
  --wv-warning: #f59e0b;
  --wv-danger: #ef4444;
  --wv-radius: 14px;
  --wv-radius-sm: 10px;
  --wv-radius-lg: 22px;
  --wv-shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --wv-shadow: 0 4px 6px -2px rgba(15,23,42,.05), 0 12px 24px -6px rgba(15,23,42,.10);
  --wv-shadow-lg: 0 24px 48px -12px rgba(15,23,42,.22);
  --wv-ring: 0 0 0 4px rgba(99,102,241,.16);
  --wv-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------------------------------------------------------------------
   Base
--------------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--wv-font) !important;
  color: var(--wv-body) !important;
  background: var(--wv-bg) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wv-font) !important;
  color: var(--wv-text);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.22;
}

h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; }

p { color: var(--wv-muted); line-height: 1.7; }

a { color: var(--wv-primary); transition: color .18s ease, opacity .18s ease; }
a:hover, a:focus { color: var(--wv-violet); text-decoration: none; }

::selection { background: rgba(99,102,241,.22); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef1f7; }
::-webkit-scrollbar-thumb { background: #c3cad8; border-radius: 8px; border: 2px solid #eef1f7; }
::-webkit-scrollbar-thumb:hover { background: #a5aec2; }

img { max-width: 100%; }

/* Layout containers */
.container { width: 88%; max-width: 1240px; padding: 0 24px; }
.container-max { width: 88%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */
.kafe-btn, .ps-btn, .btn,
button[type="submit"], input[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--wv-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  border: 1px solid transparent !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.kafe-btn-mint, .kafe-btn-mint-small, .ps-btn,
button[type="submit"].kafe-btn, .kafe-btn.kafe-btn-mint,
input[type="submit"].kafe-btn {
  background: var(--wv-grad) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -6px rgba(79,70,229,.45), inset 0 1px 0 rgba(255,255,255,.18);
}

.kafe-btn-mint:hover, .kafe-btn-mint-small:hover, .ps-btn:hover,
.kafe-btn.kafe-btn-mint:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(79,70,229,.55), inset 0 1px 0 rgba(255,255,255,.18) !important;
  color: #fff !important;
}

.kafe-btn-mint:active, .ps-btn:active { transform: translateY(0); }

.kafe-btn-mint-small { padding: 9px 20px !important; font-size: 13px !important; }

.kafe-btn-default, .btn-default {
  background: #fff !important;
  color: var(--wv-text) !important;
  border-color: var(--wv-line) !important;
  box-shadow: var(--wv-shadow-sm);
}
.kafe-btn-default:hover, .btn-default:hover {
  border-color: #c7cdf8 !important;
  color: var(--wv-primary) !important;
  transform: translateY(-1px);
}

/* Earnings pill in navbar */
.kafe-btn.earnings {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  box-shadow: 0 6px 16px -6px rgba(6,182,212,.55);
}
/* Вертикальный зазор между виджетом профиля и пилюлей баланса:
   ul.navbar-nav даёт всего 6px, кнопка визуально липла к аватару. */
.tr-header .navbar-right .kafe-btn.earnings { margin-left: 14px !important; }
@media (max-width: 767px) {
  /* на телефонах ряд центрируется — лишний отступ сдвигал бы кнопку влево */
  .tr-header .navbar-right .kafe-btn.earnings { margin-left: 0 !important; }
  /* пилюля баланса на телефоне дублирует сумму с профиля — убрана */
  .tr-header .navbar-right .kafe-btn.earnings { display: none !important; }
}

.btn-danger, .kafe-btn-red { background: var(--wv-danger) !important; color: #fff !important; }

/* Small red = destructive action (delete). Must be a real red, not the legacy pink. */
.kafe-btn-red-small {
  background: var(--wv-danger) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px -6px rgba(239,68,68,.55);
}
.kafe-btn-red-small:hover, .kafe-btn-red-small:focus {
  background: #dc2626 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(239,68,68,.65) !important;
}

/* Кнопки карточки портфолио (галерея .gal-footer): «правка» = yellow-small,
   «удаление» = red-small; один размер независимо от длины текста. */
.gal-footer .kafe-btn {
  min-width: 150px;
  padding: 9px 20px !important;
  font-size: 13px !important;
}

/* Кнопки карточек «Образование»/«Опыт работы» (.wv-edu-inner в .about-box):
   та же пара — «правка» = yellow-small, «удаление» = red-small, один размер.
   Маркер-класс вместо :has, потому что у блока «Обо мне» публичного профиля
   такой же .about-box-img-inner, но без кнопок — его не задеваем. */
.wv-edu-inner .kafe-btn {
  min-width: 150px;
  padding: 9px 20px !important;
  font-size: 13px !important;
}

.btn-danger:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-success { background: var(--wv-success) !important; color: #fff !important; }
.btn-primary { background: var(--wv-primary) !important; color: #fff !important; }
.btn-primary:hover { background: var(--wv-primary-600) !important; transform: translateY(-1px); }
.btn-info { background: var(--wv-accent) !important; color: #fff !important; }
.btn-warning { background: var(--wv-warning) !important; color: #fff !important; }

/* Light green "Apply" button on project cards */
.kafe-btn-green { background: #34d399 !important; color: #fff !important; }
.kafe-btn-green:hover { background: #2cc78e !important; transform: translateY(-1px); }

/* 2026-12-01: «Пригласить исполнителя» на дашборде заказчика — зелёная (была фиолетовая) */
.kafe-btn.kafe-btn-mint-small.kafe-btn-invite {
  background: linear-gradient(135deg, #34d399 0%, #22c55e 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -6px rgba(34,197,94,.45), inset 0 1px 0 rgba(255,255,255,.18) !important;
}
.kafe-btn.kafe-btn-mint-small.kafe-btn-invite:hover,
.kafe-btn.kafe-btn-mint-small.kafe-btn-invite:focus {
  background: linear-gradient(135deg, #2cc78e 0%, #16a34a 100%) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(34,197,94,.55), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.btn { border-radius: 10px !important; padding: 10px 20px !important; }
.btn-sm { padding: 7px 14px !important; font-size: 12.5px !important; }
.btn-xs { padding: 4px 10px !important; font-size: 11.5px !important; }

/* Focus rings */
.btn:focus, .kafe-btn:focus, .ps-btn:focus, a:focus {
  outline: none;
  box-shadow: var(--wv-ring);
}

/* ---------------------------------------------------------------------
   Navbar (glass, sticky)
--------------------------------------------------------------------- */
.tr-header {
  position: sticky !important;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.82) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.07) !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.04) !important;
  min-height: 68px;
  transition: box-shadow .2s ease;
}

/* The cabinet (client/freelancer) renders a SECOND .tr-header — the tabs bar from
   template/sidenav.php. Both sat on z-index:1030, so the tabs bar, being later in the
   DOM, painted over the site header's dropdowns: the language menu was cut off after
   five rows at the banner edge. Keep the tabs bar one level below the site header so
   the dropdowns always open on top of it. */
.tr-header.tr-header--dash { z-index: 1020; }

.tr-header .navbar { min-height: 68px; margin-bottom: 0; border: none; background: transparent !important; }
.tr-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; flex-wrap: nowrap; gap: 8px; /* wider than the page's 1240px container: long locales (FR/DE) need ~1300px on one row */ max-width: 1440px; }
.navbar-header { display: flex; align-items: center; flex: 0 0 auto; }
.tr-header .navbar-left { flex: 0 1 auto; min-width: 0; }
.tr-header .navbar-right { display: flex; align-items: center; flex: 0 0 auto; margin-left: auto; }

/* >=1400px, when the menu fits on the header row: true grid centering
   logo | centred menu | auth buttons (flex space-between + the Bootstrap
   clearfix pseudo-items can never centre the menu exactly) */
@media (min-width: 1400px) {
  .tr-header .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 8px; }
  .tr-header .container::before, .tr-header .container::after { display: none; }
  .tr-header .navbar-header { grid-column: 1; grid-row: 1; }
  .tr-header .navbar-left { grid-column: 2; grid-row: 1; justify-self: center; min-width: 0; }
  .tr-header .navbar-right { grid-column: 3; grid-row: 1; margin-left: auto; }
}
.tr-header .navbar-brand { display: flex; align-items: center; padding: 10px 0; height: auto; }
.tr-header .navbar-brand img { height: 40px; width: auto; }

.tr-header .navbar-nav > li > a {
  font-family: var(--wv-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--wv-body) !important;
  padding: 22px 15px !important;
  position: relative;
  transition: color .18s ease;
}

.tr-header .navbar-nav > li > a:hover,
.tr-header .navbar-nav > .active > a,
.tr-header .navbar-nav > .open > a {
  color: var(--wv-primary) !important;
  background: transparent !important;
}

.tr-header .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px; bottom: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--wv-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.tr-header .navbar-nav > li > a:hover::after,
.tr-header .navbar-nav > .active > a::after { transform: scaleX(1); }

.tr-header .navbar-nav > li > a i.fa { font-size: 15px; }
.tr-header .navbar-nav > li > a sup {
  background: var(--wv-grad) !important;
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  top: -0.9em;
  position: relative;
  margin-left: 3px;
  box-shadow: 0 2px 8px -2px rgba(79,70,229,.5);
}

/* Dropdowns */
.tr-header .dropdown-menu,
.dropdown-menu-scale {
  border: 1px solid var(--wv-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--wv-shadow-lg) !important;
  padding: 8px !important;
  margin-top: 0 !important;
  background: #fff;
  min-width: 190px;
  animation: wv-drop .16s ease;
}
@keyframes wv-drop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-menu > li > a, .dropdown-menu a.dropdown-item {
  display: block;
  padding: 9px 14px !important;
  border-radius: 9px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--wv-body) !important;
  transition: background .15s ease, color .15s ease;
}
.dropdown-menu > li > a:hover, .dropdown-menu a.dropdown-item:hover,
.dropdown-menu > li > a:focus {
  background: #f1f3fd !important;
  color: var(--wv-primary) !important;
}
.dropdown-menu .divider { margin: 6px 10px; background: var(--wv-line); }

.navbar-toggle { border: none; background: #f1f3fd !important; border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.navbar-toggle .icon-bar { background: var(--wv-text) !important; width: 20px; border-radius: 2px; }

/* ---------------------------------------------------------------------
   Navbar v2 — premium pill menu (upgrade 2026-10-17)
--------------------------------------------------------------------- */
.tr-header .navbar-nav > li > a {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--wv-body) !important;
  padding: 10px 16px !important;
  line-height: 1.5 !important;
  border-radius: 10px !important;
  margin: 0 2px;
  letter-spacing: .005em;
  transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.tr-header .navbar-nav > li > a:hover {
  color: var(--wv-primary) !important;
  background: var(--wv-grad-soft) !important;
  transform: translateY(-1px);
}
.tr-header .navbar-nav > .active > a,
.tr-header .navbar-nav > .active > a:hover,
.tr-header .navbar-nav > .active > a:focus {
  color: #fff !important;
  background: var(--wv-grad) !important;
  box-shadow: 0 8px 18px -8px rgba(79,70,229,.55), inset 0 1px 0 rgba(255,255,255,.18);
}
.tr-header .navbar-nav > .open > a,
.tr-header .navbar-nav > .open > a:hover {
  color: var(--wv-primary) !important;
  background: var(--wv-grad-soft) !important;
}
/* retire old underline in favour of pills */
.tr-header .navbar-nav > li > a::after { display: none !important; }

/* caret for dropdown toggles */
.wv-caret {
  font-size: 12px;
  margin-left: 6px;
  opacity: .5;
  transition: transform .2s ease;
}
.navbar-nav > .open > a .wv-caret { transform: rotate(180deg); opacity: 1; }

/* language globe alignment */
.tr-header .navbar-nav > li > a i.fa-globe { margin-right: 4px; opacity: .7; }

/* dropdown toggles: keep text, flag and caret on one centered line */
.tr-header .navbar-nav > li.dropdown > a > span {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.tr-header .navbar-nav > li.dropdown > a > span > .wv-flag,
.tr-header .navbar-nav > li.dropdown > a > span > i.fa { margin-right: 5px; }
.tr-header .navbar-nav > li.dropdown > a > span > i.wv-caret { margin-left: 5px; margin-right: 0; }

/* flag images (real SVGs — Windows does not render emoji flags) */
.tr-header img.wv-flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .12);
  flex: 0 0 auto;
}
.tr-header .navbar-nav > li.dropdown > a > span > .wv-flag,
.tr-header .dropdown-menu .dropdown-item .wv-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* language dropdown items: flag + two-letter country code */
.tr-header .dropdown-menu .dropdown-item { padding: 8px 18px; }

/* user widget menu (avatar dropdown): even icon column, icons centred to labels (2026-11-01) */
.tr-header .wv-user-widget .dropdown-menu .dropdown-item > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.tr-header .wv-user-widget .dropdown-menu .dropdown-item .fa {
  width: 16px;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  flex: 0 0 auto;
  /* style.css: .navbar-default .navbar-nav li i { position:relative; top:5px;
     padding:2px 0 } — this legacy nudge hangs dropdown icons ~5px below the
     label. Flex centering above is the only alignment we want here. */
  position: static;
  top: 0;
  padding: 0;
}

/* 2026-11-08: style.css <=768px gives every "li i" padding-top:4px + line-height:4px,
   which hangs the dropdown icons ~4px below the label centre. Neutralise it for
   dropdown rows — flex centering above is enough. */
@media (max-width: 768px) {
  .navbar-default .navbar-nav li a.dropdown-item i,
  .navbar-default .navbar-nav li.wv-dash-user-group .wv-dash-user-grid > a i {
    padding-top: 0 !important;
    padding-left: 0 !important;
    line-height: 1 !important;
  }
}

/* user widget toggle (navbar): avatar + name on one vertically centred line.
   Inline layout put the name on the text baseline, so it sat below the
   avatar's centre; flex fixes it for both client and freelancer widgets. */
.tr-header .wv-user-widget > a.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tr-header .wv-user-widget > a.dropdown-toggle .avatar { flex: 0 0 auto; text-align: initial; }
/* style.css gives .avatar img margin-left:10px — inside flex it doubles the gap */
.tr-header .wv-user-widget > a.dropdown-toggle .avatar img { margin-left: 0; }
.tr-header .wv-user-widget > a.dropdown-toggle > span:last-child {
  display: inline-flex;
  align-items: center;
}

/* ---------------------------------------------------------------------
   Compact navbar dropdowns — languages + pages share one look
   (2026-10-20: centred under the toggle, equal rows, flag/code aligned)
--------------------------------------------------------------------- */
.tr-header .navbar-right .wv-lang-item,
.tr-header .navbar-left .wv-pages-item { position: relative; }

/* both menus: shrink to content and sit centred under their toggle */
.tr-header .dropdown-menu.wv-nav-menu {
  min-width: 0;
  width: auto;
  padding: 6px !important;
  margin-top: 12px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  animation: wv-drop-center .16s ease;
}
@keyframes wv-drop-center {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* every row: same width (stretches to the widest item), same height */
.tr-header .dropdown-menu.wv-nav-menu .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

/* languages: fixed flag column + fixed code column → perfectly even rows */
.tr-header .dropdown-menu.wv-lang-menu .dropdown-item .wv-flag {
  display: grid;
  grid-template-columns: 22px auto;
  align-items: center;
  justify-content: start;
  column-gap: 9px;
  min-width: 66px;
}
.tr-header .dropdown-menu.wv-lang-menu .dropdown-item { min-width: 92px; }

/* ---------------------------------------------------------------------
   Countries — переключатель рынка в меню + витрина /countries (2026-11-24)
   У каждой страны свои исполнители, заказчики, проекты и категории.
--------------------------------------------------------------------- */
.tr-header .navbar-left .wv-countries-item { position: relative; }
.tr-header .dropdown-menu.wv-countries-menu .dropdown-item {
  justify-content: flex-start !important;
  gap: 10px;
  min-width: 208px;
}
.tr-header .dropdown-menu.wv-countries-menu .dropdown-item .wv-flag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 22px;
}
.tr-header .dropdown-menu.wv-countries-menu .wv-country-item-name {
  font-size: 14px;
  line-height: 1.1;
}
.tr-header .dropdown-menu.wv-countries-menu .dropdown-item.active {
  background: var(--wv-grad-soft);
  color: var(--wv-primary) !important;
  font-weight: 700;
}
.tr-header .dropdown-menu.wv-countries-menu .wv-countries-divider {
  height: 1px;
  margin: 6px 4px;
  background: rgba(15, 23, 42, .08);
}
.tr-header .dropdown-menu.wv-countries-menu .wv-countries-all {
  justify-content: center !important;
  font-weight: 600;
}
.tr-header .dropdown-menu .dropdown-item img.wv-flag-img {
  width: 22px;
  height: 16px;
}
.tr-header .dropdown-menu .dropdown-item .wv-lang-code {
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .04em;
}

/* pages: same box, plain centred labels */
.tr-header .dropdown-menu.wv-pages-menu .dropdown-item {
  display: block !important;
  min-width: 116px;
  text-align: center;
}

/* language switcher lives in the right cluster — it can never slide under the auth buttons */
.tr-header .navbar-right .wv-lang-item { margin: 0 4px 0 0; flex: 0 0 auto; }
.tr-header .navbar-right .wv-lang-item > a { padding: 9px 10px !important; white-space: nowrap; }
.tr-header .navbar-right .wv-lang-item > a > span > .wv-flag { margin-right: 0; flex: 0 0 auto; }
.tr-header .wv-lang-caret { font-size: 11px; margin-left: 4px; opacity: .45; flex: 0 0 auto; }

/* mobile: language switcher rendered in the header's top-left corner (header.php),
   opposite the burger; hidden everywhere except <=767px, where the navbar-right
   switcher is removed */
.tr-header .wv-lang-corner { display: none; }

/* sign-in ghost button inside navbar */
.tr-header .navbar-right .kafe-btn { margin-top: 0 !important; margin-bottom: 0 !important; }
.tr-header .navbar-right .kafe-btn.kafe-btn-default,
.tr-header .navbar-right .kafe-btn.kafe-btn-default-small {
  background: #fff !important;
  border: 1.5px solid var(--wv-line) !important;
  color: var(--wv-text) !important;
  font-family: var(--wv-font) !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  font-size: 13.5px !important;
  padding: 10px 22px !important;
}
.tr-header .navbar-right .kafe-btn.kafe-btn-default:hover,
.tr-header .navbar-right .kafe-btn.kafe-btn-default-small:hover {
  border-color: #c7cdf8 !important;
  color: var(--wv-primary) !important;
  background: #f1f3fd !important;
  transform: translateY(-2px);
  box-shadow: var(--wv-shadow-sm);
}
.tr-header .navbar-right ul.navbar-nav { margin-right: 6px; }
.tr-header .navbar-right ul.navbar-nav,
.tr-header .navbar-left ul.navbar-nav { display: flex; flex-wrap: nowrap; align-items: center; }
/* visible spacing between the menu pills; float:none so the list can be
   centred inside the full-width second row (Bootstrap floats .navbar-nav left) */
.tr-header .navbar-left ul.navbar-nav { float: none; column-gap: 12px; row-gap: 5px; }
.tr-header .navbar-right .kafe-btn { white-space: nowrap; }

/* CTA shine sweep */
.kafe-btn-mint-small { padding: 10px 22px !important; font-size: 13.5px !important; }
.kafe-btn-mint, .kafe-btn-mint-small { position: relative; overflow: hidden; isolation: isolate; }
.kafe-btn-mint::before, .kafe-btn-mint-small::before {
  content: '';
  position: absolute;
  top: 0; left: -90%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
  z-index: 1;
}
.kafe-btn-mint:hover::before, .kafe-btn-mint-small:hover::before { left: 140%; }
.kafe-btn-mint i.fa, .kafe-btn-mint-small i.fa { position: relative; z-index: 2; }
.kafe-btn-mint .wv-btn-arrow, .kafe-btn-mint-small .wv-btn-arrow { transition: transform .2s ease; }
.kafe-btn-mint:hover .wv-btn-arrow,
.kafe-btn-mint-small:hover .wv-btn-arrow { transform: translateX(3px); }

/* logo hover */
.tr-header .navbar-brand img { transition: transform .2s ease; }
a.navbar-brand:hover img { transform: scale(1.03); }

/* navbar deepens its shadow once the page is scrolled */
.tr-header { transition: box-shadow .25s ease, background .25s ease; }
.tr-header.wv-scrolled {
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 10px 30px -10px rgba(15,23,42,.16) !important;
}

/* comfortable touch targets on mobile; the burger menu stacks in a column
   (each item on its own centred row instead of wrapping 1-2 per line) */
@media(max-width:768px) {
  /* header row as one flow line: language corner (order 1) | logo (order 2) | burger (order 3).
     All in-flow, so nothing can be covered — the old absolute burger sat under the
     width:100% brand link and taps were lost to the logo. Bootstrap's clearfix
     pseudo-items and legacy -15px margins on .navbar-header break the flex row — off. */
  .tr-header .navbar-header { position: relative; flex: 0 0 100%; width: 100%; margin-left: 0; margin-right: 0; gap: 10px; }
  .tr-header .navbar-header::before,
  .tr-header .navbar-header::after { display: none; }
  /* the global 88% container left ~50px dead zones on phones — the header spans
     the full screen so the lang pill and the burger sit at its edges */
  .tr-header .container { width: 100%; padding-left: 12px; padding-right: 12px; }
  .tr-header .wv-lang-corner { display: block; order: 1; position: relative; flex: 0 0 auto; }
  .tr-header .navbar-brand { order: 2; flex: 1 1 auto; width: auto; min-width: 0; justify-content: center; transform: none; }
  .tr-header .navbar-toggle { position: static; order: 3; margin: 0; }
  .tr-header .navbar-nav > li > a { padding: 13px 16px !important; }
  .tr-header .navbar-right ul.navbar-nav { flex-wrap: wrap; margin: 0; }
  .tr-header .navbar-left ul.navbar-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
  }
  .tr-header .navbar-nav > li > a,
  .tr-header .navbar-right .kafe-btn { white-space: normal; }
  /* li wrappers become flex so an inline-flex button defines the li's height exactly
     (baseline quirks made the Sign In link sit a few px lower than Join for Free);
     :not(.wv-lang-item) keeps the corner-only switcher hidden — this flex rule would
     otherwise out-specify its display:none below */
  .tr-header .navbar-right ul.navbar-nav > li:not(.wv-lang-item) { display: flex; align-items: center; }
  /* Sign In / Join for Free: one row, identical height — the legacy
     line-height:4px for .navbar-right li a in style.css shrank the Sign In link */
  .tr-header .navbar-right .kafe-btn.kafe-btn-default,
  .tr-header .navbar-right .kafe-btn.kafe-btn-default-small,
  .tr-header .navbar-right .kafe-btn-mint-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    line-height: 1 !important;
  }
}

/* Avatar in navbar */
.avatar img { border-radius: 50%; }
.mega-avatar .avatar img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(99,102,241,.35); }

/* ---------------------------------------------------------------------
   Hero (tr-banner)
--------------------------------------------------------------------- */
.tr-banner {
  position: relative;
  padding: 80px 0 70px !important;
  overflow: hidden;
  isolation: isolate;
}
.tr-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.tr-banner::after {
  width: 850px; height: 850px;
  bottom: -430px; right: -430px;
  background: radial-gradient(circle, rgba(6,182,212,.55), transparent 65%);
}
.tr-banner .container { position: relative; z-index: 2; }

/* Hero layout: absolute — TL=search, TR=headline, BR=stats */
.tr-banner .container {
  position: relative;
  width: 100%;
  max-width: 1720px;
  height: 100%;
  min-height: 0;
  padding: 0 !important;
}
.tr-banner .container > .row {
  position: absolute;
  margin: 0;
  width: auto;
}
.tr-banner .container > .row .col-lg-12 { padding: 0; }

/* TL: search */
.tr-banner .container > .row:nth-child(2) {
  top: 40px;
  left: 40px;
}
.tr-banner .search-form {
  margin: 0 !important;
  max-width: 560px;
}

/* TR: headline — поднят к верху */
.tr-banner .container > .row:nth-child(1) {
  top: 0;
  right: 40px;
  text-align: right;
}
.tr-banner .banner-headline {
  text-align: right;
  margin: 0 !important;
  max-width: 620px;
}
.tr-banner .banner-headline h3 { font-size: 54px !important; }

/* BR: статистика — прижата к нижнему срезу hero (до красной линии) */
.tr-banner .container > .row:nth-child(3) {
  bottom: 0;
  right: 40px;
}
/* десктоп: убираем нижний padding hero, чтобы блок лёг ровно на срез секции */
@media (min-width: 768px) {
  .tr-banner { padding-bottom: 0 !important; }
}
.tr-banner .banner-stats {
  margin: 0 !important;
  max-width: 820px;
}

/* Мобилка: всё снова в поток по центру */
@media (max-width: 767px) {
  .tr-banner .container {
    position: relative;
    min-height: 0;
    padding: 20px !important;
  }
  .tr-banner .container > .row {
    position: static !important;
    width: 100% !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    text-align: center;
  }
  .tr-banner .banner-headline { text-align: center; margin: 0 auto 28px !important; max-width: 100%; }
  /* Верхняя полоса фото над заголовком: убираем верхний отступ заголовка,
     чтобы он встал к самому верху секции */
  .tr-banner .banner-headline h3 { margin-top: 0 !important; }
  .tr-banner .search-form { margin: 0 auto 28px !important; max-width: 100%; }
  .tr-banner .banner-stats { margin: 28px auto 0 !important; max-width: 100%; }
}

.banner-headline { text-align: center; max-width: 820px; margin: 0 auto 42px; }
.banner-headline h3 {
  color: #fff !important;
  font-size: 52px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}
.banner-headline h4 {
  color: rgba(226,232,240,.85) !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.6;
  margin: 0;
}

/* Search card */
.search-form {
  display: flex !important;
  align-items: stretch;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto !important;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px !important;
  padding: 10px 10px 10px 22px !important;
  box-shadow: 0 24px 60px -18px rgba(2,6,23,.65);
}
.search-form .search-contents { flex: 1; border: none; }
.search-form .label {
  font-size: 11.5px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wv-muted) !important;
  margin: 4px 0 2px;
  display: block;
}
.search-form select {
  width: 100%;
  border: none !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--wv-text) !important;
  padding: 2px 24px 2px 0 !important;
  background-color: transparent !important;
  height: auto !important;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.search-form .select { position: relative; }

/* Hero-поле как кнопка: открывает окно подкатегорий выбранной рубрики */
.search-form .wv-hero-pick__btn {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 2px 24px 2px 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  color: var(--wv-text) !important;
  text-align: left;
  cursor: pointer;
}
.search-form .wv-hero-pick__btn:hover .wv-hero-pick__label { color: var(--wv-primary-600, #4f46e5); }
.search-form .wv-hero-pick__label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s ease;
}
[dir="rtl"] .search-form .wv-hero-pick__btn { text-align: right; }

.search-form .select__arrow {
  position: absolute;
  right: 4px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--wv-muted);
  border-bottom: 2px solid var(--wv-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.search-form .search-button { display: flex; align-items: center; }
.search-form .search-button button { height: 52px; padding: 0 30px !important; }

/* Stats */
.banner-stats {
  display: flex !important;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 64px auto 0 !important;
  padding: 0 !important;
  max-width: 900px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.banner-stats li {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 22px 16px !important;
  position: relative;
  border: 0 !important;
  margin: 0 !important;
}
/* разделители между колонками убраны */
.banner-stats li + li::before {
  content: none !important;
  display: none !important;
}
.banner-stats .count-text {
  display: block;
  font-size: 30px !important;
  line-height: 1.15;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 6px !important;
}
.banner-stats li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6em;
  line-height: 1.3;
  color: rgba(203,213,225,.85) !important;
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------
   Section headings
--------------------------------------------------------------------- */
.sec-title { margin-bottom: 52px; }
.sec-title h2, .main-heading h2, .heading--h1 {
  font-size: 34px !important;
  font-weight: 800 !important;
  position: relative;
  display: inline-block;
}
.sec-title h2::after, .main-heading h2::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  border-radius: 4px;
  background: var(--wv-grad);
  margin: 16px auto 0;
}
.heading--with-divider::after {
  width: 56px !important; height: 4px !important;
  background: var(--wv-grad) !important;
  border-radius: 4px !important;
}
.main-heading { text-align: center; margin-bottom: 48px; }

/* ---------------------------------------------------------------------
   Cards: categories, inner-box, generic
--------------------------------------------------------------------- */
.category-section, .slick, .how-it-works { padding: 88px 0; }
.category-section { background: #fff; }

.category-block { margin-bottom: 28px; }

/* Неполный ряд рубрик (3 блока вместо 4) центрируем по ширине верхнего ряда.
   Bootstrap 3 без flex, поэтому ряд переводим в flex и снимаем float у колонок. */
.category-section .categories-row--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.category-section .categories-row--center > [class*="col-"] {
  float: none;
}
.category-block .inner-box {
  background: var(--wv-card) !important;
  border: 1px solid var(--wv-line);
  border-radius: var(--wv-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--wv-shadow-sm) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.category-block .inner-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--wv-shadow) !important;
  border-color: #c7cdf8;
}
.category-block .inner-box .image img { transition: transform .5s ease; width: 100%; }
.category-block .inner-box:hover .image img { transform: scale(1.05); }

.category-block .inner-box .overlay-box .overlay-inner .content button,
.category-block .inner-box .overlay-box .overlay-inner .content a {
  background: rgba(255,255,255,.96) !important;
  color: var(--wv-primary) !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border: 1px solid transparent !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  /* Кнопка-открывашка подуслуг объявлена как type="button" и не попадает
     под общий button[type="submit"] — добираем типографику здесь,
     иначе она крупнее остальных кнопок рубрик. */
  font-family: var(--wv-font) !important;
  font-size: 14px !important;
  letter-spacing: .01em;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.category-block .inner-box .overlay-box .overlay-inner .content button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(0,0,0,.35); }

/* ---------------------------------------------------------------------
   Portfolio / design cards
--------------------------------------------------------------------- */
.design-box { padding: 10px; }
/* >768: вендор фиксирует коробку на 450px + поля 60px = 510px, а слайд slick на
   вьюпортах ~770–1690 (ноутбучные 1366/1440/1536) уже — (88%−48−400)/2 < 510.
   Коробка вылезала за слайд, и карточки наезжали друг на друга. Растягиваем
   коробку по ширине слайда: поля 20/40 становятся зазором между карточками. */
@media (min-width: 769px) {
  .design-box { width: auto !important; display: block; }
}
.design-card {
  border-radius: var(--wv-radius-lg) !important;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--wv-shadow-sm) !important;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid var(--wv-line);
}
.design-box:hover .design-card { transform: translateY(-6px); box-shadow: var(--wv-shadow) !important; }
.design-footer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 14px 6px 6px !important;
}
.design-footer-name a { font-weight: 700; color: var(--wv-text); }
.design-footer-name a:hover { color: var(--wv-primary); }
.design-footer-job { color: var(--wv-muted); font-size: 13px; }
.design-footer-image img { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(99,102,241,.35); }

/* ---------------------------------------------------------------------
   How it works
--------------------------------------------------------------------- */
.how-it-works { background: #fff; }
/* flex нужен только строкам с карточками (.row.clearfix); строка с заголовком — обычная bootstrap-строка */
.how-it-works .row.clearfix { display: flex; flex-wrap: wrap; }
.how-it-works .row.clearfix > [class*='col-'] { display: flex; margin-bottom: 30px; }
.working-process {
  width: 100%;
  background: var(--wv-bg) !important;
  border: 1px solid var(--wv-line) !important;
  border-radius: var(--wv-radius-lg) !important;
  padding: 34px 28px !important;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.working-process::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: var(--wv-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.working-process:hover { transform: translateY(-5px); box-shadow: var(--wv-shadow); border-color: #c7cdf8 !important; }
.working-process:hover::before { transform: scaleX(1); }
.process-num {
  background: var(--wv-grad) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 5px 13px !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
  box-shadow: 0 6px 14px -4px rgba(79,70,229,.5);
}
.working-process h4 { margin: 18px 0 10px; }
.working-process p { margin: 0; }

/* ---------------------------------------------------------------------
   Testimonials / carousels
--------------------------------------------------------------------- */
.testimonial5 { background: transparent; padding: 88px 0; }
.testimonial5 h3 { text-align: center; margin-bottom: 40px; font-size: 30px; }
.testimonial5 .item .content {
  background: #fff !important;
  border: 1px solid var(--wv-line);
  border-radius: var(--wv-radius-lg);
  box-shadow: var(--wv-shadow-sm);
  padding: 30px 32px !important;
  font-size: 15.5px !important;
  color: var(--wv-body) !important;
  font-style: italic;
  margin: 0 12px 40px;
  position: relative;
}
.testimonial5 .item .content::after {
  content: '';
  position: absolute;
  left: 44px; bottom: -12px;
  width: 22px; height: 22px;
  background: #fff;
  border-right: 1px solid var(--wv-line);
  border-bottom: 1px solid var(--wv-line);
  transform: rotate(45deg);
}
.customer-thumb img { border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(99,102,241,.3); }
.customer-thumb h6 { font-weight: 700; margin: 12px 0 2px; }
.customer-thumb p { font-size: 13px; }

/* Owl / slick dots */
.owl-theme .owl-dots .owl-dot span,
.slick-dotted .slick-dots li button {
  background: #cbd5e1 !important;
  border-radius: 999px;
  transition: all .2s ease;
}
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span,
.slick-dots li.slick-active button { background: var(--wv-primary) !important; }
.slick-dots li button::before { color: transparent !important; }
.slick-dots li button { background: #cbd5e1 !important; border-radius: 50%; width: 12px !important; height: 12px !important; }
.slick-dots li.slick-active button { background: var(--wv-primary) !important; }

/* ---------------------------------------------------------------------
   Join-us CTA band
--------------------------------------------------------------------- */
.join-us { padding: 40px 0 96px; }
.join-box {
  background: var(--wv-grad) !important;
  border-radius: 26px !important;
  padding: 56px 48px !important;
  text-align: center;
  box-shadow: 0 32px 64px -20px rgba(79,70,229,.5);
  position: relative;
  overflow: hidden;
}
.join-box::before, .join-box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.join-box::before { width: 280px; height: 280px; top: -120px; right: -80px; }
.join-box::after { width: 200px; height: 200px; bottom: -100px; left: -60px; }
.join-box p {
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}
.join-us .ps-btn {
  background: #fff !important;
  color: var(--wv-primary) !important;
  margin-top: 24px;
  position: relative;
  z-index: 1;
  font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(2,6,23,.4);
}
.join-us { text-align: center; }

/* ---------------------------------------------------------------------
   Footer (dark)
--------------------------------------------------------------------- */
.main-footer {
  background: var(--wv-darker) !important;
  color: #94a3b8 !important;
  padding: 72px 0 0 !important;
  position: relative;
}
.main-footer::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.5), rgba(6,182,212,.5), transparent);
}
.main-footer .footer-wrapper h4 {
  color: #f1f5f9 !important;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.main-footer .separator { display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--wv-grad); margin-bottom: 18px; }
.main-footer .footer-logo img { max-height: 44px; width: auto; margin-bottom: 22px; opacity: .92; } /* лого уже двухтоновое (logo-footer-...png), фильтр убран */
.main-footer .toolbox p { color: #64748b !important; font-size: 12.5px; margin: 14px 0 2px; text-transform: uppercase; letter-spacing: .07em; }
.main-footer .toolbox h5 { color: #e2e8f0 !important; font-size: 15px; font-weight: 600; margin: 0; }
.main-footer ul.menu { list-style: none; padding: 0; margin: 0; }
.main-footer ul.menu li a {
  color: #94a3b8 !important;
  font-size: 14px;
  display: inline-block;
  padding: 5px 0;
  transition: color .18s ease, transform .18s ease;
}
.main-footer ul.menu li a:hover { color: #fff !important; transform: translateX(4px); }
.main-footer .fa-facebook, .main-footer .fa-twitter, .main-footer .fa-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #cbd5e1 !important;
  font-size: 15px;
  margin-right: 8px;
  transition: all .2s ease;
}
.main-footer .fa-facebook:hover, .main-footer .fa-twitter:hover, .main-footer .fa-instagram:hover {
  background: var(--wv-primary);
  border-color: var(--wv-primary);
  color: #fff !important;
  transform: translateY(-3px);
}
.site-footer {
  background: transparent !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  margin-top: 56px;
  padding: 24px 0 !important;
}
.footer-copyright { color: #64748b !important; font-size: 13.5px; margin: 0; text-align: center; }

#scrollup {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--wv-grad);
  color: #fff !important;
  text-indent: -9999px;
  box-shadow: 0 12px 26px -8px rgba(79,70,229,.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1040;
}
#scrollup::before {
  content: '';
  position: absolute;
  left: 50%; top: 52%;
  width: 10px; height: 10px;
  border-top: 2.5px solid #fff;
  border-left: 2.5px solid #fff;
  transform: translate(-50%, -30%) rotate(45deg);
}
#scrollup.visible { opacity: 1; pointer-events: auto; }
#scrollup:hover { transform: translateY(-3px); }

/* ---------------------------------------------------------------------
   Inner page hero (how-header / bg-search)
--------------------------------------------------------------------- */
.how-header {
  position: relative;
  background: var(--wv-dark) !important;
  padding: 96px 0 60px !important;
  overflow: hidden;
  isolation: isolate;
}
.how-header::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(79,70,229,.5), transparent 65%);
  filter: blur(80px);
  z-index: 0;
}
.how-header::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  bottom: -220px; left: -80px;
  background: radial-gradient(circle, rgba(6,182,212,.35), transparent 65%);
  filter: blur(80px);
  z-index: 0;
}
.how-header .container { position: relative; z-index: 2; }
.how-header .post-heading h1 {
  color: #fff !important;
  font-size: 40px !important;
  text-align: center;
  margin: 0;
}

/* --- Фото-баннер /about: командное фото вместо тёмной заливки. Тот же
       градиент, что на .tr-banner/.search-header; glow-блобы поверх фото
       отключены. Само фото вынесено в слой .how-hero-bg (выше секции на 15%
       сверху и снизу) — этот запас уходит на сдвиг по Y при прокрутке,
       см. параллакс в freelancers.js. 2026-10-31 --- */
.how-header--photo {
  background: var(--wv-dark) !important;
}
.how-header--photo::before,
.how-header--photo::after { display: none; }

.how-hero-bg,
.wv-parallax-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -32%;
  height: 164%;
  z-index: 0;
  pointer-events: none;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Секция, у которой фон вынесен в слой параллакса: слой не должен
   вылезать за её границы. isolation держит отрицательный z-index слоя
   внутри секции — он ложится над её фоном, но под контентом. */
.wv-has-parallax {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.wv-has-parallax > .wv-parallax-bg { z-index: -1; }

/* Баннер /project: человек из default-banner.jpg поднят выше (~3 см).
   Слой на 164% выше баннера; увеличение Y-позиции показывает более низкую
   часть фото — фигура сдвигается вверх в кадре. */
.jobpost-header .wv-parallax-bg { background-position: center 100%; }

/* Баннер главной: фото приподнято на 3 см (просили 4, откатили на 1).
   Фон уезжает в слой параллакса (JS забирает только background-image,
   позиция секции отбрасывается), поэтому сдвиг задаём слою:
   уменьшение Y-позиции = контент выше в кадре. */
.tr-banner .wv-parallax-bg { background-position: center calc(50% - 3cm); }

/* --- 2026-11-18, пересмотрено 2026-11-22: фото-баннеры внутренних страниц ---
   18-11 просили видеть верх фото сразу (слой был выше кадра на 10-32%,
   кадр показывал середину: на /how срезало иконки иллюстрации) и выключили
   параллакс. 22-11 просили движение обратно — «картинка двигается при
   прокрутке, эффект пропал». Совмещаем оба требования: слой начинается
   С ВЕРХА кадра (top:0) и тянется на 120% ВНИЗ — верх фото виден в покое,
   запас 20% лежит под кадром. Скролл двигает слой ВВЕРХ (отрицательная
   скорость и лимит 18% во freelancers.js): фото уезжает вверх, открывая
   нижнюю часть, и никогда не оголяет край (18% < 20%). Запас именно 20%,
   а не 40%: паниорамы на cover-слое 140% зумятся и режутся по бокам
   слишком сильно (проверено на /freelancers).
   Не тронуты: главная (.tr-banner), /project (.jobpost-header — там своя
   кадрировка под человека) и профили (.profile-banner — обложки загружают
   юзеры); /login (.lg-hero) исключён — компактный баннер с авторской
   кадрировкой. Телефон (<=768) не трогаем: слой остаётся -32%/164%.
   Исключение с 2026-11-28 — главная: там слой на всю высоту секции,
   иначе фото зумилось в 2.4 раза (см. блок mobile-hero ниже). */
@media (min-width: 769px) {
  .how-header:not(.lg-hero) > .wv-parallax-bg,
  .how-header:not(.lg-hero) > .how-hero-bg,
  .search-header > .wv-parallax-bg,
  .search-header > .fl-hero-bg {
    top: 0;
    height: 120%;
    background-size: cover;
    background-position: center top;
  }
}

/* Бейдж-логотип на страницах-формах (2026-11-23).
   Раньше кружок садился на кромку тёмного баннера (вендорский top:-40px +
   margin-top:-44px): линия баннера проходила прямо по нему, и круг читался
   «подрезанным», сколько бы белого кольца ни добавляли. Убираем пересечение
   вообще: бейдж целиком под баннером, на светлом фоне, вместе с подписью —
   ничего не режется. margin-bottom:-110px вендора отменяем: он существовал
   только ради того заступа и теперь затаскивал форму на подпись.
   2026-11-24: отступ от баннера был 14px — кружок читался «приклеенным» к
   кромке фото. Значение поднято до 34px (как на /login, только чуть ниже) и
   задаётся здесь для ВСЕХ страниц с бейджем: /register, /forgot, /password,
   /terms, /privacy, /refund, /faq, /countries, /contact и админ-логин. */
.how-avatar { text-align: center; margin-top: 34px; margin-bottom: 0; top: 0; position: relative; z-index: 3; }
.how-avatar img {
  border-radius: 50%;
  /* Белое кольцо на светлой половине секции сливалось с фоном и кружок
     выглядел обрезанным по линии баннера. Тонкий контур (1px) читается и на
     тёмном баннере, и на белом фоне — круг замкнут с обеих сторон.
     2026-11-23 */
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(15,23,42,.16), 0 18px 40px -14px rgba(15,23,42,.35);
  background: #fff;
}
/* font-family: вендорский style.css красит подпись в Poppins — геометрический
   шрифт с выносными почти вровень с прописными (у «Freelancers» верх «l» выше
   «F» всего на 1px), из-за чего верхушки букв выглядят соструганными.
   Inter (--wv-font, основной шрифт темы) — нормальные выносные. 2026-11-22 */
.how-avatar p { font-family: var(--wv-font); font-weight: 700; color: var(--wv-text) !important; margin-top: 12px; font-size: 16px; }

/* --- Аватар заказчика на /project (2026-11-08) -------------------------
   Беда: у default.png прозрачный верх — голова выходит за синий круг,
   а над кругом пиксели с alpha=0. Раньше белый обод был border'ом самой
   картинки, и сквозь эту прозрачность просвечивал тёмный баннер: над
   аватаркой появлялся чёрный полумесяц.
   Теперь обод — у ссылки-обёртки (у неё же overflow:hidden), картинка
   внутри подрезается по кругу. Фон обёртки = цвет обода, поэтому
   прозрачные места читаются как обод, а не как дырка в баннер.
   Картинку поднимаем и чуть увеличиваем: синий круг садится по центру
   обода, голова может заходить на обод — чёрного не остаётся. */
.header-avatar > a {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  box-sizing: border-box;
  border: 7px solid #f5f5f6;
  border-radius: 50%;
  background: #f5f5f6;
  overflow: hidden;
  line-height: 0;
}
.header-avatar > a img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  transform: scale(1.08) translateY(-3.5%);
  transform-origin: 50% 50%;
}

/* ---------------------------------------------------------------------
   Auth pages / forms
--------------------------------------------------------------------- */
.banner-login { padding: 64px 0 96px !important; }
.form-sign {
  background: #fff !important;
  border: 1px solid var(--wv-line) !important;
  border-radius: var(--wv-radius-lg) !important;
  box-shadow: var(--wv-shadow) !important;
  padding: 40px 38px !important;
  max-width: 460px;
  margin: 34px auto 0;
}
.form-sign .form-head { border: none !important; }
.form-sign .form-body { padding: 0 !important; }
.field, input[type="text"].field, input[type="password"].field, input[type="email"].field {
  width: 100%;
  background: #f8fafc !important;
  border: 1.5px solid var(--wv-line) !important;
  border-radius: 12px !important;
  padding: 13px 16px !important;
  font-size: 14.5px !important;
  font-family: var(--wv-font) !important;
  color: var(--wv-text) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: none !important;
  height: auto !important;
}
.field:focus, .field:active {
  border-color: var(--wv-primary-500) !important;
  background: #fff !important;
  box-shadow: var(--wv-ring) !important;
  outline: none;
}
.field::placeholder { color: #94a3b8; }

select, textarea, .form-control {
  font-family: var(--wv-font) !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  border: 1.5px solid var(--wv-line) !important;
  color: var(--wv-text) !important;
  transition: border-color .18s ease, box-shadow .18s ease;
  height: auto;
}
select:focus, textarea:focus, .form-control:focus {
  border-color: var(--wv-primary-500) !important;
  box-shadow: var(--wv-ring) !important;
  outline: none;
}
textarea { min-height: 120px; }

/* Switch
   Legacy switch rules live in login.css (front) and AdminLTE/style.css (admin);
   this file loads last, so legacy properties are re-asserted here — with
   !important where the legacy rule itself carries one (knob/label colors,
   span color). The legacy 60px track is the label's ::before and is hidden. */
.material-switch > input[type="checkbox"] { display: none; }
.material-switch label {
  display: inline-block;
  width: 40px; height: 22px;
  background: #cbd5e1 !important;
  border-radius: 999px !important;
  position: relative;
  cursor: pointer;
  transition: background .2s ease;
}
.material-switch > label::before { display: none !important; content: none !important; }
.material-switch label::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff !important;
  top: 2px; left: 2px;
  margin-top: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.material-switch > input[type="checkbox"]:checked + label { background: var(--wv-primary) !important; }
.material-switch > input[type="checkbox"]:checked + label::after { transform: translateX(18px); left: 2px; }
/* legacy colored label variant on the admin login */
.material-switch > .label-success-mint,
.material-switch > .label-mint { background: #cbd5e1 !important; }
.material-switch span {
  position: static !important;
  left: 0 !important;
  margin: 0 0 0 10px;
  font-size: 13.5px;
  color: var(--wv-body) !important;
  vertical-align: middle;
}

/* Login "remember me" switch (home/login.php + admin/login.php): the whole
   row is one <label>, so clicking the text toggles the checkbox too, and
   flex keeps the text on the track's center line. */
.wv-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 2px;
  margin: 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.wv-switch > input[type="checkbox"] { display: none; }
.wv-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 40px; height: 22px;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background .2s ease;
}
.wv-switch-track::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px; left: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.wv-switch > input[type="checkbox"]:checked + .wv-switch-track { background: var(--wv-primary); }
.wv-switch > input[type="checkbox"]:checked + .wv-switch-track::after { transform: translateX(18px); }
.wv-switch-text {
  font-size: 13.5px;
  color: var(--wv-body);
}

/* ---------------------------------------------------------------------
   Captcha row (/login, /register, /admin/login, /forgot): the image and
   the ⟳ button are two separate flex items. The button sits BESIDE the
   picture, never on top of it - a covered character makes the code
   impossible to read. Both stay together when the row wraps.
--------------------------------------------------------------------- */
.wv-captcha-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wv-captcha {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  line-height: 0;
  -webkit-user-select: none;
  user-select: none;
}
.wv-captcha img { display: block; border-radius: 10px; cursor: pointer; }
.wv-captcha-refresh {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--wv-line);
  border-radius: 50%;
  background: #fff;
  color: var(--wv-primary);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.wv-captcha-refresh:hover { background: var(--wv-primary); color: #fff; transform: rotate(45deg); }
.wv-captcha-refresh:focus-visible { outline: 2px solid var(--wv-primary); outline-offset: 2px; }
.wv-captcha-field {
  flex: 1 1 150px;
  min-width: 130px;
  max-width: 190px;
}

/* ---------------------------------------------------------------------
   Generic cards, panels, tables, alerts (front + dashboards)
--------------------------------------------------------------------- */
.box, .panel, .kafe-kudos, .card, .tr-card {
  background: #fff !important;
  border: 1px solid var(--wv-line) !important;
  border-radius: var(--wv-radius) !important;
  box-shadow: var(--wv-shadow-sm) !important;
  overflow: hidden;
}
.box-header, .panel-heading {
  background: #fff !important;
  border-bottom: 1px solid var(--wv-line) !important;
  padding: 16px 20px !important;
}
.box-header .box-title, .panel-heading { font-weight: 700; color: var(--wv-text); }
.box-body, .panel-body { padding: 20px !important; }
.box-footer { background: #fbfcfe !important; border-top: 1px solid var(--wv-line) !important; padding: 14px 20px !important; }

.table { margin-bottom: 0; }
.table > thead > tr > th {
  background: #f8fafc !important;
  color: var(--wv-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--wv-line) !important;
  padding: 12px 16px !important;
}
.table > tbody > tr > td { padding: 14px 16px !important; vertical-align: middle; border-top: 1px solid #eef1f7 !important; color: var(--wv-body); }
.table-striped > tbody > tr:nth-of-type(odd) { background: #fafbfe; }
.table-hover > tbody > tr:hover { background: #f4f6fe !important; }

.alert {
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  box-shadow: var(--wv-shadow-sm);
}
.alert-success { background: #ecfdf5 !important; color: #065f46 !important; border-color: #a7f3d0 !important; }
.alert-danger, .alert-warning { background: #fef2f2 !important; color: #991b1b !important; border-color: #fecaca !important; }
.alert-info { background: #eff6ff !important; color: #1e40af !important; border-color: #bfdbfe !important; }

.label, .badge {
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
}
.label-success, .badge-success { background: #d1fae5 !important; color: #065f46 !important; }
.label-danger, .badge-danger, .label-important { background: #fee2e2 !important; color: #991b1b !important; }
.label-warning { background: #fef3c7 !important; color: #92400e !important; }
.label-info { background: #e0f2fe !important; color: #075985 !important; }
.label-primary, .label-default { background: #e0e7ff !important; color: #3730a3 !important; }

.pagination > li > a, .pagination > li > span {
  border-radius: 10px !important;
  margin: 0 4px;
  border: 1px solid var(--wv-line) !important;
  color: var(--wv-body) !important;
  font-weight: 600 !important;
  font-size: 13.5px;
  padding: 8px 14px !important;
  transition: all .18s ease;
}
.pagination > li.active > a, .pagination > li > a:hover {
  background: var(--wv-primary) !important;
  border-color: var(--wv-primary) !important;
  color: #fff !important;
}
.pagination > li:first-child > a, .pagination > li:last-child > a { border-radius: 10px !important; }

.list-group-item { border-color: #eef1f7 !important; border-radius: 12px !important; margin-bottom: 10px; box-shadow: var(--wv-shadow-sm); }
.list-group-item:hover { border-color: #c7cdf8 !important; }

.media, .media-body { overflow: visible; }

/* Progress bars */
.progress { background: #eef1f7 !important; border-radius: 999px !important; height: 8px !important; box-shadow: none !important; }
.progress-bar { background: var(--wv-grad) !important; border-radius: 999px; }

/* Nav-tabs / pills */
.nav-tabs { border-bottom: 1px solid var(--wv-line) !important; }
.nav-tabs > li > a {
  border-radius: 10px 10px 0 0 !important;
  font-weight: 600 !important;
  color: var(--wv-muted) !important;
  border: none !important;
  padding: 10px 18px !important;
}
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover {
  color: var(--wv-primary) !important;
  border: none !important;
  border-bottom: 2.5px solid var(--wv-primary) !important;
  background: transparent !important;
}
.nav-tabs > li > a:hover { background: #f1f3fd !important; color: var(--wv-primary) !important; }

/* Select2 */
.select2-container .select2-selection--single {
  height: 44px !important;
  border: 1.5px solid var(--wv-line) !important;
  border-radius: 10px !important;
  display: flex;
  align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: normal !important; color: var(--wv-text) !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100% !important; right: 8px !important; }
.select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--wv-primary-500) !important; box-shadow: var(--wv-ring); }
.select2-dropdown { border: 1px solid var(--wv-line) !important; border-radius: 12px !important; box-shadow: var(--wv-shadow) !important; overflow: hidden; }
.select2-results__option--highlighted { background: var(--wv-primary) !important; }
/* Множественный выбор: такой же вид, как у обычного select (поле + стрелка вниз). */
.select2-container--default .select2-selection--multiple {
  min-height: 44px !important;
  padding-right: 34px !important;
  border: 1.5px solid var(--wv-line) !important;
  border-radius: 10px !important;
  position: relative;
}
.select2-container--default .select2-selection--multiple::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--wv-muted) !important;
  border-bottom: 2px solid var(--wv-muted) !important;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select2-container--default .select2-selection--multiple .select2-selection__placeholder { margin-top: 11px !important; color: var(--wv-muted) !important; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { margin-top: 6px !important; }
.select2-container--default.select2-container--focus .select2-selection--multiple { border-color: var(--wv-primary-500) !important; box-shadow: var(--wv-ring); }
[dir="rtl"] .select2-container--default .select2-selection--multiple { padding-right: 0 !important; padding-left: 34px !important; }
[dir="rtl"] .select2-container--default .select2-selection--multiple::after { right: auto; left: 14px; }

/* SweetAlert */
.sweet-alert { border-radius: 22px !important; font-family: var(--wv-font) !important; }
.sweet-alert h2 { font-weight: 800 !important; }
.sweet-alert button { background: var(--wv-primary) !important; border-radius: 10px !important; font-weight: 700 !important; }

/* Summernote toolbar polish */
.note-editor.note-frame { border: 1.5px solid var(--wv-line) !important; border-radius: 12px !important; overflow: hidden; }
.note-toolbar { background: #f8fafc !important; }

/* Misc front classes */
.mt-4 { margin-top: 24px; }
.text-center { text-align: center; }
.sec-title.centered { text-align: center; }

/* Empty states */
.no-data, .empty-state { text-align: center; padding: 48px 24px !important; color: var(--wv-muted); }
.no-data i, .empty-state i { font-size: 42px; color: #cbd5e1; margin-bottom: 14px; display: block; }

/* ---------------------------------------------------------------------
   ADMIN (AdminLTE) modernization
--------------------------------------------------------------------- */
body.admin-body, .skin-green .main-header .navbar { background: #fff !important; }

.skin-green .main-header {
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
  border-bottom: 1px solid var(--wv-line);
  position: sticky;
  top: 0;
  z-index: 1030;
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
.skin-green .main-header .navbar { background: transparent !important; border: none; }
.skin-green .main-header .navbar .sidebar-toggle { color: var(--wv-text) !important; background: transparent !important; border-radius: 10px; padding: 8px 12px; }
.skin-green .main-header .navbar .sidebar-toggle:hover { background: #f1f3fd !important; }
.skin-green .main-header .logo {
  background: var(--wv-darker) !important;
  color: #fff !important;
  font-family: var(--wv-font) !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
  border: none;
  border-right: 1px solid rgba(255,255,255,.08);
}
.skin-green .main-header .navbar-nav > .user-menu > a { color: var(--wv-body) !important; }
.skin-green .main-header .navbar-nav > .user-menu > .dropdown-menu {
  border: 1px solid var(--wv-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--wv-shadow-lg) !important;
  padding: 8px !important;
}
.skin-green .main-header .navbar-nav > .user-menu > .dropdown-menu > li.user-header {
  background: var(--wv-grad) !important;
  border-radius: 10px 10px 0 0;
  height: auto !important;
  padding: 22px 16px;
}

.skin-green .main-sidebar, .left-side {
  background: var(--wv-darker) !important;
  padding-top: 68px;
}
.skin-green .main-sidebar .sidebar .user-panel > .info { color: #cbd5e1 !important; }
.skin-green .main-sidebar .sidebar .user-panel > .info > a { color: #f1f5f9 !important; }
.sidebar-menu > li.header {
  color: #475569 !important;
  background: transparent !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 18px 18px 6px !important;
}
.sidebar-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8 !important;
  border-radius: 10px;
  margin: 2px 8px !important;
  padding: 11px 10px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.25;
  transition: background .16s ease, color .16s ease;
}
/* Иконки: одна неподвижная колонка 16px, все глифы по центру своей ячейки */
.sidebar-menu > li > a > .fa,
.sidebar-menu > li > a > .glyphicon,
.sidebar-menu > li > a > .ion {
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px;
  line-height: 16px !important;
  margin: 0 !important;
  text-align: center;
  font-size: 13.5px;
  align-self: center;
}
/* Текст пункта: одна строка, обрезается многоточием и не вылезает из плашки */
.sidebar-menu > li > a > span:not(.label):not(.badge) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Стрелка подменю: прижата к правому краю, по центру строки */
.sidebar-menu > li > a > .fa-angle-left {
  position: static !important;
  flex: 0 0 auto;
  width: auto !important;
  height: auto;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0;
  font-size: 12.5px;
  opacity: .7;
}
/* Счётчики: своей колонкой справа, никогда поверх текста */
.sidebar-menu > li > a > .label,
.sidebar-menu > li > a > .badge {
  position: static !important;
  flex: 0 0 auto;
  float: none !important;
  margin: 0 !important;
  margin-inline-start: 4px !important;
  padding: 3px 7px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 1;
  border-radius: 999px;
}
.sidebar-menu > li > a:hover { background: rgba(255,255,255,.06) !important; color: #fff !important; }
.sidebar-menu > li.active > a {
  background: var(--wv-grad) !important;
  color: #fff !important;
  border-left-color: transparent !important;
  box-shadow: 0 8px 18px -6px rgba(79,70,229,.55);
}
.sidebar-menu > li.active > a i { color: #fff !important; }
.sidebar-menu .treeview-menu {
  background: rgba(255,255,255,.04) !important;
  border-radius: 10px;
  margin: 2px 10px 6px !important;
  padding: 6px !important;
}
.sidebar-menu .treeview-menu > li > a { color: #8ea0b5 !important; padding: 8px 12px !important; border-radius: 8px; font-size: 13px !important; }
.sidebar-menu .treeview-menu > li > a:hover { color: #fff !important; background: rgba(255,255,255,.06) !important; }
.sidebar-menu .treeview-menu > li.active > a { color: #c7d2fe !important; }

/* Свёрнутый сайдбар: остаётся только иконка — держим её по центру колонки */
@media (min-width: 768px) {
  .sidebar-mini.sidebar-collapse .sidebar-menu > li > a {
    justify-content: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.skin-green .content-wrapper, .skin-green .right-side {
  background: var(--wv-bg) !important;
}
.content-header {
  padding: 22px 24px 6px !important;
}
.content-header > h1 {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--wv-text) !important;
}
.content-header .breadcrumb {
  background: transparent !important;
  font-size: 13px;
  color: var(--wv-muted);
}
.content-header .breadcrumb > li + li::before { content: '›'; color: #94a3b8; }
.content-header .breadcrumb > .active { color: var(--wv-primary); font-weight: 600; }

.skin-green .box { border: 1px solid var(--wv-line) !important; border-radius: 14px !important; box-shadow: var(--wv-shadow-sm) !important; margin-bottom: 22px; }
.skin-green .box-header { padding: 16px 20px !important; }
.skin-green .box-header .box-title { font-size: 15.5px !important; font-weight: 700 !important; }
.skin-green .box.box-primary { border-top: none !important; }
.skin-green .box.box-danger, .skin-green .box.box-success, .skin-green .box.box-warning { border-top: none !important; }
.skin-green .box-body { padding: 20px !important; }
.skin-green .box-footer { padding: 14px 20px !important; }

.skin-green .info-box, .skin-green .small-box {
  border-radius: 14px !important;
  border: 1px solid var(--wv-line) !important;
  box-shadow: var(--wv-shadow-sm) !important;
}
.skin-green .small-box { background: #fff !important; }
.skin-green .small-box > .small-box-footer { background: rgba(15,23,42,.03) !important; color: var(--wv-muted) !important; }
.skin-green .small-box:hover > .small-box-footer { background: var(--wv-primary) !important; color: #fff !important; }
.skin-green .small-box h3 { font-size: 28px !important; font-weight: 800 !important; color: var(--wv-text) !important; }
.skin-green .small-box .icon { font-size: 64px !important; color: rgba(79,70,229,.14) !important; }
.skin-green .info-box { background: #fff !important; }
.skin-green .info-box-icon { border-radius: 12px !important; height: auto; }

.skin-green .btn { border-radius: 10px !important; }
.skin-green .form-control { border-radius: 10px !important; border: 1.5px solid var(--wv-line); }
.skin-green .form-control:focus { border-color: var(--wv-primary-500); box-shadow: var(--wv-ring); }

.skin-green .main-footer { background: transparent !important; color: var(--wv-muted) !important; border-top: 1px solid var(--wv-line) !important; padding: 16px 24px !important; }
.skin-green .main-footer::before { display: none; }

/* Admin widget cards (Overview) */
.skin-green .card {
  background: #fff !important;
  border: 1px solid var(--wv-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--wv-shadow-sm) !important;
}
.skin-green .card .card-body { padding: 22px !important; }
.skin-green .card .card-body h5 {
  color: var(--wv-muted) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 10px;
}
.skin-green .card .card-body h3 {
  color: var(--wv-text) !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  font-variant-numeric: tabular-nums;
}
.skin-green .widget-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 13px !important;
  background: var(--wv-grad-soft) !important;
  color: var(--wv-primary) !important;
  font-size: 19px !important;
}
.skin-green .main-header .logo { font-family: var(--wv-font) !important; }
.skin-green .user-panel > .info > p, .skin-green .user-panel > .info > a { font-family: var(--wv-font) !important; }
.skin-green .main-header .navbar-nav > li > a { color: var(--wv-body) !important; }
.skin-green .main-header .navbar-nav > li > a:hover { color: var(--wv-primary) !important; }
/* Force Inter across the admin shell */
.skin-green .main-sidebar, .skin-green .main-header .navbar, .skin-green .content-wrapper,
.skin-green .main-footer, .skin-green .sidebar-menu a, .skin-green .sidebar-menu .header,
.skin-green .user-panel, .skin-green .content-header, .skin-green .box, .skin-green .card,
.skin-green .btn, .skin-green .form-control, .skin-green .table,
.skin-green .dropdown-menu, .skin-green .login-page, .skin-green .treeview-menu a {
  font-family: var(--wv-font) !important;
}

/* DataTables */
table.dataTable thead th { border-bottom: 1px solid var(--wv-line) !important; }.dataTables_wrapper .dataTables_filter input { border: 1.5px solid var(--wv-line) !important; border-radius: 10px !important; padding: 7px 12px !important; outline: none; }
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--wv-primary-500) !important; box-shadow: var(--wv-ring); }
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 9px !important;
  border: 1px solid var(--wv-line) !important;
  margin-left: 4px !important;
  color: var(--wv-body) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--wv-primary) !important;
  border-color: var(--wv-primary) !important;
  color: #fff !important;
}

/* Admin login */
.admin-login-body, body.skin-green.login-page { background: var(--wv-dark) !important; }
.login-page .login-box { margin-top: 8vh; }
.login-page .login-logo a { color: #fff !important; font-weight: 800; }
.login-page .login-box-body {
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: var(--wv-shadow-lg) !important;
  padding: 32px 28px !important;
}

/* ---------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------- */
/* Desktop: keep the pill menu compact — the theme container is 88% wide (max 1240px), so the
   menu + auth buttons only fit on one row with tighter paddings */
@media (min-width: 768px) {
  .tr-header .navbar-nav > li > a { padding: 9px 11px !important; font-size: 14px !important; margin: 0 !important; }
  .tr-header .navbar-brand img { height: 34px; }
  .tr-header .wv-lang-caret { display: none; }
  .tr-header .navbar-right ul.navbar-nav { margin-right: 2px; }
  .tr-header .navbar-right .kafe-btn { padding-left: 16px !important; padding-right: 16px !important; }
  .tr-header .navbar-right .kafe-btn-mint-small { font-size: 13px !important; }
  .tr-header .navbar-right .kafe-btn.kafe-btn-default-small { font-size: 13px !important; }
}

/* 992–1399: the container is 88% wide here, so the menu + auth buttons never fit on one row —
   move the menu to a second row instead of letting it slide underneath the auth buttons */
@media (min-width: 992px) and (max-width: 1399px) {
  .tr-header .container { flex-wrap: wrap; }
  .tr-header .navbar-left { flex: 0 0 100%; width: 100%; order: 5; }
  .tr-header .navbar-collapse { background: #fff; border-top: 1px solid var(--wv-line); margin-top: 6px; padding: 2px 0 6px; border-radius: 0 0 14px 14px; }
  .tr-header .navbar-left ul.navbar-nav { flex-wrap: wrap; justify-content: center; }
  .tr-header .navbar-nav > li > a { padding: 11px 14px !important; font-size: 14px !important; }
}

/* Dashboard sidenav (9 menu items with long RU/DE/FR labels): the menu never fits
   on one row next to the disputes button — stack it on its own centred row at every
   desktop width, like the 992–1399 range already does. The ≥1400 grid is for the
   public header only (5 items) and must not squeeze the dashboard menu. Compact
   pills + 8px gap keep all 9 items (~1170px) on a single line inside the 1250px
   container; wrap stays as the graceful fallback for longer locales. */
@media (min-width: 992px) {
  .tr-header--dash .container { display: flex; flex-wrap: wrap; justify-content: space-between; padding-top: 10px; }
  .tr-header--dash .navbar-left { flex: 0 0 100%; width: 100%; order: 5; }
  .tr-header--dash .navbar-collapse { background: #fff; border-top: 1px solid var(--wv-line); margin-top: 6px; padding: 2px 0 6px; border-radius: 0 0 14px 14px; }
  .tr-header--dash .navbar-left ul.navbar-nav { flex-wrap: wrap; justify-content: center; column-gap: 8px; }
  .tr-header--dash .navbar-nav > li > a { padding: 9px 10px !important; font-size: 14px !important; }
}

/* 1400–1599: still one row, but the 88% container is tight for long locale labels (FR/DE) —
   compact the pills and logo instead of letting the right cluster slide over the last menu item */
@media (min-width: 1400px) and (max-width: 1599px) {
  .tr-header .navbar-nav > li > a { padding: 9px 8px !important; }
  .tr-header .navbar-nav > li > a::after { left: 8px; right: 8px; }
  .tr-header .navbar-brand img { height: 30px; }
  .tr-header .navbar-right .kafe-btn { padding-left: 13px !important; padding-right: 13px !important; }
  .tr-header .navbar-right .wv-lang-item > a { padding: 9px 7px !important; }
}

/* very small screens: language switcher lives in the top-left corner, opposite the burger.
   Breakpoint matches the header layout block above (max-width: 768px): at exactly 768px
   the corner pill is already shown, but a 767px cap left its menu with the desktop
   centred popover geometry — the panel slid out of the viewport and over the pill. */
@media (max-width: 768px) {
  .tr-header .wv-lang-code, .tr-header .wv-lang-caret { display: none; }
  /* the navbar-right switcher yields to the corner one */
  .tr-header .navbar-right .wv-lang-item { display: none; }
  /* corner button in the burger's own style (same fill, same radius, same height) */
  .tr-header .wv-lang-corner > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 11px;
    background: #f1f3fd !important;
    border-radius: 10px;
    font-family: var(--wv-font);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--wv-text) !important;
  }
  .tr-header .wv-lang-corner .wv-flag { display: inline-flex; align-items: center; gap: 6px; }
  .tr-header .wv-lang-corner .wv-lang-code { display: inline; }
  /* menu opens from the left edge into the viewport, not out of it.
     The panel keeps its 8% enlargement but grows from its top edge: scaling from the
     centre (plus the old translateY(-3.5%)) pulled it up over the flag pill it hangs
     from, cutting through the pill's bottom corners. */
  .tr-header .wv-lang-corner .dropdown-menu.wv-nav-menu {
    left: 0 !important;
    right: auto !important;
    transform: scale(1.08);
    transform-origin: top left;
  }
  .tr-header .wv-lang-corner .dropdown-menu::before {
    right: auto;
    left: 18px;
  }
}

/* <=767px: the nav lists collapse into the burger, so their menus sit inside the
   column and must not use the floating-popover geometry. */
@media (max-width: 767px) {
  /* no room to centre the menus here — anchor them to the toggle edge instead */
  .tr-header .dropdown-menu.wv-nav-menu {
    left: auto !important;
    right: 0 !important;
    transform: scale(1.08) translateY(-3.5%);
    max-width: calc(100vw - 16px);
    animation: wv-drop .16s ease;
  }
  /* Bootstrap makes open dropdown-menus position:static below 768px, so the ::before
     tip (top:-8px; right:16px) no longer anchors to the panel — it resolves against
     the positioned li and lands on the item above. Anchor the tip to the panel itself. */
  .tr-header .navbar-nav li.dropdown .dropdown-menu {
    position: relative;
    top: auto;
    /* the scale(1.08) translateY(-3.5%) popover trick above only works for an
       absolutely positioned menu that floats over the page. In the burger menu the
       panel is in normal flow, so scaling it up and lifting it drew the panel over
       the toggle it belongs to ("מדינה" pill poking out of the country menu). */
    transform: none;
  }
}

@media (max-width: 991px) {
  h1, .banner-headline h3, .tr-banner .banner-headline h3 { font-size: 36px !important; }
  h2, .sec-title h2 { font-size: 27px !important; }
  section { padding: 64px 0; }
  .tr-header .container { flex-wrap: wrap; }
  .tr-header .navbar-left { width: 100%; }
  .tr-header .navbar-left ul.navbar-nav { justify-content: center; }
  .navbar-collapse { background: #fff; border-top: 1px solid var(--wv-line); margin-top: 8px; border-radius: 0 0 14px 14px; box-shadow: var(--wv-shadow); }
  .tr-header .navbar-nav > li > a { padding: 13px 16px !important; }
  .tr-header .navbar-nav > li > a::after { display: none; }
  .banner-stats { flex-wrap: wrap; }
  .banner-stats li { flex: 1 1 50%; }
  .banner-stats li:nth-child(3)::before { display: none; }
  .search-form { flex-direction: column; padding: 16px !important; gap: 14px; }
  .search-form .search-button button { width: 100%; }
}

@media (max-width: 600px) {
  .banner-headline h3, .tr-banner .banner-headline h3 { font-size: 30px !important; }
  .banner-stats { border-radius: 16px; }
  .join-box { padding: 40px 24px !important; }
  .join-box p { font-size: 22px !important; }
  .form-sign { padding: 28px 22px !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------
   Subcategory panel (клик по рубрике на главной)
   Сетка карточек «иконка + подпись», как в макете.
--------------------------------------------------------------------- */
.category-block .inner-box.has-subcats .overlay-box { cursor: pointer; }

.wv-subcat-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.wv-subcat-modal.is-open { display: flex; }
body.wv-subcat-lock { overflow: hidden; }

.wv-subcat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: wvSubcatFade .2s ease both;
}

.wv-subcat-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--wv-radius-lg);
  box-shadow: var(--wv-shadow-lg);
  overflow: hidden;
  animation: wvSubcatPop .22s ease both;
}

.wv-subcat-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--wv-line);
  background: #fff;
}
.wv-subcat-modal__titles h3 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.wv-subcat-modal__titles p {
  margin: 0;
  color: var(--wv-muted);
  font-size: 14px;
}
.wv-subcat-modal__close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--wv-line);
  border-radius: 50%;
  background: #fff;
  color: var(--wv-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.wv-subcat-modal__close:hover {
  background: var(--wv-bg);
  color: var(--wv-text);
  border-color: #cbd5e1;
}

.wv-subcat-form, .wv-subcat-body { margin: 0; overflow-y: auto; }

/* Полоса рубрик внутри окна подкатегорий */
.wv-subcat-tabs {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 8px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--wv-line);
  background: #fff;
}
.wv-subcat-tab {
  padding: 7px 14px;
  border: 1px solid var(--wv-line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wv-muted);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.wv-subcat-tab:hover { border-color: #c7cdf8; color: var(--wv-text); }
.wv-subcat-tab.is-active {
  background: var(--wv-primary);
  border-color: var(--wv-primary);
  color: #fff;
}

.wv-subcat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 28px 30px;
  background: #fff;
}

.wv-subcat-grid .wv-subcat-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 14px 18px !important;
  background: #fff !important;
  border: 1px solid var(--wv-line) !important;
  border-radius: var(--wv-radius) !important;
  box-shadow: var(--wv-shadow-sm);
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  font: inherit;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: normal !important;
  color: var(--wv-text) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wv-subcat-grid .wv-subcat-card:hover,
.wv-subcat-grid .wv-subcat-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--wv-shadow);
  border-color: #c7cdf8;
  outline: none;
}
.wv-subcat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}
.wv-subcat-card__icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}
.wv-subcat-card__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--wv-text);
}

@keyframes wvSubcatFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wvSubcatPop {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 991px) {
  .wv-subcat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px; }
  .wv-subcat-modal__head { padding: 20px 20px 16px; }
  .wv-subcat-modal__titles h3 { font-size: 20px; }
}
@media (max-width: 575px) {
  .wv-subcat-modal { padding: 0; }
  .wv-subcat-modal__dialog { max-height: 100vh; border-radius: 0; height: 100%; }
  .wv-subcat-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 12px 16px; -webkit-overflow-scrolling: touch; }
  .wv-subcat-tab { flex: 0 0 auto; font-size: 12.5px; }
  .wv-subcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
  .wv-subcat-card { padding: 16px 10px 14px; gap: 10px; }
  .wv-subcat-card__icon, .wv-subcat-card__icon img { width: 48px; height: 48px; }
  .wv-subcat-card__label { font-size: 13px; }
}

/* ---- Sidebar flyout menu on /projects (replaces checkbox list, 2026-10-24) ---- */
.ps-categories {
  padding: 8px 8px 10px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 28px rgba(15, 23, 42, .07);
}
.ps-categories h6 {
  padding: 6px 12px 10px;
  border-bottom: 1px solid #f1f3f5;
}
.ps-menu { padding-top: 4px; }
.ps-menu__item { position: relative; }
.ps-menu__item + .ps-menu__item { border-top: 1px solid #f1f3f5; }

.ps-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px;
  background: none;
  border: 0;
  border-radius: 8px;
  font: 400 14px/1.35 "Poppins", sans-serif;
  color: #5f6b7a;
  text-align: left;
  transition: background-color .15s ease, color .15s ease;
}
.ps-menu__row:hover { background: #f4f5f7; color: #1f2937; }

.ps-menu__label {
  flex: 1 1 auto;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}
.ps-menu__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
/* Chevron on rows that have sub-services */
.ps-menu__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.ps-menu__arrow i {
  width: 7px;
  height: 7px;
  border-top: 2px solid #b6bcc6;
  border-right: 2px solid #b6bcc6;
  transform: rotate(45deg);
  transition: transform .15s ease, border-color .15s ease, opacity .15s ease;
}
.ps-menu__row:hover .ps-menu__arrow i,
.ps-menu__arrow:focus-visible i { border-color: #4f46e5; }
.ps-menu__item.is-open .ps-menu__arrow i { transform: rotate(135deg); }

/* Desktop: на широком экране стрелка появляется по наведению (панель
   открывается сама). В диапазоне 993–1199 она видна всегда — там услуги
   раскрываются только кликом по ней. */
@media (min-width: 1200px) and (hover: hover) {
  .ps-menu__arrow i { opacity: 0; }
  .ps-menu__row:hover .ps-menu__arrow i,
  .ps-menu__item.is-open .ps-menu__arrow i,
  .ps-menu__item.active .ps-menu__arrow i { opacity: 1; }
}

.ps-menu__label:focus-visible,
.ps-menu__row:focus-visible,
.ps-menu__arrow:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: -2px;
}

/* Selected rubric / service */
.ps-menu__item.active > .ps-menu__row { color: #4f46e5; font-weight: 500; }
.ps-sub.active { color: #4f46e5; font-weight: 500; background: #f5f6ff; }

/* Sub-panel: inline accordion by default (touch / narrow screens) */
.ps-flyout {
  display: none;
  padding: 0 0 8px 10px;
  margin: 0 0 6px;
  border-left: 2px solid rgba(79, 70, 229, .18);
}
.ps-menu__item.is-open > .ps-flyout { display: block; }
.ps-flyout .ps-menu__row {
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #64748b;
}
.ps-flyout .ps-menu__row + .ps-menu__row { border-top: 1px solid #f1f3f5; }

/* Desktop: панель-мегаменю справа от рубрики — одна карточка, все услуги
   в 2–3 колонки, без внутренней прокрутки (2026-10-30).
   Порог 1200px: ниже сайдбар тянется на всю ширину, и выдвижная панель
   там некуда открывать — работает встроенный аккордеон. */
@media (min-width: 1200px) and (hover: hover) {
  .ps-flyout {
    display: block;
    position: absolute;
    top: -9px;
    left: calc(100% + 12px);
    /* Ширину уточняет scripts.php под свободное место справа, чтобы панель
       не вылезала за экран; здесь — значение по умолчанию и страховка. */
    width: 620px;
    max-width: calc(100vw - 32px);
    padding: 14px 18px;
    margin: 0;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08), 0 14px 34px rgba(15, 23, 42, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 60;
  }
  /* Колонки: браузер берёт столько, сколько влезает в ширину панели
     (максимум 3), высота — по содержимому, прокрутки нет */
  .ps-flyout__in {
    columns: 200px 3;
    column-gap: 26px;
  }
  .ps-flyout__in .ps-menu__row {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  /* Мост через зазор 12px, чтобы подменю не схлопывалось по пути курсора */
  .ps-flyout::before {
    content: "";
    position: absolute;
    top: 0;
    left: -12px;
    width: 12px;
    height: 100%;
  }
  .ps-menu__item:hover > .ps-flyout,
  .ps-menu__item.is-open > .ps-flyout {
    opacity: 1;
    visibility: visible;
    transform: scale(1.08) translateY(-3.5%);
  }
  /* В строке стрелка не нужна — коннектор живёт на панели */
  .ps-menu__arrow { display: none; }
  /* В колонках подписи переносятся, а не обрезаются многоточием */
  .ps-flyout .ps-menu__label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  /* Разделители строк внутри панели не нужны — только подсветка по наведению */
  .ps-flyout .ps-menu__row + .ps-menu__row { border-top: 0; }
  .ps-flyout .ps-menu__row { padding: 7px 10px; font-size: 13.5px; }
}

/* =====================================================================
   Sidebar /projects on mobile (<=992px, 2026-10-24)
   Панель «категории» свёрнута по умолчанию: компактный бар вместо карточки
   на весь первый экран. В раскрытом виде — те же пункты, но с тач-размерами
   и счётчиками-бейджами. Десктоп (>=993px) не затронут.
   ===================================================================== */
.ps-toggle { display: none; }

@media (max-width: 992px) {
  .ps-categories { padding: 0; }
  .ps-categories h6 { display: none; }

  /* Бар-переключатель: название + текущий фильтр + шеврон.
     Сетка, а не flex: колонка значения тянется на всё свободное место,
     поэтому пилюля с названием рубрики не сжимается в огрызок и не оставляет
     пустую дыру посередине бара (в RTL flex + margin-left:auto давал именно её). */
  .ps-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 14px;
    background: none;
    border: 0;
    font: 500 15px/1.3 "Poppins", sans-serif;
    color: #1f2937;
    text-align: start;
    cursor: pointer;
  }
  .ps-toggle__title {
    color: #ed8f80;
    font-weight: 600;
    white-space: nowrap;
  }
  .ps-toggle__value {
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 5px 12px;
  }
  .ps-categories.is-open .ps-toggle__value { color: #4f46e5; background: #eef2ff; }
  .ps-toggle__chev {
    justify-self: end;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9aa3af;
    border-bottom: 2px solid #9aa3af;
    transform: rotate(45deg);
    transition: transform .18s ease;
  }
  .ps-categories.is-open .ps-toggle__chev { transform: rotate(-135deg); }
  .ps-toggle:focus-visible { outline: 2px solid #6366f1; outline-offset: -2px; }

  /* Список скрыт, пока панель не раскрыта */
  .ps-menu { display: none; padding: 0 10px 10px; }
  .ps-categories.is-open .ps-menu { display: block; }

  /* Тач-размеры строк (счётчиков в меню больше нет, 2026-10-30) */
  .ps-menu__row { padding: 13px 10px; font-size: 15px; border-radius: 8px; }
  .ps-menu__arrow { width: 32px; height: 32px; background: #f4f5f7; }
  .ps-menu__arrow i { border-color: #6b7480; }
  .ps-menu__item.active > .ps-menu__row { background: #f5f6ff; }
  .ps-flyout { padding: 2px 0 10px 12px; margin-bottom: 4px; }
  .ps-flyout .ps-menu__row { padding: 12px 10px; font-size: 14px; border-radius: 8px; }
}

/* Тач-экраны: серый :hover не должен «залипать» после тапа */
@media (hover: none) {
  .ps-menu__row:hover { background: none; color: inherit; }
}

/* =====================================================================
   Mobile hardening (2026-10-24)
   Проверялось headless-Edge при 482px (минимум, который он даёт) + пробник
   переполнений (?wvprobe=1). Целевые телефоны 360–430px.
   ===================================================================== */

/* --- Фото-баннер /freelancers: высота 40vh обрезала фото (cover) сверху и
       снизу. Секция следует пропорциям фото (1916×821), поэтому фон виден
       целиком на любой ширине. 2026-10-31: пропорция 1916×720 — баннер на
       ~12% ниже, запас на параллакс даёт слой .fl-hero-bg --- */
.search-header {
  height: auto !important;
  aspect-ratio: 1916 / 720;
}

/* --- Длинные заголовки в баннерах страниц: название проекта без пробелов
       не переносится и уходит за правый край вьюпорта. word-break наследуется
       всеми заголовками и meta внутри .post-heading. 2026-11-16 --- */
.how-header .post-heading,
.jobpost-header .post-heading {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* --- Внутренние баннеры страниц (.how-header/.jobpost-header): 60vh +
       150px-паддинги из style.css занимали почти весь экран телефона одним
       словом --- */
@media (max-width: 768px) {
  .how-header,
  .jobpost-header {
    height: auto !important;
    min-height: 0;
    padding: 64px 0 52px !important;
  }
  .how-header .post-heading,
  .jobpost-header .post-heading { padding: 0 !important; }
  .how-header h1, .jobpost-header h1 { font-size: 27px !important; }
  .how-header h4 { font-size: 15px !important; }
  /* при компактном баннере аватар уходит под него, а не на заголовок;
     отступ от кромки баннера — как на десктопе, чуть меньше (2026-11-24) */
  .how-avatar { margin-top: 28px !important; }

  /* 2026-11-30: подписи фото-баннеров внутренних страниц на телефоне скрыты
     («О нас.», «Как это работает.», «Вопросы», «Войти» …) — просили убрать их
     со всех страниц в мобильной версии: на телефоне это крупное слово на всю
     ширину, а страница и так видна сразу под баннером. Прячем ТОЛЬКО h1
     страницы: у /project (.jobpost-header) в том же .post-heading лежат дата,
     категория и заголовок проекта — его не трогаем. Сама полоса с фото
     остаётся, она даёт странице «лицо». */
  .how-header .post-heading h1 { display: none !important; }
}

/* --- Баннер профиля: 60vh на низких экранах давал полосу ~360px, в которой
       от обложки видна только макушка человека. Даём минимальную высоту,
       чтобы кадр обложки читался. Мобильный блок ниже её снимает.
       2026-11-09: 480 → 640 — единая высота с остальными фото-баннерами. --- */
@media (min-width: 769px) {
  .profile-banner {
    min-height: 640px;
    /* блок аватар/имя/кнопка прижат к нижней кромке баннера, а не по центру;
       глобальный section{padding:88px 0} здесь гасим — он оставлял пустую
       полосу под кнопкой и при flex-end выталкивал контейнер за верх */
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: 0;
  }
  .profile-banner .banner-content {
    padding-bottom: 40px;
  }
}

/* --- Баннер профиля исполнителя (.profile-banner): 80vh из style.css —
       почти весь экран телефона, а background-attachment: fixed мобильные
       браузеры не поддерживают (фон перестаёт скроллиться) --- */
@media (max-width: 768px) {
  .profile-banner {
    height: auto !important;
    min-height: 0;
    padding: 56px 0 48px;
    background-attachment: scroll !important;
  }
}

/* --- Баннер клиента без карточки профиля (.profile-banner--photo):
       контента внутри нет, поэтому на телефоне от фото оставалась полоса
       104px. Держим кадр полосой 16:6, чтобы обложка читалась. --- */
@media (max-width: 768px) {
  .profile-banner--photo {
    height: auto !important;
    min-height: 0;
    padding: 0;
    aspect-ratio: 16 / 6;
  }
}

/* --- Hero главной (.tr-banner): фикс 620px/100vh обрезал поиск и статистику,
       когда они складывались в колонку.
       2026-11-28: на телефоне hero был 879px (414px экран) — выше окна 846px,
       а фото-слой (top:-32%/height:164%) зумил снимок в 2.4 раза: в кадре
       оставался только кусок экрана ноутбука. Ужимаем отступы и статистику,
       слою даём высоту секции (параллакс-запас = 0, JS сам не двигает). --- */
@media (max-width: 768px) {
  /* Верхний отступ секции убран: полоса фото над заголовком (её просили
     убрать) срезается вместе с padding-top, заголовок встаёт к верхнему краю. */
  .tr-banner { height: auto !important; min-height: 0; padding: 0 0 36px !important; }
  .tr-banner .container { padding: 0 20px 20px !important; }
  /* 2026-11-30: карточка поиска исполнителя на телефоне не нужна —
     убираем целиком, чтобы заголовок сразу переходил к статистике. */
  .tr-banner .search-form { display: none !important; }
  .tr-banner .banner-stats {
    max-width: 100%;
    margin: 0 auto !important;
    background: rgba(255,255,255,.025) !important;
    border-color: rgba(255,255,255,.07) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .tr-banner .banner-stats li { flex: 1 1 50%; padding: 12px 10px !important; }
  .tr-banner .banner-stats .count-text { font-size: 22px !important; margin-bottom: 4px !important; }
  .tr-banner .banner-stats li span { font-size: 11.5px !important; min-height: 2.2em; }
  /* 2026-11-29: на телефоне параллакс главной заработал (просили: «на
     страницах картинка едет, а на главной нет»). Слой поднят над секцией
     на 88px и тянется на те же 88px вниз — низ слоя остаётся на низу
     секции, запас сверху уходит на сдвиг по Y при прокрутке (JS двигает
     слой только вниз, в пределах offsetTop). 88px < 94,5px (2,5 см, на
     которые фото выше кадра), поэтому верх кадра не оголяется никогда.
     Снимок приподнят на 2,5 см (просили +1 см дважды) и прижат по низу:
     кадрировка прежняя — background-size считается от ВЫСОТЫ СЕКЦИИ, а не
     слоя (слой на 88px выше => 100% + 2,5см − 88px), поэтому и увеличение,
     и нижний край фото остаются такими же, как до правки. */
  .tr-banner > .wv-parallax-bg {
    top: -88px; height: calc(100% + 88px);
    /* 1-й слой — затемняющий градиент (как был), 2-й — фото:
       на 2,5 см выше кадра, прижато по низу => кадр приподнят на 2,5 см */
    background-size: cover, auto calc(100% + 2.5cm - 88px);
    background-position: center center, center bottom;
  }
}

/* --- Фото-баннер /freelancers: страховка от слишком высокого 40vh.
       На телефоне пропорция 1916×720 давала полосу 147px — от фото остаётся
       тонкий срез, поэтому возвращаем 1916×821 и держим минимум 210px --- */
@media (max-width: 768px) {
  .search-header {
    aspect-ratio: 1916 / 821;
    min-height: 210px;
    max-height: 460px;
  }
}

/* --- Кнопки-открывашки на карточках рубрик: nowrap + display:table
       выталкивали контент за правый край узкого экрана --- */
@media (max-width: 768px) {
  .category-block .inner-box .image .overlay-box .overlay-inner {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .category-block .inner-box .image .overlay-box .overlay-inner .content {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 16px 12px;
  }
  .category-block .inner-box .overlay-box .overlay-inner .content button,
  .category-block .inner-box .overlay-box .overlay-inner .content a {
    white-space: normal;
    max-width: 100%;
    font-size: 13.5px !important;
    padding: 9px 16px !important;
  }
}

/* --- Карточки второй строки рубрик (.categories-row--center): до 768px у
       col-sm-6 нет ширины, а внутри flex-контейнера колонка сжимается до
       натуральной ширины своей картинки (рубрика «Бизнес и жизнь» — 200px
       вместо 300px у остальных). Задаём полную ширину явно --- */
@media (max-width: 768px) {
  .category-section .categories-row--center > [class*="col-"] {
    width: 100%;
  }
}

/* --- Узкие телефоны (<=600): шапка — аккуратные центрированные ряды;
       длинные кнопки форм переносятся, а не обрезаются --- */
@media (max-width: 600px) {
  .tr-header .navbar-right {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 0;
    row-gap: 4px;
  }
  .tr-header .navbar-right ul.navbar-nav { margin-right: 0; justify-content: center; }
  /* перебивает width: calc(100% - 32px) из блока max-width:768px */
  .tr-header .navbar-right .kafe-btn { width: auto; max-width: 100%; }
  .tr-header .navbar-right .kafe-btn-mint-small { white-space: nowrap; }

  button[type="submit"], input[type="submit"] { white-space: normal; }
  .form-sign, .banner-login { max-width: 100%; }
}

/* --- Шапка кабинета (фрилансер/клиент) на телефонах: кнопка «Споры (N)» жила
       отдельной центрированной строкой под «Dashboard» — уезжает в левый угол
       первой строки, как языковая пилюля на публичных страницах:
       [Споры (N)] Dashboard [бургер]. Десктопу угловая копия не нужна.
       display только с !important: .kafe-btn выше по файлу уже даёт
       display: inline-flex !important всем кнопкам. --- */
.tr-header--dash .wv-disputes-corner { display: none !important; }

@media (max-width: 768px) {
  /* кластер справа из navbar-right удалён из разметки (кнопка переехала в
     wv-dash-actions) — правило оставлено как страховка от дублирования */
  .tr-header--dash .navbar-right { display: none !important; }
  /* пилюля в углу: высота и радиус бургера, чтобы ряд смотрелся ровным */
  .tr-header--dash .wv-disputes-corner {
    display: inline-flex !important;
    align-items: center;
    order: 1;
    margin: 0;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 13px;
    letter-spacing: .5px;
    line-height: 1;
    white-space: nowrap;
  }
  .tr-header--dash .wv-disputes-corner i.fa { margin-right: 5px; }
}

/* --- Виджет юзера (аватар+имя в navbar-right): на телефонах он перегружает
       компактную шапку на всех страницах — скрыт, а его пункты (Приборная панель /
       Профиль / Выход) перенесены в бургер-меню сайт-шапки (wv-dash-user-group,
       рендерятся в header.php для любого залогиненного).
       На десктопе (≥768) группа спрятана, виджет остаётся — там это единственный
       выход из аккаунта вне меню «Настройки» кабинета.
       2026-11-20: в бургер-меню это больше не четыре строки в столбик, а сетка
       2×2 из кнопок-пилюль — две кнопки в ряд: Мой кабинет / Профиль,
       Настройки / Выход. --- */
.tr-header .navbar-nav > li.wv-dash-user-group { display: none; }
@media (max-width: 767px) {
  .tr-header .navbar-right ul.navbar-nav > li.wv-user-widget { display: none !important; }
  .tr-header .navbar-nav > li.wv-dash-user-group {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px 12px 0;
    border-top: 1px solid var(--wv-line);
  }
  .tr-header .wv-dash-user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  /* селекторы длинные намеренно: style.css красит `li a` (серый #858686,
     font-size 14px, margin-right 2px) с той же специфичностью, что и короткие */
  .tr-header .navbar-nav > li.wv-dash-user-group .wv-dash-user-grid > a.wv-dash-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    margin: 0 !important;
    padding: 9px 8px;
    border-radius: 999px;
    background: var(--wv-grad-soft);
    color: var(--wv-text) !important;
    font-family: var(--wv-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    box-shadow: inset 0 0 0 1px rgba(79,70,229,.14);
    transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
  }
  .tr-header .navbar-nav > li.wv-dash-user-group .wv-dash-user-grid > a.wv-dash-user-btn > span { min-width: 0; }
  .tr-header .navbar-nav > li.wv-dash-user-group .wv-dash-user-grid > a.wv-dash-user-btn i.fa {
    position: static;
    top: 0;
    flex: 0 0 auto;
    padding: 0 !important;
    color: inherit;
    font-size: 14px;
    line-height: 1 !important;
    opacity: .75;
  }
  .tr-header .navbar-nav > li.wv-dash-user-group .wv-dash-user-grid > a.wv-dash-user-btn:hover,
  .tr-header .navbar-nav > li.wv-dash-user-group .wv-dash-user-grid > a.wv-dash-user-btn:focus {
    background: var(--wv-grad);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -6px rgba(79,70,229,.6);
  }
  /* «Выход» — красный акцент, как и раньше в меню */
  .tr-header .navbar-nav > li.wv-dash-user-group .wv-dash-user-grid > a.wv-dash-user-out {
    background: rgba(225,29,72,.08);
    color: #e11d48 !important;
    box-shadow: inset 0 0 0 1px rgba(225,29,72,.18);
  }
  .tr-header .navbar-nav > li.wv-dash-user-group .wv-dash-user-grid > a.wv-dash-user-out:hover,
  .tr-header .navbar-nav > li.wv-dash-user-group .wv-dash-user-grid > a.wv-dash-user-out:focus {
    background: #e11d48;
    color: #fff !important;
    box-shadow: 0 6px 14px -6px rgba(225,29,72,.6);
  }
}

/* --- Кабинет: действия в лавандовом баннере приветствия (dashboard-header).
       Виджет юзера (аватар+имя) из шапки сайта в кабинете не рендерится
       (header.php, !$wv_in_dash), его кнопки живут здесь: Опубликовать проект /
       Профиль / Выход — белые пилюли на лаванде, Выход с красным акцентом.
       Порядок: Споры / Опубликовать проект / Профиль / Выход — Выход крайний
       справа, Профиль перед ним; кнопки уплотнены, чтобы ряд не переносился. --- */
.dashboard-header .wv-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.dashboard-header .wv-dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--wv-text) !important;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15,23,42,.12);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.dashboard-header .wv-dash-btn i.fa { font-size: 14px; opacity: .75; }
.dashboard-header .wv-dash-btn:hover,
.dashboard-header .wv-dash-btn:focus {
  background: var(--wv-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15,23,42,.22);
  text-decoration: none;
}
.dashboard-header .wv-dash-btn--out { color: #e11d48 !important; }
.dashboard-header .wv-dash-btn--out i.fa { opacity: .9; }
.dashboard-header .wv-dash-btn--out:hover,
.dashboard-header .wv-dash-btn--out:focus { background: #e11d48; color: #fff !important; }
/* На телефоне ряд действий баннера не нужен: «Настройки» и «Выход» переехали
   красным/обычными пунктами в бургер-меню сайт-шапки (wv-dash-user-group в
   header.php) — оно доступно на всех языках. На десктопе бургер-меню скрыто,
   поэтому кнопки остаются в баннере. --- */
@media (max-width: 767px) {
  .dashboard-header .wv-dash-actions { display: none !important; }
}
/* «Споры (N)» — переехала из navbar-right в ряд действий шапки; красный акцент */
.dashboard-header .wv-dash-btn--disputes { color: #e11d48 !important; }
.dashboard-header .wv-dash-btn--disputes i.fa { opacity: .9; }
.dashboard-header .wv-dash-btn--disputes:hover,
.dashboard-header .wv-dash-btn--disputes:focus { background: #e11d48; color: #fff !important; }
.dashboard-header .wv-dash-btn--disputes:hover .wv-count,
.dashboard-header .wv-dash-btn--disputes:focus .wv-count {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
  box-shadow: none;
  transform: scale(1.08) translateY(-3.5%);
}
@media (min-width: 992px) {
  .dashboard-header .wv-dash-actions-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .dashboard-header .wv-dash-actions { margin-top: 0; }
}
/* Узкий десктоп (992–1199): колонка действий минимальна — кнопки компактнее,
   чтобы все четыре (Споры / Опубликовать проект / Профиль / Выход) стояли одним рядом */
@media (min-width: 992px) and (max-width: 1199px) {
  .dashboard-header .wv-dash-actions { gap: 5px; }
  .dashboard-header .wv-dash-btn { padding: 7px 9px; font-size: 12px; gap: 4px; }
  .dashboard-header .wv-dash-btn i.fa { font-size: 11.5px; }
  .dashboard-header .wv-dash-btn .wv-count { padding: 1px 6px; }
  /* колонки баннера: приветствию меньше, ряду кнопок больше — 4 пилюли одним рядом */
  .dashboard-header .col-md-7 { width: 40%; }
  .dashboard-header .wv-dash-actions-col.col-md-6 { width: 60%; }
}
/* --- Баннер приветствия: аватар и текст не слипаются.
       Зазор задавался как margin-right у .avatar-box (style.css). В LTR это
       расстояние между картинкой и приветствием, а в RTL (иврит/арабский)
       тот же маргин уходил наружу — справа, и имя с балансом прижимались к
       аватару вплотную, а на телефоне наезжали на него (имя переносилось на
       две строки, баланс оказывался рядом с нижней половиной картинки).
       Теперь зазор — flex-gap: он одинаков в обе стороны письма. --- */
.dashboard-header .media { align-items: center; gap: 20px; }
.dashboard-header .avatar-box { flex: 0 0 auto; margin: 0; }
.dashboard-header .media-body { min-width: 0; }
.dashboard-header .media-body h2 { line-height: 1.25; overflow-wrap: break-word; text-wrap: balance; }
/* Телефон: аватар меньше, приветствие компактнее — имя и баланс помещаются
   рядом с картинкой с зазором. Глобально h2 на <=991px = 27px, поэтому
   размер перебиваем точечно. --- */
@media (max-width: 767px) {
  .dashboard-header { padding: 16px 0; }
  .dashboard-header .media { gap: 14px; }
  .dashboard-header .avatar-box img { width: 76px; height: 76px; }
  .dashboard-header .media-body h2 { font-size: 19px !important; line-height: 1.3; }
  .dashboard-header .media-body span { font-size: 18px; line-height: 1.25; }
}
/* Client note (freelancer -> clients, 2026-10-27): note box on the invite page + editor page hint. */
.wv-client-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.wv-client-note__head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 9px;
}
.wv-client-note__head i.fa { color: #f59e0b; font-size: 15px; }
.wv-client-note__body {
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  white-space: pre-line;
  overflow-wrap: break-word;
}
.wv-cn-hint {
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed rgba(15,23,42,.14);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
/* RTL mirror (hebrew): keep the icon gap natural */
html[dir=rtl] .wv-client-note__head { flex-direction: row-reverse; }
html[dir=rtl] .wv-client-note__head { text-align: right; }
html[dir=rtl] .wv-cn-hint { text-align: right; }

/* =====================================================================
   /freelancers — фото-баннер + панель поиска над списком (2026-11-18)
   Баннер — только фото; поиск стоит над заголовком списка #fl-list,
   фильтрует карточки серверно (GET ?q=).
   ===================================================================== */
.fl-hero {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 34px 0 !important;
}
/* Фото вынесено в отдельный слой и выше секции на 10% сверху и снизу —
   этот запас уходит на сдвиг по Y при прокрутке (параллакс, см. freelancers.js).
   Сдвигается только картинка; затемнение стоит на месте. */
.fl-hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -10%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* --- панель поиска над списком (светлая тема) --- */
.fl-hero-tools {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: fit-content;
  margin: 0 0 20px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--wv-line);
  box-shadow: 0 12px 26px -20px rgba(15, 23, 42, .45);
  max-width: 100%;
}

/* --- поле поиска --- */
.fl-hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 1 320px;
  min-width: 0;
  padding: 0 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--wv-line);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.fl-hero-search:focus-within {
  background: #fff;
  border-color: var(--wv-primary-500);
  box-shadow: var(--wv-ring);
}
.fl-hero-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  transition: color .18s ease;
}
.fl-hero-search-btn:hover,
.fl-hero-search-btn:focus { color: var(--wv-text); }
.fl-hero-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--wv-text);
  font-family: var(--wv-font);
  font-size: 14.5px;
  text-align: left;
  outline: none;
}
.fl-hero-input::placeholder { color: #94a3b8; }
.fl-hero-input::-webkit-search-cancel-button,
.fl-hero-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.fl-hero-clear {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155 !important;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease;
}
.fl-hero-clear:hover { background: #cbd5e1; text-decoration: none; }

/* --- якорь списка: не заезжать под sticky-хедер --- */
#fl-list { scroll-margin-top: 84px; }

/* --- строка «найдено N из M» --- */
.fl-search-status {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wv-muted);
}

/* --- пустая выдача фильтра --- */
.fl-no-results {
  padding: 46px 20px 40px;
  text-align: center;
}
.fl-no-results > i.fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--wv-grad-soft);
  color: var(--wv-primary);
  font-size: 22px;
}
.fl-no-results h3 { font-size: 19px; margin: 0 0 6px; }
.fl-no-results p { margin: 0 0 18px; font-size: 14.5px; }
.fl-no-results-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--wv-line);
  border-radius: 10px;
  background: #fff;
  color: var(--wv-text) !important;
  font-family: var(--wv-font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.fl-no-results-reset:hover {
  border-color: var(--wv-primary-500);
  color: var(--wv-primary) !important;
  text-decoration: none;
  box-shadow: var(--wv-ring);
}

/* --- RTL (иврит): текст поля зеркалится --- */
html[dir=rtl] .fl-hero-input { text-align: right; }

/* --- мобилка: компактная панель --- */
@media (max-width: 991px) {
  .fl-hero-tools { margin-bottom: 16px; }
  .fl-hero-search { flex: 1 1 auto; }
}
@media (max-width: 640px) {
  .fl-hero { min-height: 150px; }
  .fl-hero-tools {
    width: 100%;
    margin-bottom: 14px;
    gap: 6px;
    padding: 5px;
    border-radius: 12px;
  }
  .fl-hero-input { height: 40px; font-size: 14px; }
  .fl-no-results { padding: 34px 14px 30px; }
}

/* --- /freelancers: поиск в правом углу строки «Исполнители - (N)»
       (панель переехала из-под баннера в .jobs-headline) --- */
.latest-jobs .jobs-headline.wv-fl-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-right: 0;
}
.latest-jobs .jobs-headline.wv-fl-headline .fl-hero-tools { margin-bottom: 0; }
@media (max-width: 640px) {
  .latest-jobs .jobs-headline.wv-fl-headline { margin-bottom: 20px; }
}

/* --- карточка исполнителя кликабельна целиком (freelancers.php + search_freelancers.php,
       скрипт в шаблоне ведёт на профиль по data-wv-open) --- */
.freelancer-box[data-wv-open] { cursor: pointer; }
.freelancer-box[data-wv-open]:hover h3 { text-decoration: underline; }

/* --- админка: колонка «Заказчик» — все аватары одинаковыми кружками в одну линию --- */
.admin-client-cell { white-space: nowrap; }
.admin-client-cell .admin-client-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 10px;
  background: #eef1f7;
}
.admin-client-cell .admin-client-avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
.admin-client-cell .admin-client-name {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.3;
  white-space: nowrap;
}
html[dir=rtl] .admin-client-cell .admin-client-avatar { margin-right: 0; margin-left: 10px; }

/* --- админка: список пользователей — колонка «Аватар» ровно по центру, все кружки одного размера --- */
.admin-users-table td { vertical-align: middle; }
.admin-users-table th { vertical-align: middle; }
.admin-users-table thead th:first-child,
.admin-users-table tfoot th:first-child { text-align: center; }
.admin-users-table td.admin-user-cell {
  width: 70px;
  text-align: center;
  vertical-align: middle;
  padding: 6px 8px;
}
.admin-users-table td.admin-user-cell .admin-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  background: #eef1f7;
}
.admin-users-table td.admin-user-cell .admin-user-avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
html[dir=rtl] .admin-users-table td.admin-user-cell { text-align: center; }

/* -------------------------------------------------------------------
   Count badge — square "button" instead of round brackets (0) → [0]
   Used in listing-nav tabs, side-nav dispute counters, profile tabs.
------------------------------------------------------------------- */
.wv-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-inline-start: 6px;
  border-radius: 7px;
  border: 1px solid #dbe1f4;
  background: #eef1fb;
  color: var(--wv-primary, #4f46e5);
  font-family: var(--wv-font, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 600;
  font-style: normal; /* в табах профилей бейдж завёрнут в <em> — гасим курсив-«наклон» */
  line-height: 1;
  letter-spacing: 0;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(15, 23, 42, .06);
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
a:hover > .wv-count,
a:focus > .wv-count,
a.active > .wv-count,
.listing-nav li a.active .wv-count {
  background: var(--wv-grad, linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 6px rgba(79, 70, 229, .35);
}
a:hover > .wv-count { transform: translateY(-1px); }
em > .wv-count { margin-inline-start: 4px; }
/* inside solid coloured buttons (side-nav disputes) — keep it readable */
.kafe-btn .wv-count {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
  box-shadow: none;
}
.kafe-btn:hover .wv-count {
  background: rgba(255, 255, 255, .32);
  color: #fff;
}
html[dir=rtl] .wv-count { margin-inline-start: 6px; }
@media (max-width: 767px) {
  .wv-count { min-width: 20px; height: 20px; padding: 0 5px; font-size: 11px; }
}
/* Табы профилей (navbar-box): бейдж обёрнут в <em> — убираем курсив и
   центрируем его по вертикали во флекс-пилюле (vertical-align: middle
   внутри узкого line-box приподнимал бейдж относительно текста). */
.navbar-box ul li a em {
  display: inline-flex;
  align-items: center;
  font-style: normal;
}

/* --- Мои предложения: кнопки редактировать/удалить не слипаются при переносе --- */
.withdraw-bid-inner .kafe-btn { margin: 4px 5px; }

/* --- Мои предложения: карточка целиком кликабельна (переход на редактирование) --- */
.withdraw-box.wv-prop-card.is-editable { cursor: pointer; }
.withdraw-box.wv-prop-card.is-editable:focus-visible {
  outline: 2px solid var(--wv-primary);
  outline-offset: 3px;
}
/* «Переливание» при наведении переехало с кнопки «редактировать» на «удалить» */
.wv-btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.wv-btn-shine::before {
  content: '';
  position: absolute;
  top: 0; left: -90%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
  z-index: 1;
}
.wv-btn-shine:hover::before, .wv-btn-shine:focus::before { left: 140%; }
.wv-btn-shine > * { position: relative; z-index: 2; }

/* --- Мои предложения: обложка как на карточках страницы услуги --- */
.withdraw-box .withdraw-description { display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
.withdraw-box .withdraw-description h4 { margin: 0; line-height: 1.4; }
/* История платежей/эскроу/выводы (2026-11-16): описание по вертикали в центре
   белой ячейки — высоту карточки задаёт серый блок слева, а текст раньше
   прижимался к верху с пустотой снизу. padding-top 15px = базовому снизу,
   иначе центровка уезжает на 2.5px вверх. */
.withdraw-box .withdraw-details { display: flex; align-items: center; padding-top: 15px; }
/* обложка + название по вертикали в середине строки (левая серая колонка и так по центру) */
.withdraw-box.wv-prop-card .withdraw-details { display: flex; align-items: center; }
.wv-prop-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 64px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #eef0f6;
  border: 1px solid rgba(17, 24, 39, .08);
}
@media (max-width: 600px) {
  .wv-prop-thumb { width: 76px; height: 52px; }
}
/* --- Мои предложения: информация о проекте в карточке (2026-11-17)
   Описание проекта в 2 строки + мета-строка: рубрика, бюджет проекта,
   дата отправки отклика. Заполняет пустую зону правее названия. --- */
.wv-prop-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
/* Специфичность выше вендорного style.css (`.withdraw-box .withdraw-description p`,
   font-size 14px / margin 15px 0 0 / #7a7b7c) — иначе описание и мета берут его стили. */
.withdraw-box .withdraw-description .wv-prop-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}
.withdraw-box .withdraw-description .wv-prop-info__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.withdraw-box .withdraw-description .wv-prop-info__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 2px;
}
.withdraw-box .withdraw-description .wv-prop-info__meta .fa { color: #94a3b8; margin-right: 6px; }
[dir="rtl"] .withdraw-box .withdraw-description .wv-prop-info__meta .fa { margin-right: 0; margin-left: 6px; }
/* Кнопка «Добавить предложение» перенесена под список (2026-11-17). */
/* Кнопка «Удалить» — правая колонка карточки предложения (2026-11-19).
   Перенесена из левой серой колонки под сумму и показывается у каждого
   предложения, включая принятые заказчиком. */
.wv-prop-actions {
  flex: 0 0 auto;
  margin-inline-start: auto;
  padding-inline-start: 14px;
  display: flex;
  align-items: center;
}
.wv-prop-actions .delete_proposal { margin: 0; }
@media (max-width: 600px) {
  .withdraw-box.wv-prop-card .withdraw-details { flex-wrap: wrap; }
  .wv-prop-actions {
    margin-inline-start: 0;
    padding: 10px 0 0;
    width: 100%;
  }
}
.wv-prop-add { text-align: center; margin-top: 25px; }
/* Кнопки в правой колонке карточки предложения (/client/proposals):
   «Нанять» и «Отправить сообщение». Одинаковый размер (на всю ширину
   колонки, одна высота) и обмен цвета́ми: «Нанять» — фиолетовый градиент
   (главное действие), «Отправить сообщение» — жёлтый (второстепенное).
   Исходно было наоборот: «Нанять» жёлтая, сообщение — mint-градиент. */
.proposal-bid .proposal-bid-inner > .kafe-btn {
  display: flex !important;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13.5px !important;
  line-height: 1.25;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proposal-bid .proposal-bid-inner > .kafe-btn + .kafe-btn,
.proposal-bid .proposal-bid-inner .wv-prop-msg { margin-top: 10px; }

/* «Нанять» — главная кнопка, фиолетовый градиент (было жёлтым) */
.proposal-bid .proposal-bid-inner .wv-prop-hire,
.proposal-bid .proposal-bid-inner .wv-prop-hire:hover,
.proposal-bid .proposal-bid-inner .wv-prop-hire:focus {
  background: var(--wv-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -6px rgba(79,70,229,.45), inset 0 1px 0 rgba(255,255,255,.18) !important;
}
.proposal-bid .proposal-bid-inner .wv-prop-hire:hover,
.proposal-bid .proposal-bid-inner .wv-prop-hire:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(79,70,229,.55), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

/* «Отправить сообщение» — второстепенная кнопка, жёлтая (было фиолетовой) */
.proposal-bid .proposal-bid-inner .wv-prop-msg,
.proposal-bid .proposal-bid-inner .wv-prop-msg:hover,
.proposal-bid .proposal-bid-inner .wv-prop-msg:focus {
  background: #febe42 !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -8px rgba(254,190,66,.6) !important;
}
.proposal-bid .proposal-bid-inner .wv-prop-msg:hover,
.proposal-bid .proposal-bid-inner .wv-prop-msg:focus {
  background: #e4ab3b !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(228,171,59,.65) !important;
}

/* Метка последней активности под аватаром в левой колонке карточки
   предложения (/client/proposals). Колонка узкая и сжимается по
   содержимому, поэтому текст переносится и ограничен шириной аватара. */
.proposal-img .wv-chat-seen {
  display: block;
  width: 100px;
  max-width: 100px;
  margin: 8px auto 0;
  text-align: center;
  white-space: normal;
  font-size: 11px;
  line-height: 1.35;
}

/* --- Фонды: описание строки по центру своей ячейки (flex-start выше — только для «Моих предложений») --- */
.withdraw-box.wv-fund .withdraw-details { display: flex; align-items: center; padding-top: 15px; }
.withdraw-box.wv-fund .withdraw-description { justify-content: center; text-align: center; }

/* =====================================================================
   Обложка заказа в карточках /projects (2026-10-29, флекс с 2026-11-16)
   Картинка, которую заказчик приложил к проекту. Раньше обложка была
   float:left и текст обтекал её: длинное слово-заголовок не влезало
   рядом и падало ПОД картинку (картинка — отдельной строкой), а на
   узких ширинах заголовок вылезал за край карточки; строки меты,
   пересекавшие нижний край float, прыгали. Теперь — стабильная флекс-
   строка: обложка слева, весь текст в отдельной колонке (в RTL —
   зеркально), длинные заголовки переносятся внутри колонки.
   ===================================================================== */
.job-box .job-box-description {
  display: flex;
  align-items: flex-start;
}
.wv-proj-thumb {
  flex: 0 0 auto;
  /* display:block + float:left — на карточках кабинета (project-box) обёртка НЕ flex,
     inline-спан сжимался в тонкую вертикальную линию из бордеров (2026-11-16).
     В flex-обёртке job-box float игнорируется — витрина /projects не затронута. */
  display: block;
  float: left;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #eef0f6;
  border: 1px solid rgba(17, 24, 39, .08);
  margin: 2px 16px 2px 0;
}
.job-box .wv-proj-body {
  flex: 1 1 auto;
  min-width: 0; /* даёт длинному слову-заголовку переноситься, а не распирать карточку */
}
.job-box h3.job-box-title { overflow-wrap: anywhere; }
/* карточка без обложки: слот скрыт, но место держит — текст в одной колонке
   с карточками, у которых обложка есть */
.job-box .wv-proj-thumb--ph { visibility: hidden; }
[dir="rtl"] .wv-proj-thumb {
  float: right;
  margin: 2px 0 2px 16px;
}
@media (max-width: 600px) {
  .wv-proj-thumb { width: 64px; height: 64px; margin: 2px 12px 0 0; }
  [dir="rtl"] .wv-proj-thumb { margin: 2px 0 0 12px; }
}
/* Мобайл ≤600px: обложка в карточках кабинета центрируется по высоте
   текстовой колонки («Мои проекты»/«Завершённые»/«Споры» — просили
   «опустить ниже», как на десктопе ≥601px, где она сдвинута margin-top).
   Фиксированный margin не годится — высота колонки плавает вместе с
   длиной заголовка (1–2 строки). Скоуп через :has(> .wv-proj-body):
   в карточках заказчика .project-btns лежит внутри .project-description,
   и flex-строка сломала бы кнопки — там обложка остаётся прижатой к верху. */
@media (max-width: 600px) {
  .project-box .project-description:has(> .wv-proj-body) {
    display: flex;
    align-items: center;
  }
  .project-box .project-description:has(> .wv-proj-body) .wv-proj-thumb:not(.wv-proj-thumb--sm) {
    float: none;
    margin: 0 12px 0 0;
  }
  [dir="rtl"] .project-box .project-description:has(> .wv-proj-body) .wv-proj-thumb:not(.wv-proj-thumb--sm) {
    margin: 0 0 0 12px;
  }
}
/* Витрина (/projects): обложка опущена вниз — её низ на уровне последней
   мета-строки карточки (отступ 45px, низ = верх слота + 137px; 2026-11-18).
   Скоуп .job-box: в кабинете (.project-box) и строках .wv-proj-line тот же
   класс остаётся прижатым к верху. RTL-дубль перебивает базовое
   [dir="rtl"]-правило по специфичности независимо от порядка. */
.job-box .wv-proj-thumb { margin-top: 45px; }
[dir="rtl"] .job-box .wv-proj-thumb { margin-top: 45px; }
/* Компактная обложка рядом с названием проекта в списках: споры,
   уведомления, сообщения, чат, файлы, эскроу, рейтинги. Крупная
   .wv-proj-thumb остаётся в карточках дашборда и каталога. */
.wv-proj-thumb--sm {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  margin: 0;
  float: none;
}
[dir="rtl"] .wv-proj-thumb--sm { margin: 0; float: none; }
/* --- Компактный блок цены в карточках .job-box (2026-11-21) ---
   Вендорный style.css: .job-box-bid-inner padding 35px, .job-box-offers
   margin-bottom 15px, на мобиле (≤768) ещё +30px вертикального паддинга —
   серая зона «цена/Бюджет/кнопка» занимала треть карточки. Паддинги ужаты,
   на мобиле цена и «Бюджет» в одну строку, кнопка/статус прижаты вправо.
   Одна разметка на витрине /projects, поиске по рубрике и профилях —
   правка действует на все четыре шаблона. */
.job-box-bid-inner { padding: 16px 18px; }
.job-box-bid .job-box-offers { margin-bottom: 6px; }
@media (max-width: 768px) {
  .job-box-bid { padding: 0; }
  .job-box-bid-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
  }
  .job-box-bid .job-box-offers { margin-bottom: 0; }
  .job-box-bid .job-box-offers h4,
  .job-box-bid .job-box-offers span { display: inline-block; vertical-align: baseline; }
  .job-box-bid .job-box-offers h4 { margin-right: 8px; }
  [dir="rtl"] .job-box-bid .job-box-offers h4 { margin-right: 0; margin-left: 8px; }
}
/* Строка «картинка + название». Во Flex direction идёт за dir,
   поэтому в RTL обложка сама встаёт справа. */
.wv-proj-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  column-gap: 12px;
  row-gap: 6px;
}
/* В шапке кабинета строка с обложкой прилипала к заголовку h3 —
   картинка 46px выше строки h4 (line-height:26px) и начиналась сразу
   под h3. Небольшой отступ сверху отделяет её от заголовка. */
.dashboard .headline > .wv-proj-line { margin-top: 8px; }
.wv-proj-line > .wv-proj-thumb { float: none; }
.wv-proj-line__text { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .wv-proj-thumb--sm { width: 38px; height: 38px; }
}
/* карточки кабинета заказчика (dashboard/in-progress/completed/disputed):
   там обложка осталась float:left — кнопки идут отдельной строкой ПОД ней */
.project-box .project-description { display: flow-root; } /* содержит float обложки (2026-11-16) */
.project-box .project-btns { clear: both; }
/* Весь текст карточки (заголовок, суммы, «Дата найма»…) — в колонке
   .wv-proj-body рядом с float-обложкой. BFC-сосед float не перекрывает:
   НИ ОДНА строка не уходит влево под обложку, даже ниже её нижнего края —
   раньше «Дата найма/завершения» начинались вровень с картинкой
   (2026-11-18, «все надписи за красной чертой»). */
.project-box .wv-proj-body { display: flow-root; min-width: 0; }
/* и заголовок там же: длинное слово не должно распирать карточку */
.project-box .project-title h3 { overflow-wrap: anywhere; }
/* Кабинет: обложка опущена ниже — примерно по центру высоты текстовой
   колонки (30px при обложке 92px и колонке ~150px; 2026-11-18, было 15px —
   низ вровень с последней строкой). Сдвиг именно margin-ом (в потоке),
   position:relative проверяли — на карточках с 4 строками рядом
   (эскроу-заказы) он накрывал верх «Дата найма». Мобайл ≤600px
   (обложка 64px) не сдвигается. */
@media (min-width: 601px) {
  .project-box .project-description .wv-proj-thumb:not(.wv-proj-thumb--sm) { margin-top: 30px; }
}

/* ---- «Мои проекты»: клик по карточке проваливает в настройки проекта ---- */
.project-box[data-wv-edit] { cursor: pointer; }
.project-box[data-wv-edit]:hover {
  box-shadow: 0 10px 30px rgba(17, 24, 39, .10);
}
.project-box[data-wv-edit] .project-icons a { color: inherit; }
.project-box[data-wv-edit] .project-icons a:hover { color: #00C4CF; }
/* Подкатегория (услуга) в карточке проекта — своя строка ПОД мета-рядом
   (последний li растянут на всю ширину, у остальных li inline-block; 2026-11-18).
   Работает и в «Моих проектах» исполнителя ([data-wv-edit]), и в карточках
   открытых заказов на дашборде заказчика. */
.project-box .project-icons li.wv-proj-subcat {
  display: block;
  width: 100%;
  margin: 2px 0 0;
}

/* ---- How page illustrations: скруглённый прямоугольник вместо круга ---- */
.wv-how-ill {
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
}
@media (max-width: 768px) {
  .wv-how-ill { border-radius: 20px; }
}

/* ---- Предложение: кнопка «Отправить сообщение заказчику» (2026-10-30)
   <details> под карточкой заказчика на /freelancer/proposals/add —
   клик по кнопке раскрывает форму первого сообщения (чат без проекта) ---- */
.wv-msg-client { margin-top: 14px; }
.wv-msg-client summary {
  display: block;
  list-style: none;
  overflow: hidden;
}
.wv-msg-client summary::-webkit-details-marker { display: none; }
.wv-msg-client summary i.fa { margin-right: 6px; }
.wv-msg-client__form { margin-top: 12px; }
.wv-msg-client__form textarea { margin-bottom: 12px; }
[dir="rtl"] .wv-msg-client summary i.fa { margin-right: 0; margin-left: 6px; }
/* ==========================================================================
   Share & earn (client cabinet): hero banner, steps, network buttons
   ========================================================================== */

.wv-share-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--wv-radius-lg);
  background: var(--wv-grad);
  color: #fff;
  padding: 40px 38px 36px;
  margin-bottom: 26px;
  box-shadow: 0 18px 40px rgba(79, 70, 229, .25);
}
.wv-share-hero::after {
  content: "";
  position: absolute;
  top: -90px;
  inset-inline-end: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
  pointer-events: none;
}
.wv-share-hero__icons { display: flex; gap: 10px; margin-bottom: 16px; }
.wv-share-hero__orb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
}
.wv-share-hero__orb svg { width: 20px; height: 20px; fill: #fff; }
.wv-share-hero__title { color: #fff; font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.wv-share-hero__sub { color: rgba(255, 255, 255, .86); font-size: 15.5px; margin: 0 0 24px; max-width: 640px; }
.wv-share-hero__facts { display: flex; flex-wrap: wrap; gap: 14px; }
.wv-share-fact {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--wv-radius);
  padding: 12px 18px;
  /* Все три плашки одной ширины: базовая ширина 0 + равный рост. */
  flex: 1 1 0;
  min-width: 150px;
}
.wv-share-fact b { display: block; font-size: 22px; font-weight: 800; color: #fff; }
/* Только подпись плашки: вложенный span с суммой баланса должен наследовать
   размер b, иначе "₽0" выпадает мелким шрифтом рядом с "₽12691" и "25%". */
.wv-share-fact > span { font-size: 12.5px; color: rgba(255, 255, 255, .78); }
/* Вложенный span с балансом наследует размер b: ₽0 не должен быть мельче ₽12691 и 25%. */
.wv-share-fact b .wv-bonus-value { font-size: inherit; font-weight: inherit; color: inherit; }

/* Steps */
.wv-share-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.wv-share-step {
  position: relative;
  background: var(--wv-card);
  border: 1px solid var(--wv-line);
  border-radius: var(--wv-radius);
  padding: 18px 20px;
}
.wv-share-step__num {
  position: absolute;
  top: -12px;
  inset-inline-start: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wv-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--wv-shadow-sm);
}
.wv-share-step h4 { margin: 8px 0 6px; font-size: 15px; font-weight: 700; color: var(--wv-text); }
.wv-share-step p { margin: 0; font-size: 13.5px; color: var(--wv-muted); }

/* Network buttons */
.wv-share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.wv-share-btn {
  --sn: #4f46e5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--wv-card);
  border: 1.5px solid var(--wv-line);
  border-radius: var(--wv-radius);
  padding: 18px 10px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.wv-share-btn:hover {
  transform: translateY(-3px);
  border-color: var(--sn);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
}
.wv-share-btn:focus { outline: none; border-color: var(--sn); }
.wv-share-btn__ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sn);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wv-share-btn__ico svg { width: 22px; height: 22px; fill: #fff; }
.wv-share-btn__name { font-size: 14px; font-weight: 600; color: var(--wv-text); }
.wv-share-btn__badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--wv-primary);
  background: var(--wv-grad-soft);
  border-radius: 999px;
  padding: 4px 10px;
}
.wv-share-btn.is-done { border-color: var(--wv-success); }
.wv-share-btn.is-done .wv-share-btn__badge { color: var(--wv-success); background: rgba(16, 185, 129, .12); }
.wv-share-btn.is-done .wv-share-btn__ico { opacity: .6; }
.wv-share-note { color: var(--wv-muted); font-size: 12.5px; margin-top: 12px; }

/* ---- Verified share workflow (2026-11-07) -------------------------------
   The network tiles are now plain links: no click handler, no bonus credit.
   Everything below belongs to the mandatory-condition block, the per-network
   verification code, the proof form and the claim status list.
   ------------------------------------------------------------------------ */
.wv-share-btn { text-decoration: none !important; color: inherit; }
.wv-share-btn:hover, .wv-share-btn:focus { text-decoration: none !important; color: inherit; }
.wv-share-btn.is-pending .wv-share-btn__badge { color: var(--wv-primary); background: var(--wv-grad-soft); }
.wv-share-btn.is-submitted { border-color: #f59e0b; }
.wv-share-btn.is-submitted .wv-share-btn__badge { color: #b45309; background: rgba(245, 158, 11, .13); }
.wv-share-btn.is-rejected { border-color: #ef4444; }
.wv-share-btn.is-rejected .wv-share-btn__badge { color: #b91c1c; background: rgba(239, 68, 68, .12); }

.wv-share-requirement {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-inline-start: 4px solid #f97316;
  border-radius: var(--wv-radius);
  padding: 16px 20px;
  margin: 0 0 24px;
}
.wv-share-requirement strong { display: block; color: #9a3412; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.wv-share-requirement p { margin: 0; color: #7c2d12; font-size: 13.5px; line-height: 1.55; }

.wv-share-codebox,
.wv-share-proof,
.wv-share-claims {
  background: var(--wv-card);
  border: 1px solid var(--wv-line);
  border-radius: var(--wv-radius);
  padding: 20px 22px;
  margin: 0 0 20px;
}
.wv-share-codebox h3,
.wv-share-proof h3,
.wv-share-claims h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--wv-text); }
.wv-share-codebox > p,
.wv-share-proof > p { margin: 0 0 16px; font-size: 13.5px; color: var(--wv-muted); }
/* Heading, hint and «Copy text» share one row: the button is vertically
   centred on the text instead of sitting on its own line below it. */
.wv-share-codebox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 12px;
}
.wv-share-codebox__intro { min-width: 0; }
.wv-share-codebox__intro p {
  margin: 0;
  font-size: 13.5px;
  color: var(--wv-muted);
}
.wv-share-codebox__bar .wv-share-copy { flex: 0 0 auto; }
.wv-share-copy {
  background: var(--wv-grad);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.wv-share-copy:hover { filter: brightness(1.08); }
.wv-share-copy-text {
  width: 100%;
  background: var(--wv-grad-soft);
  border: 1px solid var(--wv-line);
  border-radius: var(--wv-radius);
  color: var(--wv-text);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 10px 14px;
  min-height: 44px;
  overflow: hidden;
  resize: none;
}

.wv-share-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-bottom: 18px; }
.wv-share-form-grid label { display: block; margin: 0; font-size: 13px; color: var(--wv-muted); }
.wv-share-form-grid label > span { display: block; margin-bottom: 6px; font-weight: 600; color: var(--wv-text); }
.wv-share-form-grid input,
.wv-share-form-grid select {
  width: 100%;
  background: var(--wv-card);
  color: var(--wv-text);
  border: 1px solid var(--wv-line);
  border-radius: var(--wv-radius);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}
.wv-share-form-grid input:focus,
.wv-share-form-grid select:focus { outline: none; border-color: var(--wv-primary); }
.wv-share-submit {
  background: var(--wv-grad);
  color: #fff;
  border: 0;
  border-radius: var(--wv-radius);
  padding: 11px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.wv-share-submit:hover { filter: brightness(1.08); }
.wv-share-submit:disabled { opacity: .6; cursor: wait; }

.wv-share-claims ul { list-style: none; margin: 0; padding: 0; }
.wv-share-claims li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--wv-line);
  font-size: 13.5px;
  color: var(--wv-text);
}
.wv-share-claims li:last-child { border-bottom: 0; }
.wv-share-claims li > span:first-child { flex: 1 1 160px; font-weight: 600; }
.wv-share-claims li small { flex: 1 1 100%; color: var(--wv-muted); font-size: 12px; }
.wv-share-status { border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wv-share-status.is-pending { color: var(--wv-muted); background: var(--wv-grad-soft); }
.wv-share-status.is-submitted { color: #b45309; background: rgba(245, 158, 11, .13); }
.wv-share-status.is-approved { color: var(--wv-success); background: rgba(16, 185, 129, .12); }
.wv-share-status.is-rejected { color: #b91c1c; background: rgba(239, 68, 68, .12); }

/* Administrator review cards for share claims */
.wv-admin-claim {
  border: 1px solid var(--wv-line);
  border-radius: var(--wv-radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  background: var(--wv-card);
}
.wv-admin-claim:last-child { margin-bottom: 0; }
.wv-admin-claim__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--wv-line);
  font-size: 13px;
  color: var(--wv-muted);
}
.wv-admin-claim__head strong { font-size: 15px; color: var(--wv-text); }
.wv-admin-claim__facts {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0 0 14px;
  font-size: 13px;
}
.wv-admin-claim__facts dt { font-weight: 600; color: var(--wv-muted); }
.wv-admin-claim__facts dd { margin: 0; word-break: break-word; color: var(--wv-text); }
.wv-admin-claim__facts dd small { display: block; color: var(--wv-muted); }
.wv-admin-claim .checkbox { margin: 6px 0; }
.wv-admin-claim .checkbox label { font-size: 13.5px; }
@media (max-width: 768px) {
  .wv-admin-claim__facts { grid-template-columns: 1fr; }
}

/* Promo tile on the client dashboard */
.wv-share-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--wv-grad);
  border-radius: var(--wv-radius);
  padding: 15px 20px;
  margin: 0 0 18px;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(79, 70, 229, .22);
}
.wv-share-promo:hover { text-decoration: none; transform: translateY(-1px); }
.wv-share-promo__ico {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.wv-share-promo__text { flex: 1; min-width: 0; }
.wv-share-promo__text b { display: block; font-size: 15.5px; font-weight: 700; color: #fff; }
.wv-share-promo__text small { font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.wv-share-promo__go {
  background: #fff;
  color: var(--wv-primary);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Баланс + бонус-бейдж в одной строке шапки кабинета.
   Легаси style.css форсирует display:block !important у span, поэтому пара
   собирается flex-контейнером, а не инлайн-спанами. */
.wv-dash-balance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* Bonus chip in the dashboard header (white pill on the light lavender banner) */
.wv-dash-bonus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .12);
}
/* style.css форсирует display:block !important, поэтому flex-gap не работает:
   отступ между суммой и иконкой задаём логическим margin (зеркалится в RTL). */
.wv-dash-bonus i { font-size: 14px; margin-inline-start: 8px; }

/* Sidenav accent for the share item */
.wv-nav-share a { font-weight: 600; }
.wv-nav-share a i { margin-inline-end: 6px; }

/* Legacy style.css shifts every navbar icon 5px down and paints it grey.
   On the active share pill the bullhorn must stay centred and inherit the white text. */
.tr-header--dash .navbar-nav > li.wv-nav-share > a i.fa {
  top: 0;
  color: inherit;
}

/* Иконки вкладок кабинета: иконка сверху, подпись под ней.
   Порядок задаётся через flex, поэтому разметка шаблонов и переводы не меняются.
   Подпись переносится по словам: вторая строка уходит под первую. */
.tr-header--dash .navbar-left ul.navbar-nav { column-gap: 0; row-gap: 4px; }
.tr-header--dash .navbar-nav > li { margin-inline: 0; }
.tr-header--dash .navbar-nav > li > a {
  display: flex !important;
  flex-direction: column;
  /* stretch, а не center: подпись — анонимный flex-элемент, при center она
     получает ширину по содержимому, и длинное слово (нем.
     «Benachrichtigungen») вылезает за колонку. При stretch подпись занимает
     всю ширину вкладки и переносится по словам; иконку центрируем отдельно. */
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  /* без этого длинное слово в подписи задаёт min-content и вкладка
     растягивает колонку (нем. «Benachrichtigungen» шире 106px) */
  min-inline-size: 0;
  padding-block: 8px !important;
  padding-inline: 7px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  /* длинные слова режем по правилам языка (lang у html — код BCP47),
     иначе немецкие подписи рвутся посередине без дефиса */
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* У выпадающих пунктов иконка и подпись обёрнуты в span. */
.tr-header--dash .navbar-nav > li.dropdown > a > span {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  max-inline-size: 96px;
  white-space: normal;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-align: center;
}
.tr-header--dash .navbar-nav > li > a i.fa,
.tr-header--dash .navbar-nav > li > a > span > i.fa {
  order: -1;
  flex: 0 0 auto;
  align-self: center;
  position: static;
  top: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  color: inherit;
  opacity: .8;
}
.tr-header--dash .navbar-nav > li.active > a i.fa,
.tr-header--dash .navbar-nav > li > a:hover i.fa { opacity: 1; }

[dir="rtl"] .wv-share-hero::after { inset-inline-end: auto; inset-inline-start: -80px; }

@media (max-width: 768px) {
  .wv-share-hero { padding: 28px 20px; }
  .wv-share-hero__title { font-size: 23px; }
  .wv-share-hero__facts { gap: 10px; }
  .wv-share-fact { flex: 1 1 calc(50% - 5px); max-width: calc(50% - 5px); min-width: 0; padding: 10px 12px; }
  .wv-share-fact b { font-size: 18px; }
  .wv-share-how { grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
  .wv-share-grid { grid-template-columns: repeat(2, 1fr); }
  .wv-share-form-grid { grid-template-columns: 1fr; }
  .wv-share-codebox, .wv-share-proof, .wv-share-claims { padding: 16px; }
  .wv-share-promo { flex-wrap: wrap; }
  .wv-share-promo__go { width: 100%; text-align: center; }
}

/* ---------------------------------------------------------------------
   Панель вкладок кабинета: плавающий док с мягкими плашками иконок.
   Иконки сверху, подписи под ними. Кнопка «Споры» стоит над
   доком справа и выравнивается по его правому краю.
--------------------------------------------------------------------- */
.tr-header--dash {
  background: #f6f7fb !important;
  border: 0 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04) !important;
}
.tr-header--dash .navbar {
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
.tr-header--dash .container {
  width: calc(100% - 32px) !important;
  max-width: 1250px !important;
  margin: 0 auto !important;
  padding: 14px 24px 18px !important;
  align-items: flex-start;
}
.tr-header--dash .navbar-left { width: 100%; }
.tr-header--dash .navbar-collapse {
  background: linear-gradient(180deg, #fff 0%, #fbfbff 100%) !important;
  border: 1px solid rgba(79, 70, 229, .12) !important;
  border-radius: 26px !important;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .04) !important;
  padding: 7px !important;
  margin: 0 !important;
}
.tr-header--dash .navbar-left ul.navbar-nav {
  width: 100%;
  /* Равные колонки: каждая вкладка занимает одинаковую долю ряда,
     независимо от длины подписи. */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-content: center;
  gap: 2px !important;
}
/* clearfix-псевдоэлементы .nav стали бы лишними колонками сетки */
.tr-header--dash .navbar-left ul.navbar-nav::before,
.tr-header--dash .navbar-left ul.navbar-nav::after { display: none !important; }
/* Все вкладки одной высоты, поэтому плашки иконок стоят на одной линии
   у верхнего края. */
.tr-header--dash .navbar-nav > li { display: flex; align-items: stretch; }
.tr-header--dash .navbar-nav > li > a {
  flex: 1 1 auto;
  /* 12px и 4px по бокам: одиннадцать колонок по 106px оставляют подписи
     ~98px; при 13px/6px русское «депонирование» (103px) не влезало и
     рвалось посередине слова. */
  padding: 7px 4px !important;
  font-size: 12px !important;
  border-radius: 12px !important;
  gap: 5px !important;
}
.tr-header--dash .navbar-nav > li > a i.fa,
.tr-header--dash .navbar-nav > li > a > span > i.fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 8px;
  background: #f1f2ff;
  color: #6366f1 !important;
  font-size: 11px !important;
  opacity: 1;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.tr-header--dash .navbar-nav > li > a:hover {
  background: rgba(79, 70, 229, .06) !important;
  transform: translateY(-1px);
}
.tr-header--dash .navbar-nav > li > a:hover i.fa {
  background: rgba(79, 70, 229, .12);
  color: var(--wv-primary) !important;
}
.tr-header--dash .navbar-nav > li.active > a {
  background: var(--wv-grad) !important;
  box-shadow: 0 12px 24px -14px rgba(79, 70, 229, .8), inset 0 1px 0 rgba(255, 255, 255, .2) !important;
}
.tr-header--dash .navbar-nav > li.active > a i.fa {
  background: rgba(255, 255, 255, .18);
  color: #fff !important;
}
/* Счётчик непрочитанных на вкладках «Уведомления» и «Сообщения»:
   бейдж крепится к плашке иконки, а не к краю вкладки — иначе на широких
   колонках средних экранов он улетает далеко от иконки. */
.tr-header--dash .navbar-nav > li.wv-nav-alert > a > span.wv-tab-ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  inline-size: 24px;
  block-size: 24px;
}
.tr-header--dash .wv-tab-badge {
  position: absolute;
  top: -8px;
  inset-inline-end: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0;
  box-shadow: 0 2px 6px -2px rgba(225, 29, 72, .9);
  pointer-events: none;
}
/* Кружок непрочитанного — у правого верхнего угла плашки иконки.
   style.css (`.small .navbar-nav li.unread > a:before`) держал его у левого
   края по центру высоты: точка висела в промежутке между вкладками и
   читалась как чужая. Привязка к иконке (50% + половина плашки) работает
   при любой ширине кнопки — в доке, в сетке 5×2 и в мобильном списке. */
.tr-header--dash .navbar-nav > li.unread > a::before {
  top: 8px;
  left: calc(50% + 11px);
  right: auto;
  width: 7px;
  height: 7px;
  margin: 0;
}
[dir="rtl"] .tr-header--dash .navbar-nav > li.unread > a::before {
  left: auto;
  right: calc(50% + 11px);
}
.tr-header--dash .navbar-right {
  margin: 0 !important;
  margin-bottom: 10px !important;
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
}
.tr-header--dash .navbar-right .kafe-btn {
  margin: 0 !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  border-radius: 12px !important;
  border-color: #f6f7fb !important;
}

/* Ряд уже раскладывается сеткой на равные колонки; перенос даёт
   средний экран (6 в ряд ниже) и мобильное меню. */

/* На средних экранах одиннадцать вкладок в один ряд уже не влезают:
   раскладываем их по шесть в ряд (6 + 5 при одиннадцати пунктах, 6 + 4 при
   десяти). Флекс, а не сетка: неполный последний ряд центрируется, а не
   липнет влево с пустой колонкой справа. */
@media (min-width: 768px) and (max-width: 1099px) {
  .tr-header--dash .navbar-left ul.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px !important;
  }
  .tr-header--dash .navbar-left ul.navbar-nav > li {
    flex: 0 0 calc((100% - 10px) / 6);
    max-inline-size: calc((100% - 10px) / 6);
    justify-content: center;
  }
  .tr-header--dash .navbar-left ul.navbar-nav::before,
  .tr-header--dash .navbar-left ul.navbar-nav::after {
    display: none !important;
  }
}

/* Мобильное меню кабинета: компактная сетка в две колонки вместо
   столбика на всю ширину. В каждой ячейке иконка стоит слева от
   подписи, поэтому шесть пунктов занимают три невысоких ряда. */
@media (max-width: 767px) {
  .tr-header--dash .navbar-left ul.navbar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    align-items: stretch;
    justify-content: stretch;
    /* row-gap побольше: активная пилюля с тенью не должна задевать
       ряд ниже (было 2px по вертикали). */
    gap: 6px 2px !important;
    /* Bootstrap на мобильных задаёт .navbar-nav margin: 7.5px -15px.
       При width:100% список уезжал влево на 15px и плашка активной
       вкладки выступала за левый край белой карточки. */
    margin: 0 !important;
  }
  .tr-header--dash .navbar-left ul.navbar-nav::before,
  .tr-header--dash .navbar-left ul.navbar-nav::after { display: none !important; }
  .tr-header--dash .navbar-nav > li { min-inline-size: 0; }
  .tr-header--dash .navbar-nav > li > a,
  .tr-header--dash .navbar-nav > li.dropdown > a > span {
    /* иконка слева, подпись справа: пункт ниже, чем колонка с иконкой
       сверху, а длинная подпись переносится рядом со своей иконкой */
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: start;
    gap: 7px !important;
    max-inline-size: none;
    min-inline-size: 0;
    padding: 7px 8px !important;
    /* Подпись сжимается вместе с колонкой: на 414px — 12.5px, на 360px —
       около 11px, на 320px — 10.5px. */
    font-size: clamp(10.5px, 3.05vw, 12.5px) !important;
    line-height: 1.2 !important;
    white-space: normal;
    /* Перенос только по словам (плюс автопереносы по языку): anywhere рвал
       русское «Уведомления» пополам без дефиса. */
    overflow-wrap: break-word;
    word-break: normal;
  }
  .tr-header--dash .navbar-nav > li.dropdown > a > span { padding: 0 !important; }
  .tr-header--dash .navbar-nav > li > a i.fa,
  .tr-header--dash .navbar-nav > li > a > span > i.fa {
    align-self: center;
    flex: 0 0 auto;
  }
  /* На мобильных тень активной вкладки компактнее: 0 12px 24px -14px
     давала ореол высотой ~10px, который ложился на соседний ряд. */
  .tr-header--dash .navbar-nav > li.active > a {
    box-shadow: 0 4px 10px -6px rgba(79, 70, 229, .55), inset 0 1px 0 rgba(255, 255, 255, .2) !important;
  }
  /* Счётчик — в наружном углу плашки иконки: по внутреннему краю он
     наезжал на подпись. */
  .tr-header--dash .wv-tab-badge {
    top: -7px;
    inset-inline-end: auto;
    inset-inline-start: -7px;
  }
  /* Точка непрочитанного в строке привязана к плашке иконки, а не
     к середине вкладки: при иконке слева центр пришёлся бы на подпись. */
  .tr-header--dash .navbar-nav > li.unread > a::before {
    top: 50%;
    margin-top: -3.5px;
    left: 23px;
    right: auto;
  }
  [dir="rtl"] .tr-header--dash .navbar-nav > li.unread > a::before {
    left: auto;
    right: 23px;
  }
  /* Узкие телефоны (400px и меньше): колонка около 131px, поэтому плашка
     и отступы чуть меньше — иначе длинные подписи («Уведомления»,
     «Benachrichtigungen») не влезают в половину ряда. */
  @media (max-width: 400px) {
    .tr-header--dash .navbar-nav > li > a {
      padding: 6px 6px !important;
      gap: 5px !important;
      font-size: clamp(10.5px, 3vw, 12px) !important;
    }
    .tr-header--dash .navbar-nav > li > a i.fa,
    .tr-header--dash .navbar-nav > li > a > span > i.fa {
      width: 22px;
      height: 22px;
      font-size: 10.5px !important;
    }
    .tr-header--dash .navbar-nav > li.wv-nav-alert > a > span.wv-tab-ico {
      inline-size: 22px;
      block-size: 22px;
    }
    .tr-header--dash .wv-tab-badge { top: -6px; inset-inline-start: -6px; }
    .tr-header--dash .navbar-nav > li.unread > a::before { left: 21px; }
    [dir="rtl"] .tr-header--dash .navbar-nav > li.unread > a::before {
      left: auto;
      right: 21px;
    }
  }
  /* 320-340px: самый узкий из поддерживаемых экранов (iPhone SE 1). */
  @media (max-width: 340px) {
    .tr-header--dash .navbar-nav > li > a { padding: 5px !important; gap: 4px !important; }
    .tr-header--dash .navbar-nav > li > a i.fa,
    .tr-header--dash .navbar-nav > li > a > span > i.fa { width: 20px; height: 20px; font-size: 10px !important; }
    .tr-header--dash .navbar-nav > li.wv-nav-alert > a > span.wv-tab-ico {
      inline-size: 20px;
      block-size: 20px;
    }
  }
}

/* ---------------------------------------------------------------------
   Вложенное подменю кабинета: вместо всплывающего попапа — вторая
   строка внутри дока вкладок. Видна только в своём разделе
   (рендерится на сервере), контент сдвигается вниз, ничего не
   перекрывает.
--------------------------------------------------------------------- */
.tr-header--dash .wv-nav-sub {
  border-top: 1px solid rgba(79, 70, 229, .10);
  margin-top: 7px;
  padding: 7px 4px 2px;
}
.tr-header--dash .wv-nav-sub-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.tr-header--dash .wv-nav-sub-list::before,
.tr-header--dash .wv-nav-sub-list::after { display: none !important; }
.tr-header--dash .wv-nav-sub-list > li { margin: 0; float: none; }
.tr-header--dash .wv-nav-sub-list > li > a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.2;
  color: #4b5268;
  text-decoration: none;
  white-space: nowrap;
}
.tr-header--dash .wv-nav-sub-list > li > a:hover,
.tr-header--dash .wv-nav-sub-list > li > a:focus {
  background: rgba(79, 70, 229, .08);
  color: var(--wv-primary);
  text-decoration: none;
}
.tr-header--dash .wv-nav-sub-list > li.active > a {
  background: var(--wv-grad);
  color: #fff !important;
  box-shadow: 0 10px 20px -12px rgba(79, 70, 229, .8);
}
/* ---------------------------------------------------------------------
   Страница «Настройки» (кнопка ⚙ в шапке кабинета): «Страна и рынок» и
   «Смена роли» стоят рядом, под ними — разделы настроек в два столбца
   (те же пункты, что были во второй строке дока вкладок).
--------------------------------------------------------------------- */
.wv-settings-hub {
  background: #fff;
  border: 1px solid rgba(79, 70, 229, .10);
  border-radius: 16px;
  padding: 10px;
  max-width: 480px;
}
.wv-settings-list {
  /* Два столбца: сначала заполняется левый (1–4), затем правый (5–8). */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 4px 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.wv-settings-list::before,
.wv-settings-list::after { display: none !important; }
.wv-settings-list > li { margin: 0; float: none; }
.wv-settings-list > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #4b5268;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
}
.wv-settings-list > li > a:hover,
.wv-settings-list > li > a:focus {
  background: rgba(79, 70, 229, .08);
  color: var(--wv-primary);
  text-decoration: none;
}
.wv-settings-list .wv-set-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  background: rgba(79, 70, 229, .10);
  color: var(--wv-primary);
  font-size: 14px;
}
.wv-settings-list > li > a:hover .wv-set-ico,
.wv-settings-list > li > a:focus .wv-set-ico {
  background: var(--wv-grad);
  color: #fff;
}
.wv-settings-list .wv-set-label { flex: 1 1 auto; }
/* Карточка «Страна и рынок» в настройках исполнителя: один исполнитель
   работает только в одной стране, поэтому страну можно сменить здесь. */
.wv-country-settings {
  max-width: 480px;
  margin: 0 0 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(79, 70, 229, .10);
  border-radius: 16px;
}
.wv-country-settings-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.wv-country-settings-head .wv-set-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  background: rgba(79, 70, 229, .10);
  color: var(--wv-primary);
  font-size: 14px;
}
.wv-country-settings-title h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: #2f3446;
}
.wv-country-settings-title p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #777;
}
.wv-country-settings .form-group { margin-bottom: 10px; }
.wv-country-settings .help-block {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #777;
}
.wv-country-settings .kafe-btn { width: 100%; }
/* Раскладка страницы «Настройки» исполнителя: «Страна и рынок» и «Смена
   роли» — на одном уровне, в две равные колонки; список разделов под ними. */
.wv-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  max-width: 976px;
}
.wv-settings-grid > .wv-country-settings,
.wv-settings-grid > .wv-settings-hub {
  max-width: none;
  margin: 0;
}
.wv-settings-grid > .wv-settings-hub { grid-column: 1 / -1; }
@media (max-width: 767px) {
  .wv-settings-grid { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .wv-settings-list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}
/* 2026-11-21: стрелки .wv-set-arrow удалены из settings.php (запрос «Удали
   стрелки») — правила для них сняты, чтобы не держать мёртвый CSS. */
/* Кнопки в карточке приглашения: колонка по центру серой области —
   сверху ряд «Принять» + «Отклонить», под ним по центру «Посмотреть проект». */
.wv-invite-actions .proposal-bid-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
}
.wv-invite-actions .wv-invite-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Краткое описание проекта в карточке приглашения — под заголовком проекта. */
.wv-invite-desc {
  margin: 4px 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #777;
}

/* Кнопка «Обсуждение проекта» в карточке приглашения заказчика. */
.wv-invite-chat-btn {
  display: inline-block;
  margin-top: 10px;
  white-space: nowrap;
}

/* Проект удалён или закрыт заказчиком: вместо кнопок «Принять» / «Отклонить». */
.wv-invite-note {
  max-width: 280px;
  padding: 11px 15px;
  border: 1px solid #f4dcaa;
  border-inline-start: 4px solid var(--wv-warning);
  border-radius: var(--wv-radius-sm);
  background: #fffaf0;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

/* Уведомление заказчику о выпуске денег из депонирования на проекте «В разработке».
   Логические свойства вместо left/right сохраняют вид блока в RTL. */
.wv-escrow-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 12px;
  padding: 13px 15px;
  border: 1px solid #f4dcaa;
  border-inline-start: 4px solid var(--wv-warning);
  border-radius: var(--wv-radius-sm);
  background: #fffaf0;
}
.wv-escrow-notice__ico {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fdefd0;
  color: #b45309;
  font-size: 15px;
}
.wv-escrow-notice__text { flex: 1; min-width: 0; }
.wv-escrow-notice__text b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}
/* Перебиваем общий стиль .project-box .project-description p из style.css. */
.project-box .project-description .wv-escrow-notice p {
  margin: 5px 0 0;
  padding: 0;
  font-family: var(--wv-font);
  font-size: 13px;
  line-height: 1.55;
  color: #78551c;
}
.project-box .project-description .wv-escrow-notice p.wv-escrow-notice__fine {
  font-weight: 600;
}
@media (max-width: 767px) {
  .wv-escrow-notice { gap: 9px; padding: 11px 12px; }
  .wv-escrow-notice__ico { flex-basis: 26px; width: 26px; height: 26px; font-size: 13px; }
}

/* Кнопки в шапке «Мои проекты» (freelancer dashboard/completed/disputed).
   Перебиваем .dashboard .headline a / :hover из style.css (красная ссылка). */
.dashboard .headline a.kafe-btn {
  position: absolute;
  inset-inline-end: 0;
  bottom: -6px;
  padding: 8px 18px;
  font-family: var(--wv-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  border-radius: 4px;
  color: #fff !important;
}
.dashboard .headline a.kafe-btn::after {
  content: none;
}
.dashboard .headline a.kafe-btn:hover {
  color: #fff !important;
  background: #2cc78e !important;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .dashboard .headline a.kafe-btn {
    position: relative;
    inset-inline-end: auto;
    bottom: auto;
    margin-top: 10px;
    display: inline-block;
  }
}

/* Три кнопки в шапке «Мои проекты» в общем контейнере у края,
   противоположного заголовку. inset-inline-end двигает ряд влево в RTL —
   иначе кнопки накрывают заголовок. Контейнер перенимает абсолютное
   позиционирование одиночной кнопки, сами кнопки становятся обычными. */
.dashboard .headline .wv-headline-actions {
  position: absolute;
  inset-inline-end: 0;
  bottom: -6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard .headline .wv-headline-actions a.kafe-btn {
  position: static;
  bottom: auto;
}
/* Первая «Мои проекты» — минтовая (градиент бренда): перебиваем зелёный
   hover одиночной кнопки выше. Правило действует и на кнопку в контейнере
   .wv-headline-actions, и на одиночную кнопку «Добавить проект» прямо
   в .headline (dashboard/in_progress/completed/disputed). */
.dashboard .headline a.kafe-btn.kafe-btn-mint,
.dashboard .headline a.kafe-btn.kafe-btn-mint:hover {
  background: var(--wv-grad) !important;
  color: #fff !important;
}
/* ≤991px (контейнер 750px) ряд действий ведёт себя как на мобильных:
   обычный поток под заголовком. Было ≤768; расширено 2026-11-14, когда
   «История платежей» стала 4-й кнопкой на /withdrawals — в абсолютной
   позиции ряд не влезал, а перенос строк накрывал h4/h5. */
@media (max-width: 991px) {
  .dashboard .headline .wv-headline-actions {
    position: relative;
    inset-inline-end: auto;
    bottom: auto;
    margin-top: 10px;
    flex-wrap: wrap;
  }
}

/* «Мои предложения» — светлая, с фиолетовой обводкой: в шапке вкладок и
   (2026-11-17) в нижнем ряду /freelancer/dashboard/created рядом с
   «Создать проект» (пустое состояние — внутри .listing-info). Перебиваем
   белый текст .listing-info p a и зелёный hover одиночной кнопки выше. */
.dashboard .headline .wv-headline-actions a.kafe-btn.wv-btn-proposals,
.dashboard .wv-create-bottom a.kafe-btn.wv-btn-proposals,
.dashboard .listing-info a.kafe-btn.wv-btn-proposals,
.dashboard .headline .wv-headline-actions a.kafe-btn.wv-btn-proposals:hover,
.dashboard .wv-create-bottom a.kafe-btn.wv-btn-proposals:hover,
.dashboard .listing-info a.kafe-btn.wv-btn-proposals:hover {
  background: #fff !important;
  color: #6d4aff !important;
  border: 1px solid #d6ccff;
}
.dashboard .headline .wv-headline-actions a.kafe-btn.wv-btn-proposals:hover,
.dashboard .wv-create-bottom a.kafe-btn.wv-btn-proposals:hover,
.dashboard .listing-info a.kafe-btn.wv-btn-proposals:hover {
  background: #f3efff !important;
  transform: translateY(-1px);
}
/* «Создать проект» на /freelancer/dashboard/created (2026-11-17): кнопка
   перенесена из шапки вниз списка «Мои проекты», центрирована под карточками.
   В пустом состоянии кнопка остаётся внутри .listing-info. 2026-11-17: рядом
   «Мои предложения» — ряд стал flex с промежутком. */
.dashboard .wv-create-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 26px 0 14px;
}
/* Промежуток между кнопками в пустом состоянии (inline-flex в <p>). */
.dashboard .listing-info .kafe-btn {
  margin: 4px 5px;
}
/* Переключатель раздела «Деньги» (escrow/withdrawals, 2026-11-14): дропдаун
   пилюли «Деньги» заменён кнопками в шапке раздела — та же схема, что у
   «Мои предложения»: светлая с фиолетовой обводкой; активная — градиент. */
.dashboard .headline .wv-headline-actions a.kafe-btn.wv-money-tab,
.dashboard .headline .wv-headline-actions a.kafe-btn.wv-money-tab:hover {
  background: #fff !important;
  color: #6d4aff !important;
  border: 1px solid #d6ccff;
}
.dashboard .headline .wv-headline-actions a.kafe-btn.wv-money-tab:hover {
  background: #f3efff !important;
  transform: translateY(-1px);
}
.dashboard .headline .wv-headline-actions a.kafe-btn.wv-money-tab--active,
.dashboard .headline .wv-headline-actions a.kafe-btn.wv-money-tab--active:hover {
  background: var(--wv-grad) !important;
  color: #fff !important;
  border-color: transparent;
}
/* На узком десктопе три кнопки не влезают в шапку — ужимаем отступы. */
@media (min-width: 769px) and (max-width: 1199px) {
  .dashboard .headline .wv-headline-actions { gap: 6px; }
  .dashboard .headline .wv-headline-actions a.kafe-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}
/* «История платежей» — 4-я кнопка на /withdrawals (2026-11-14): на узком
   десктопе (контейнер 750px) ряд не влезает даже ужименный, а перенос
   строк в абсолютной позиции накрывает h4/h5. Поток под заголовком
   теперь включается до 991px (было 768 — см. правило выше). */

/* Шапка раздела «Деньги» (2026-11-14): на escrow/withdrawals/payments в шапке
   есть подписи h4/h5 («Сумма в вашем аккаунте…», «Платежи будут обработаны…»),
   и абсолютный ряд из 3–4 кнопок у правого края накрывал их на любой ширине.
   Здесь ряд переводим в обычный поток под заголовком: подписи опускаются ниже
   кнопок и перекрываться нечему. У «Моих проектов»/«Моих предложений» подписей
   в шапке нет — там абсолютная позиция остаётся. */
.dashboard .headline.wv-headline-money {
  padding-right: 0;
}
/* Подпись «Деньги у …» по центру (2026-11-19): на /freelancer/escrow и
   /client/escrow h5 стоял прижат влево под рядом вкладок. */
.dashboard .headline.wv-headline-money h5 {
  text-align: center;
}
/* Заголовок раздела по центру (2026-11-19): «Деньги» стоял прижат к краю
   (в RTL — вправо), центр — вместе с h5 и вкладками. */
.dashboard .headline.wv-headline-money h3 {
  text-align: center;
}
/* Ряд вкладок по центру (2026-12-02): кнопки стояли прижатыми к правому
   краю (flex-end) при уже центрированных h3/h5 — ряд выезжал за карточку.
   Центр совпадает с заголовком и подписью. */
.dashboard .headline.wv-headline-money .wv-headline-actions {
  position: static;
  inset-inline-end: auto;
  bottom: auto;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* История операций клиента /client/payments (2026-11-14): бейдж направления
   операции. «+» — пришло на баланс (зелёный), «−» — ушло с баланса (красный),
   «⌛» — ждёт подтверждения (серый). RTL не ломается: бейдж внутри
   .withdraw-bid-inner, поток тот же, что у суммы. */
.wv-op .wv-op-sign {
  display: inline-block;
  min-width: 28px;
  height: 28px;
  line-height: 26px;
  margin-inline-end: 10px;
  border-radius: 50%;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  vertical-align: middle;
}
.wv-op--in .wv-op-sign {
  background: #e6f7ed;
  color: #1f9d55;
  border: 1px solid #bfe8cf;
}
.wv-op--out .wv-op-sign {
  background: #fdeaea;
  color: #d33;
  border: 1px solid #f3c1c1;
}
.wv-op--hold .wv-op-sign {
  background: #f0f0f5;
  color: #888;
  border: 1px solid #ddd;
}
.wv-op--in h4:first-of-type i,
.wv-op--out h4:first-of-type i { opacity: .7; }
/* Сумма повторяет цвет бейджа направления: приход зелёный, расход красный,
   ожидание подтверждения серое. Так «что куда идёт» видно без чтения знака. */
.wv-op--in .withdraw-bid h4 { color: #1f9d55; }
.wv-op--out .withdraw-bid h4 { color: #d33; }
.wv-op--hold .withdraw-bid h4 { color: #888; }
/* Эскроу (2026-11-16): в строках /freelancer/escrow и /client/escrow название
   блока сверху, значение снизу. Три колонки делят ширину поровну на всю
   длину блока (flex:1), внутри каждой — подпись и значение столбиком:
   длинное название больше не переносится посреди строки. */
.wv-escrow-row .withdraw-description h4 {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.wv-escrow-row .wv-escrow-label {
  font-size: 12px;
  font-weight: 500;
  color: #9a9b9c;
  line-height: 1.3;
}
.wv-escrow-row .withdraw-description h4 a,
.wv-escrow-row .withdraw-description h4 span {
  display: inline-block;
  max-width: 100%;
}
/* Эскроу (2026-11-18): строка «обложка + название проекта» — обложка
   должна стоять В НАЧАЛЕ, слева от текста. Общий выбор выше
   (.wv-escrow-row .withdraw-description h4) ставит все колонки столбиком,
   из-за чего миниатюра оказывалась над подписью «Работа над». Возвращаем
   именно этой строке горизонтальный ряд: картинка слева, текст справа. */
.wv-escrow-row .withdraw-description h4.wv-proj-line {
  flex-direction: row;
  flex-wrap: nowrap;
  /* justify-content:center из общего правила выше центрировал одинокую
     обложку-заглушку (удалённый проект, 2026-11-19) — прижимаем влево,
     чтобы она стояла вровень с обложками соседних карточек. */
  justify-content: flex-start;
  align-items: center;
  column-gap: 10px;
}
.wv-escrow-row .withdraw-description h4.wv-proj-line > .wv-proj-thumb {
  flex: 0 0 auto;
}
.wv-escrow-row .withdraw-description h4.wv-proj-line .wv-proj-line__text {
  flex: 1 1 auto;
  min-width: 0;
}
/* Мобильная версия истории (2026-11-14): .withdraw-description унаследовал
   flex от карточек «Моих предложений» — на 390px колонки h4 не сжимались
   и текст обрезался по правому краю. Ниже строки идут одна под другой,
   а вкладки раздела растягиваются на всю ширину (удобно тапать). */
@media (max-width: 767px) {
  .wv-op .withdraw-details,
  .wv-escrow-row .withdraw-details { padding: 12px 16px 16px; }
  .wv-op .withdraw-description,
  .wv-escrow-row .withdraw-description { display: block; }
  .wv-op .withdraw-description h4,
  .wv-escrow-row .withdraw-description h4 { margin: 0 0 4px; line-height: 1.5; }
  .wv-op .withdraw-description h4:last-child,
  .wv-escrow-row .withdraw-description h4:last-child { margin-bottom: 0; }
  .dashboard .headline.wv-headline-money .wv-headline-actions { justify-content: flex-start; }
  .dashboard .headline.wv-headline-money .wv-headline-actions a.kafe-btn.wv-money-tab {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* 2026-11-09: шапка чата (.wv-headline-chat).
   style.css делает ВСЕ <a> внутри .dashboard .headline абсолютными
   (right:0; bottom:0), а правило .kafe-btn выше уводит кнопку в правый край
   шапки. В чате это ломало блок приглашения: «Принять» вылетала из жёлтой
   плашки и накрывала ссылку «Открыть проект» (от неё оставалось «Отк…»).
   Возвращаем ссылки в поток; 20%-й отступ справа (место под одну кнопку
   в шапках кабинета) здесь не нужен — плашка сама тянется на всю ширину. */
.dashboard .headline.wv-headline-chat { padding-right: 0; }
/* 2026-11-18: имя собеседника в шапке чата. Ссылка «Назад» остаётся
   внизу справа, блок собеседника — вверху справа. */
.dashboard .headline.wv-headline-with-partner { padding-right: 260px; }
.dashboard .headline .wv-chat-with {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 250px;
  text-align: right;
}
.dashboard .headline .wv-chat-with__label {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: #8a8d92;
}
.dashboard .headline .wv-chat-with__link,
.dashboard .headline .wv-chat-with__link:hover {
  position: static;
  inset: auto;
  right: auto;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333 !important;
  text-decoration: none;
}
.dashboard .headline .wv-chat-with__link::after { content: none; }
.dashboard .headline .wv-chat-with__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px #dfe3e8;
}
.dashboard .headline .wv-chat-with__name { overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .dashboard .headline.wv-headline-with-partner { padding-right: 0; }
  .dashboard .headline .wv-chat-with {
    position: static;
    align-items: flex-start;
    max-width: none;
    margin-top: 10px;
    text-align: left;
  }
}

.dashboard .headline.wv-headline-chat .wv-chat-project > a,
.dashboard .headline.wv-headline-chat .wv-invite-banner > a {
  position: static;
  inset: auto;
  right: auto;
  bottom: auto;
}
.dashboard .headline.wv-headline-chat .wv-chat-project > a {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #337ab7;
  text-decoration: underline;
}
.dashboard .headline.wv-headline-chat .wv-chat-project > a::after { content: none; }
.dashboard .headline.wv-headline-chat .wv-chat-project > a:hover {
  color: #23527c !important;
  text-decoration: underline;
}
/* Кнопка «Принять» — обычная жёлтая кнопка внутри плашки, а не «пилюля»
   в правом краю шапки: свой размер, свой hover. */
.dashboard .headline.wv-headline-chat .wv-invite-banner > a.kafe-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border: 1px solid #febe42;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  color: #fff !important;
  background: #febe42 !important;
}
.dashboard .headline.wv-headline-chat .wv-invite-banner > a.kafe-btn:hover {
  background: #f0ac2b !important;
  border-color: #f0ac2b;
  color: #fff !important;
  transform: none;
}
.dashboard .headline.wv-headline-chat .wv-invite-banner > a.kafe-btn::after { content: none; }

/* 2026-11-15: «Открыть проект» в шапке чата — кнопка-пилюля, а не
   подчёркнутая ссылка. Оставляем <a>: проект открывается в новой вкладке.
   Стиль повторяет кнопку «Назад» в шапках кабинета; hover перебивает
   color: #f46f80 !important из style.css и #23527c !important выше. */
.dashboard .headline.wv-headline-chat .wv-chat-project > a.wv-chat-project__btn {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid rgba(79, 70, 229, .25);
  border-radius: 999px;
  background: rgba(79, 70, 229, .08);
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--wv-primary) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
.dashboard .headline.wv-headline-chat .wv-chat-project > a.wv-chat-project__btn i.fa {
  font-size: 12px;
  line-height: 1;
}
.dashboard .headline.wv-headline-chat .wv-chat-project > a.wv-chat-project__btn::after {
  content: none;
}
.dashboard .headline.wv-headline-chat .wv-chat-project > a.wv-chat-project__btn:hover,
.dashboard .headline.wv-headline-chat .wv-chat-project > a.wv-chat-project__btn:focus {
  background: var(--wv-grad);
  border-color: transparent;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .55);
}
.dashboard .headline.wv-headline-chat .wv-chat-project > a.wv-chat-project__btn:focus-visible {
  outline: none;
  box-shadow: var(--wv-ring), 0 8px 18px -8px rgba(79, 70, 229, .55);
}
@media (max-width: 600px) {
  .dashboard .headline.wv-headline-chat .wv-chat-project > a.wv-chat-project__btn {
    padding: 7px 13px;
    font-size: 12.5px;
  }
}

/* 2026-11-08: скрытый file input мгновенной загрузки. Bootstrap задал
   input[type=file]{display:block} — он перебивает атрибут [hidden]. */
.wv-file-input {
  display: none !important;
}

/* 2026-11-08: кнопки действий в карточках найма (Добавить файлы / Начать спор /
   Завершить проект). Были розовыми текстовыми ссылками из style.css
   (.project-icons li a) — теперь мягкие пилюли в палитре темы.
   style.css ставит hover-цвет с !important, поэтому hover-цвета здесь тоже с !important. */
/* 2026-11-15: кнопки переносятся на несколько строк — нужен отступ и по вертикали.
   inline-block `<li>` давал только margin-right, поэтому «Добавить файлы» и
   «Принять работу» склеивались при переносе. */
.wv-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.wv-order-actions li { margin: 0; }
.wv-order-actions .wv-instant-file { display: inline-block; vertical-align: middle; }
/* 2026-11-19: действия по заказу перенесены в правую колонку карточки
   (.project-bid), под кнопку чата: столбиком, все одной ширины и высоты.
   Колонка 240px, поэтому кнопки тянутся на всю её ширину (li + форма
   загрузки + ссылки), текст центрируется. */
.wv-order-actions--stack {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}
.wv-order-actions--stack li,
.wv-order-actions--stack .wv-instant-file {
  display: block;
  width: 100%;
  margin: 0;
}
.wv-order-actions--stack .wv-instant-file > a,
.wv-order-actions--stack li > a {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
}
/* Кнопка чата в той же колонке — такой же ширины, что и действия ниже. */
.project-box .project-bid .wv-dash-chat-btn {
  display: block;
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  text-align: center;
}
.wv-order-actions a.wv-act-files,
.wv-order-actions a.wv-act-dispute,
.wv-order-actions a.wv-act-rework,
.wv-order-actions a.wv-act-complete,
.wv-order-actions a.wv-act-release,
.wv-order-actions a.wv-dl-project {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wv-order-actions a.wv-act-files i,
.wv-order-actions a.wv-act-dispute i,
.wv-order-actions a.wv-act-rework i,
.wv-order-actions a.wv-act-complete i,
.wv-order-actions a.wv-act-release i,
.wv-order-actions a.wv-dl-project i {
  font-size: 13px;
  margin: 0;
  position: static;
}
.wv-order-actions a.wv-act-files {
  background: rgba(79, 70, 229, .08);
  border-color: rgba(79, 70, 229, .25);
  color: #4f46e5;
}
.wv-order-actions a.wv-act-files:hover,
.wv-order-actions a.wv-act-files:focus {
  background: var(--wv-grad);
  border-color: transparent;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .55);
}
.wv-order-actions a.wv-act-dispute {
  background: rgba(239, 68, 68, .07);
  border-color: rgba(239, 68, 68, .25);
  color: #dc2626;
}
.wv-order-actions a.wv-act-dispute:hover,
.wv-order-actions a.wv-act-dispute:focus {
  background: var(--wv-danger);
  border-color: transparent;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(239, 68, 68, .55);
}
/* 2026-11-15: «Отправить на доработку» — янтарная пилюля,
   между красной «Начать спор» и зелёной «Принять работу». */
.wv-order-actions a.wv-act-rework {
  background: rgba(245, 158, 11, .09);
  border-color: rgba(245, 158, 11, .32);
  color: #b45309;
}
.wv-order-actions a.wv-act-rework:hover,
.wv-order-actions a.wv-act-rework:focus {
  background: #f59e0b;
  border-color: transparent;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(245, 158, 11, .6);
}
.wv-order-actions a.wv-act-complete {
  background: rgba(16, 185, 129, .08);
  border-color: rgba(16, 185, 129, .3);
  color: #059669;
}
.wv-order-actions a.wv-act-complete:hover,
.wv-order-actions a.wv-act-complete:focus {
  background: #10b981;
  border-color: transparent;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(16, 185, 129, .55);
}
/* 2026-11-15: «Скачать проект» после сдачи работы — сплошная индиго-пилюля
   (первая кнопка карточки, главное действие). */
.wv-order-actions a.wv-dl-project {
  background: #4f46e5;
  color: #fff;
}
.wv-order-actions a.wv-dl-project:hover,
.wv-order-actions a.wv-dl-project:focus {
  background: var(--wv-grad);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .55);
}
/* 2026-11-16: «Завершить» на карточке «в работе» — досрочный релиз эскроу
   (кнопка как в чате). Сплошная зелёная пилюля, главное действие карточки. */
.wv-order-actions a.wv-act-release {
  background: #10b981;
  color: #fff;
}
.wv-order-actions a.wv-act-release:hover,
.wv-order-actions a.wv-act-release:focus {
  background: #059669;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(16, 185, 129, .55);
}
@media (max-width: 600px) {
  .wv-order-actions { gap: 8px; }
  .wv-order-actions a.wv-act-files,
  .wv-order-actions a.wv-act-dispute,
  .wv-order-actions a.wv-act-rework,
  .wv-order-actions a.wv-act-complete,
  .wv-order-actions a.wv-act-release,
  .wv-order-actions a.wv-dl-project { padding: 7px 12px; font-size: 12.5px; }
}

/* 2026-11-08: «Назад» в шапках страниц кабинета — была розовой текстовой
   ссылкой со стрелкой из style.css (.dashboard .headline a, ::after \f178),
   теперь мягкая индиго-пилюля в стиле .wv-order-actions (тот же фон/hover).
   Селектор — прямой ребёнок .headline: вложенные ссылки (например,
   .wv-chat-project > a в чате) не задеваются, кнопки .kafe-btn исключены. */
.dashboard .headline > a:not(.kafe-btn) {
  position: absolute;
  right: 0;
  bottom: -6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid rgba(79, 70, 229, .25);
  border-radius: 999px;
  background: rgba(79, 70, 229, .08);
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #4f46e5;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.dashboard .headline > a:not(.kafe-btn)::before { content: none; }
.dashboard .headline > a:not(.kafe-btn)::after { content: none; }
.dashboard .headline > a:not(.kafe-btn):hover,
.dashboard .headline > a:not(.kafe-btn):focus {
  background: var(--wv-grad);
  border-color: transparent;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .55);
}
@media (max-width: 768px) {
  .dashboard .headline > a:not(.kafe-btn) {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 10px;
    display: inline-flex;
  }
}

/* =====================================================================
   Предложение: загрузка картинок (2026-11-09)
   Поле выбора файла слева, сохранённые и выбранные миниатюры — справа.
   ===================================================================== */
.wv-up-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.wv-up-row__field { min-width: 0; }
.wv-up-row__preview {
  min-width: 0;
}
.wv-up__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #64748b;
  margin-bottom: 8px;
}
.wv-up__label--new { margin-top: 12px; }
.wv-up__saved, .wv-up__new { display: flex; flex-wrap: wrap; gap: 8px; }
.wv-up__item {
  position: relative;
  display: block;
  margin: 0;
  width: 104px;
  font-weight: 400;
}
.wv-up__item img, .wv-up__new img {
  display: block;
  width: 104px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, .10);
  background: #eef0f6;
}
.wv-up__new img { outline: 2px dashed #a5b4fc; outline-offset: 2px; }
/* Одиночная картинка предложения показывается крупно — на всю ширину
   правой колонки, в размерах прежней рамки-плейсхолдера. */
.wv-up__new--big { display: block; }
.wv-up__new--big .wv-up__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef0f6;
  box-shadow: 0 2px 12px -6px rgba(15, 23, 42, .35);
}
.wv-up__new--big img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  object-fit: cover;
}
/* Крестик удаления в углу картинки. */
.wv-up__thumb-del {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .62);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.wv-up__thumb-del:hover,
.wv-up__thumb-del:focus-visible { background: rgba(220, 38, 38, .92); }
/* Плашка «удалить» лежит поверх миниатюры, чтобы не ломать сетку. */
.wv-up__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, .74);
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}
/* Свой чекбокс: нативный белый квадрат на тёмной плашке выглядел дырой.
   Селектор длиннее правила .add-box .form-group input[type=checkbox] из style.css,
   иначе 20×20 и белый фон побеждают. */
.add-box .form-group .wv-up__remove input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 3px;
  background: transparent;
  background-image: none;
  cursor: pointer;
}
.add-box .form-group .wv-up__remove input[type="checkbox"]:checked {
  background: #fff;
  background-image: none;
  border-color: #fff;
}
.add-box .form-group .wv-up__remove input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 2.5px;
  top: 0;
  width: 3px;
  height: 6px;
  border: solid #dc2626;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.wv-up__item:hover .wv-up__remove { background: rgba(185, 28, 28, .92); }
.wv-up__empty { color: #94a3b8; font-size: 13px; }
.wv-up__error { margin-top: 8px; color: #dc2626; font-size: 13px; font-weight: 600; }
.wv-up__label[hidden], .wv-up__error[hidden] { display: none; }
.wv-up__busy { opacity: .6; pointer-events: none; }
@media (max-width: 768px) {
  .wv-up-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Редактирование профиля: поля Название/Заглавие/Почта/Страна — по 2 в ряд */
.wv-edit-grid { margin: 0 -8px; }
.wv-edit-grid .col-md-6 { padding: 0 8px; }
.wv-edit-grid .form-group { margin-bottom: 18px; }
@media (max-width: 991px) {
  .wv-edit-grid { margin: 0; }
  .wv-edit-grid .col-md-6 { padding: 0; }
}

/* ==========================================================================
   Встроенный чат на странице проекта (home/project.php)
   Диалог растёт вниз: новых сообщений больше — окно длиннее.
   ========================================================================== */
.wv-pchat.content-base {
  margin-top: 25px;
  padding: 25px 40px 30px;
}
.wv-pchat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 18px;
}
.wv-pchat__title {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #00C4CF !important;
  margin: 0;
}
.wv-pchat__peer {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: #9aa0a6;
}
.wv-pchat__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.wv-pchat__msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 76%;
  min-width: 0;
}
.wv-pchat__msg.is-mine {
  align-self: flex-end;
  align-items: flex-end;
}
.wv-pchat__author {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: #9aa0a6;
  margin-bottom: 4px;
}
/* anywhere рвёт длинную строку без пробелов И уменьшает min-content (флекс-элемент
   перестаёт считаться шириной целого слова). НЕ добавлять word-wrap: break-word —
   это алиас того же свойства, он перебивает anywhere (2026-11-12). */
.wv-pchat__bubble {
  background: #f2f4f6;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: #4a4f55;
  overflow-wrap: anywhere;
}
.wv-pchat__msg.is-mine .wv-pchat__bubble {
  background: #e4f7f9;
  color: #33474b;
}
.wv-pchat__text p { margin: 0 0 8px; }
.wv-pchat__text p:last-child { margin-bottom: 0; }
.wv-pchat__files { margin-top: 8px; }
.wv-pchat__files img {
  display: block;
  max-width: 320px;
  max-height: 240px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.wv-pchat__file {
  display: inline-block;
  margin-bottom: 4px;
  color: #00a7b1;
  font-size: 14px;
}
.wv-pchat__time {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  color: #aab1b7;
  margin-top: 5px;
}
.wv-pchat__empty {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #9aa0a6;
  padding: 2px 0 6px;
}
.wv-pchat__form {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eef1f3;
}
.wv-pchat__input {
  display: block;
  width: 100%;
  min-height: 56px;
  max-height: 240px;
  resize: vertical;
  border: 1px solid #e3e7ea;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: #4a4f55;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s ease;
}
.wv-pchat__input:focus { border-color: #00C4CF; }
.wv-pchat__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.wv-pchat__actions .kafe-btn { margin: 0; }
.wv-pchat__send,
.wv-pchat__send:hover {
  background: #00C4CF !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 18px -8px rgba(0, 196, 207, .6), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.wv-pchat__send:hover { background: #00b3bd !important; transform: translateY(-1px); }
.wv-pchat__send:active { transform: translateY(0); }
.wv-pchat__send[disabled] { opacity: .6; cursor: default; transform: none; }
.wv-pchat__err {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: #e05a5a;
}
.wv-pchat__closed {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7f8f9;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #8a9096;
}
@media (max-width: 767px) {
  .wv-pchat.content-base { padding: 20px 18px 24px; }
  .wv-pchat__msg { max-width: 92%; }
  .wv-pchat__files img { max-width: 100%; }
}

/* ==============================================
   2026-11-09 /client/messages — статус принятого
   заказа (исполнитель нанят, работа не завершена)
   в строке диалога, справа от названия проекта
   ============================================== */
.wv-msgs .proposal-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.wv-msgs .proposal-details .proposal-description {
  flex: 0 1 auto;
  min-width: 0;
}
.wv-msg-status {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  max-width: 520px;
  padding: 9px 16px;
  border: 1px solid #dff0e4;
  border-radius: 999px;
  background: #f3faf5;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3f7d55;
  text-align: left;
}
.wv-msg-status i {
  font-size: 15px;
  color: #2fae63;
}
@media (max-width: 767px) {
  .wv-msgs .proposal-details {
    flex-direction: column;
    align-items: flex-start;
  }
  .wv-msg-status { max-width: 100%; }
}

/* ==============================================
   2026-11-11 /client/messages, /freelancer/messages
   — кнопка удаления диалога в строке списка,
   между деталями и кнопкой открытия чата.
   Селекторы без .wv-msgs: секция фрилансера не
   имеет этого класса. Форма растягивается на всю
   высоту строки, кнопка центрируется вертикально —
   на одной горизонтали с кнопкой открытия чата.
   ============================================== */
.wv-msg-del {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}
.wv-msg-del form {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  margin: 0;
}
.wv-msg-del-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #f0d9d9;
  border-radius: 999px;
  background: #fdf7f7;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #b04a4a;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.wv-msg-del-btn:hover,
.wv-msg-del-btn:focus {
  background: #fbeeee;
  border-color: #e3bcbc;
  color: #963636;
  text-decoration: none;
}
.wv-msg-del-btn i {
  font-size: 14px;
}
@media (max-width: 991px) {
  .wv-msg-del-btn span { display: none; }
  .wv-msg-del { padding: 0 12px; }
}

/* ==============================================
   2026-11-16 /freelancer/messages — текст последнего
   сообщения диалога в свободной зоне строки: цитата
   в стиле уведомлений (.wv-notif-note), справа от
   имени и названия проекта. Секция страницы получает
   класс .wv-msgs — раскладку строки даёт блок
   2026-11-09 выше; здесь только ширина превью.
   ============================================== */
.wv-msg-last {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
.wv-msg-last .wv-notif-note {
  margin: 0;
  width: 100%;
  min-width: 0;
}

/* ==============================================
   2026-11-18 /client/messages, /freelancer/messages
   — время последнего сообщения под кнопкой чата:
   по центру правой колонки и чуть ниже кнопки.
   ============================================== */
.wv-msgs .proposal-bid .proposal-bid-inner {
  text-align: center;
}
.wv-msgs .proposal-box .proposal-bid h4 {
  margin: 12px 0 0;
  padding-top: 0;
  text-align: center;
}

/* ==============================================
   2026-11-21 /client/messages, /freelancer/messages
   — мобильные (≤768, карточка в столбик): кнопка
   удаления диалога — голая иконка без рамки справа
   на уровне имени; точка отсчёта top — верх карточки
   (аватар-зона вендора фиксирована: 15+100+15=130px),
   точное значение выверено пиксель-пробой. Время под
   кнопкой чата — у левого края. Десктоп не тронут:
   колонка с рамкой между деталями и серой зоной.
   ============================================== */
@media (max-width: 768px) {
  .wv-msgs .proposal-box .wv-msg-del {
    position: absolute;
    top: 151px;
    right: 15px;
    padding: 0;
  }
  .wv-msgs .proposal-box .wv-msg-del-btn {
    border: 0;
    background: transparent;
    padding: 4px 6px;
  }
  .wv-msgs .proposal-box .wv-msg-del-btn:hover,
  .wv-msgs .proposal-box .wv-msg-del-btn:focus {
    background: #fbeeee;
  }
  .wv-msgs .proposal-box .proposal-bid h4 {
    text-align: left;
  }
}

/* ----------------  Чат: длинное сообщение без пробелов не ломает пузырь  ----
   Строка без пробелов (ссылка, «аааа...») иначе растягивает карточку
   шире контейнера. anywhere рвёт её в любом месте, min-width:0
   разрешает флекс-детям сужаться. */
.proposal-box .proposal-details,
.proposal-box .proposal-description {
  min-width: 0;
}
.proposal-box .proposal-description p,
.proposal-box .chat-image a,
.wv-msg-status {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ----------------  Чат: сообщения сверху, форма ввода снизу  ---------------
   Порядок как в мессенджере: старые сообщения сверху, свежие снизу,
   поле ввода — последним блоком диалога. */
.wv-chat-pagination {
  margin: 0 0 18px;
}
.wv-chat-pagination .pagination {
  margin: 0;
}
#messages-list > .proposal-box:last-of-type {
  margin-bottom: 18px;
}
.chat-box {
  margin-bottom: 60px;
  /* Карточка ввода сообщения скруглена так же, как textarea #md (10px):
     у карточки радиус был 0, и её прямые белые углы торчали из-за
     скруглённых углов textarea («маленькие уголки» у поля ввода). */
  border-radius: 10px;
  overflow: hidden;
}
/* Кнопки в футере чата — одна горизонтальная линия: слева «Прикрепить файлы»
   и «Сдать работу на проверку», справа «Отправить». Flex выравнивает по центру
   и не даёт кнопкам разъезжаться по вертикали. */
.chat-box .box-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.chat-box .box-footer .wv-chat-send {
  float: none;
  margin-left: auto;
}
[dir="rtl"] .chat-box .box-footer .wv-chat-send {
  float: none;
  margin-left: 0;
  margin-right: auto;
}
.chat-box .box-footer .kafe-btn {
  margin-top: 0;
  margin-bottom: 0;
  vertical-align: middle;
}

/* ----------------  Кнопки в модалках чата  ----------------------------
   Модалки «Отправить на доработку» и «Сдать работу на проверку».
   base.css вешает на .kafe-btn-default margin-top:10px, из-за него зелёная
   кнопка без этого отступа «зависает» выше белой. Сбрасываем отступы,
   выравниваем обе кнопки по центру строки и оставляем подъём только
   на hover — после ухода курсора transform возвращается в translateY(0). */
.wv-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.wv-modal-actions .kafe-btn {
  margin: 0;
  vertical-align: middle;
  transform: translateY(0);
}
.wv-modal-actions .kafe-btn-default:hover { transform: translateY(-1px); }
.wv-modal-actions .kafe-btn-green:hover { transform: translateY(-2px); }
.wv-modal-actions .kafe-btn:active { transform: translateY(0); }

/* ----------------  Чат: своё сообщение справа, чужое — слева  ---------------
   Как в мессенджере: аватарка автора стоит с той стороны, откуда пришло
   сообщение. В RTL-языках row-reverse сам разворачивает сторону. */
.proposal-box.wv-msg-out {
  flex-direction: row-reverse;
  background-color: #f7fdfe;
}
.proposal-box.wv-msg-out .proposal-description {
  text-align: end;
}
.proposal-box.wv-msg-out .chat-image img {
  margin-inline-start: auto;
}
.proposal-box.wv-msg-in .proposal-description {
  text-align: start;
}
@media (max-width: 768px) {
  /* На узком экране карточка идёт столбиком: аватарка сверху, текст от начала. */
  .proposal-box.wv-msg-out {
    flex-direction: column;
  }
  .proposal-box.wv-msg-out .proposal-description {
    text-align: start;
  }
  .proposal-box.wv-msg-out .chat-image img {
    margin-inline-start: 0;
  }
}

/* ----------------  Чат: плашка «Проект отправлен на доработку»  -------------
   Причина берётся из формы заказчика (conversation_reply.reply, wv_rework = 1).
   Такая строка идёт вместо обычного сообщения и занимает всю ширину чата.
   Рамок и скруглений нет (2026-11-11) — чистая заливка. */
.wv-chat-rework {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0 18px;
  padding: 14px 18px;
  background: #fff8e6;
  border: none;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.wv-chat-rework__body {
  flex: 1 1 auto;
  min-width: 0;
}
.wv-chat-rework__text {
  margin: 0;
  color: #6b5218;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wv-chat-rework__reason {
  font-weight: 600;
  color: #503a00;
}
.wv-chat-rework__time {
  display: block;
  margin-top: 4px;
  color: #9b8a63;
  font-size: 12px;
}
[dir="rtl"] .wv-chat-rework { text-align: right; }
@media (max-width: 768px) {
  .wv-chat-rework { padding: 12px; gap: 8px; }
}

/* ----------------  Чат: системная плашка «Заказ принят заказчиком»  ----------
   Ставится в переписку в момент, когда заказчик принимает работу
   (requests/complete_project, wv_rework = 2). Видна обеим сторонам.
   Как у плашки доработки: вся ширина чата, без рамок и скруглений,
   но зелёная — сделка успешна. */
.wv-chat-accepted {
  margin: 12px 0 18px;
  padding: 14px 18px;
  background: #eef9f1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.wv-chat-accepted__text {
  margin: 0;
  color: #2e6b44;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wv-chat-accepted__text i {
  margin-right: 6px;
  color: #2fae63;
}
.wv-chat-accepted__time {
  display: block;
  margin-top: 4px;
  color: #7fa58d;
  font-size: 12px;
}
[dir="rtl"] .wv-chat-accepted { text-align: right; }
[dir="rtl"] .wv-chat-accepted__text i { margin-right: 0; margin-left: 6px; }
@media (max-width: 768px) {
  .wv-chat-accepted { padding: 12px; }
}

/* ----------------  Чат спора: решение админом  -----------------------------
   is_admin = 2 в dispute_conversation_reply. Та же плашка, что у «заказ
   принят», но синяя — это решение спора, а не обычное сообщение. */
.wv-chat-accepted.wv-dispute-result { background: #eef4fb; }
.wv-chat-accepted.wv-dispute-result .wv-chat-accepted__text { color: #2c557d; }
.wv-chat-accepted.wv-dispute-result .wv-chat-accepted__text i { color: #3f7cb8; }
.wv-chat-accepted.wv-dispute-result .wv-chat-accepted__time { color: #829bb5; }

/* ----------------  Чат: таймер окна спора на плашке «заказ принят»  ---------
   2026-11-12. Плашка wv-chat-accepted показывает короткий текст
   (wv_order_accepted_notice_short) и рамку с обратным отсчётом до конца
   окна спора (WV_ESCROW_HOLD_DAYS с момента принятия заказа). Дедлайн в
   data-deadline (unix), текст ставит JS в шаблоне chat_view (wv_dispute_left,
   при истёкшем сроке wv_dispute_over). Рамка полуквадратная: 1px линия,
   скругление 6px. До JS скрыта (:empty). */
.wv-dispute-countdown {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  border: 1px solid #b9e2c8;
  border-radius: 6px;
  background: #fff;
  color: #2e6b44;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.wv-dispute-countdown:empty { display: none; }
.wv-dispute-countdown--over {
  border-color: #d9d9d9;
  color: #999;
  font-weight: 500;
}
[dir="rtl"] .wv-dispute-countdown { direction: rtl; }
@media (max-width: 768px) {
  .wv-dispute-countdown { white-space: normal; }
}

/* =====================================================================
   2026-11-17: «Спор проигран» на /freelancer/escrow — карточка эскроу
   со статусом action=4 (арбитраж решил спор в пользу заказчика —
   resolve_dispute_client). Рамка та же, что у счётчика холда
   (.wv-escrow-countdown), но в красных тонах --wv-danger: молоток
   арбитража + надпись, под ней прежнее «Деньги вернулись заказчику».
   ===================================================================== */
.wv-dispute-lost {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(239, 68, 68, .45);
  border-radius: 6px;
  background: #fff;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.wv-dispute-lost i { margin-inline-end: 3px; }
[dir="rtl"] .wv-dispute-lost { direction: rtl; }
@media (max-width: 768px) {
  .wv-dispute-lost { white-space: normal; }
}

/* =====================================================================
   2026-11-19: значки состояния на карточке эскроу (/freelancer/escrow,
   /client/escrow). Та же пилюля, что «Спор проигран» (.wv-dispute-lost):
   широкая рамка с иконкой и текстом внутри. Песочные часы — деньги ждут
   в эскроу, купюра + галочка — выпущены.
   ===================================================================== */
.wv-escrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 5px 12px;
  border: 1px solid #f2dcb3;
  border-radius: 6px;
  background: #fff;
  color: #b45309;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.wv-escrow-badge i { margin-inline-end: 0; }
.wv-escrow-badge--released {
  border-color: rgba(46, 107, 68, .45);
  color: #2e6b44;
}
.wv-escrow-badge--lost {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-color: rgba(239, 68, 68, .45);
  color: #b91c1c;
}
.wv-escrow-badge__head {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.wv-escrow-badge__note {
  font-size: 12px;
  font-weight: 500;
  color: #9a6700;
  white-space: normal;
}
[dir="rtl"] .wv-escrow-badge,
[dir="rtl"] .wv-escrow-badge--released { direction: rtl; text-align: right; }
@media (max-width: 768px) {
  .wv-escrow-badge { white-space: normal; }
}
/* Все статусы строки — пилюли одной ширины и по центру серой колонки.
   Без этого пилюля «Спор проигран» (две строки: заголовок + пояснение)
   уезжала вверх относительно соседних строк. */
@media (min-width: 769px) {
  .wv-escrow-row .withdraw-bid {
    flex: 0 0 240px;
    min-width: 0;
  }
  .wv-escrow-row .withdraw-bid-inner {
    padding: 8px 12px;
    text-align: center;
  }
}
.wv-escrow-row .wv-escrow-badge {
  max-width: 100%;
  margin: 0;
  flex-wrap: wrap;
  white-space: normal;
  text-align: start;
}
.wv-escrow-row .wv-escrow-countdown { margin: 0; }

/* ----------------  Чат: причина доработки внутри карточки сообщения  --------
   Плашка больше не висит отдельной строкой между сообщениями и формой ввода.
   Стороны зеркалятся по автору сообщения: в своём сообщении (wv-msg-out,
   кабинет исполнителя) шапка с именем — справа, плашка и текст — слева;
   в чужом (wv-msg-in, кабинет заказчика) — наоборот: шапка слева, плашка
   справа, текст слева. row-reverse в RTL сам зеркалит стороны, отдельные
   правила для иврита не нужны. */
/* Специфичность выше базового .proposal-box .proposal-description: там заданы
   align-items:center и justify-content:center, которые просыпаются при display:flex. */
.proposal-box .proposal-description.wv-msg-rework-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px 16px;
}
/* Своё сообщение: шапка уезжает вправо (в RTL — влево), плашка остаётся слева. */
.proposal-box.wv-msg-out .proposal-description.wv-msg-rework-layout {
  flex-direction: row-reverse;
}
.wv-msg-head {
  flex: 1 1 200px;
  min-width: 0;
}
/* =====================================================================
   «был(а) в сети» рядом с именем собеседника в шапке сообщения чата
   (2026-11-16, wv_last_seen). Имя делаем inline-block, чтобы метка
   встала в ту же строку; время (h5) остаётся на своей строке.
   ===================================================================== */
.wv-msg-head h3 {
  display: inline-block;
}
.wv-chat-seen {
  display: inline-block;
  margin-inline-start: 8px;
  vertical-align: 1px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #98a0ab;
  white-space: nowrap;
}
.wv-chat-seen--on {
  color: #1fa34a;
}
/* Имя и время своего сообщения прижаты к правому краю шапки (end зеркалится в RTL сам). */
.proposal-box.wv-msg-out .wv-msg-rework-layout .wv-msg-head {
  text-align: end;
}
.proposal-box .proposal-description.wv-msg-rework-layout > p,
.proposal-box .proposal-description.wv-msg-rework-layout > .chat-image {
  flex: 1 1 100%;
  margin-top: 2px;
  /* Текст сообщения — у левого края, даже если это своё сообщение (out). */
  text-align: start;
}
.proposal-box .proposal-description.wv-msg-rework-layout .chat-image img {
  margin-inline-start: 0;
}
.wv-chat-rework--inline {
  flex: 1 1 100%; /* на всю ширину карточки, своей строкой под шапкой */
  align-items: center;
  margin: 0;
  padding: 8px 12px;
  gap: 8px;
  box-shadow: none;
  text-align: start;
}
.wv-chat-rework--inline .wv-chat-rework__text {
  font-size: 13px;
  line-height: 1.35;
}
.wv-chat-rework--inline .wv-chat-rework__time {
  margin-top: 2px;
  font-size: 11px;
}
@media (max-width: 768px) {
  .wv-msg-head,
  .wv-chat-rework--inline { flex: 1 1 100%; }
}

/* Замечание администрации (2026-11-13): сообщение нарушает правила общения.
   Ставит админ в /admin/conversation/view, видят обе стороны (wv_warn). */
.wv-chat-warn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff4e0;
  border: 1px solid #f0b429;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.wv-chat-warn .fa { color: #e67e22; font-size: 13px; }

/* ----------------  Чат: галочка прочтения своего сообщения (2026-11-16) -----
   «Кружок с галочкой» в строке времени своего сообщения, ПЕРЕД временем:
   серая — собеседник ещё не открывал чат, зелёная — прочитал (read_status = 1).
   2026-11-16 (2): тик перенесён ВНУТРЬ <h5> времени — раньше падал на
   отдельную строку под временем. Выравнивание — по строке времени. */
.wv-msg-read {
  display: inline-flex;
  align-items: center;
  margin-inline-end: 5px;
  line-height: 1;
  vertical-align: -2px;
  color: #9aa3b2; /* не прочитано */
  font-size: 13px;
}
.wv-msg-read .fa { font-size: 13px; }
.wv-msg-read--on { color: #10b981; } /* прочитано */

/* =====================================================================
   Единая высота фото-баннеров внутренних страниц (2026-11-09)
   Просили одинаковые окна: самый высокий не-главный баннер — /projects
   (.ph-hero, 640px), под него выровнены остальные большие фото-баннеры.
   Главная (.tr-banner) не тронута — там полноэкранный hero.
   У .how-header вертикальный центр уже есть у вендора; у .jobpost-header
   добавляем flex-центрирование. Телефонные компактные баннеры не тронуты:
   их max-width-блоки выше по файлу перекрывают эти правила на <=768.
   ===================================================================== */
@media (min-width: 769px) {
  .how-header,
  .jobpost-header,
  .search-header {
    height: 640px !important;
    aspect-ratio: auto;
  }
  .jobpost-header {
    display: flex;
    align-items: center;
  }
  .jobpost-header > .container { width: 100%; }
  .jobpost-header .post-heading { padding: 0 !important; }
}

/* =====================================================================
   2026-11-10: метод вывода на странице «Вывод средств» (freelancer/withdrawals).
   Блок перенесён со страницы /withdrawals/method: заголовок + карточка формы.
   ===================================================================== */
.wv-wd-method-title {
  margin: 28px 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #444;
}
.dashboard .wv-wd-method {
  margin-top: 0;
}

/* 2026-11-13: USDT-поля (адрес + сеть) визуально объединены в один блок-рамку. */
.wv-wd-usdt-box {
  margin: 4px 0 18px;
  padding: 18px 18px 4px;
  border: 1px solid #ddd8f5;
  border-radius: 12px;
  background: #fbfaff;
}
.wv-wd-usdt-box > .form-group:last-child {
  margin-bottom: 14px;
}

/* 2026-11-14: кнопка «Запрос на снятие» перенесена из шапки вниз, под «Сохранить». */
.wv-wd-method .wv-wd-request-btn {
  margin-top: 10px;
  width: 100%;
}

/* 2026-11-13: пустой способ вывода на странице запроса снятия — предупреждение
   + ссылка «заполнить» на страницу /withdrawals (там форма PayPal и USDT). */
.wv-wd-missing {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #f3d9c2;
  border-radius: 8px;
  background: #fff7f0;
  color: #a2530a;
  font-size: 14px;
}
.wv-wd-missing a {
  color: #a2530a;
  font-weight: 600;
  text-decoration: underline;
}


/* =====================================================================
   Notifications (кабинет заказчика): комментарий исполнителя при сдаче
   работы — notifications.wv_note, уведомление type=16, /client/notifications.
   ===================================================================== */
.wv-notif-note {
  margin: 8px 0 2px;
  padding: 10px 14px;
  background: #f8fafc;
  border-left: 3px solid #b9b3e6;
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #334155;
  white-space: pre-line;
  overflow-wrap: break-word;
}

/* =====================================================================
   2026-11-11: счётчик окна спора в чате (/client/chat/view) — бейдж
   ВНУТРИ красной кнопки «Спор» (сперва была отдельная рамка рядом).
   Короткий текст «6 дн. 23 ч.» (wv_dispute_left_short) ставит JS в
   #wv_dispute_timer, полная фраза «до конца срока спора» — в title
   кнопки. Полупрозрачная белая пилюля на красном, до JS скрыта (:empty).
   ===================================================================== */
.wv-dispute-badge {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 9px;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .24);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}
.wv-dispute-badge:empty { display: none; }

/* =====================================================================
   2026-11-15: счётчик срока выполнения на дашборде исполнителя
   (/freelancer/dashboard, карточка «В работе», рядом со строкой
   «Срок выполнения: N дн.»). 2026-11-23: пилюля перерисована «рамкой»,
   как кнопка «Начать спор» (.wv-act-dispute): светлый розовый фон,
   красная рамка и красный текст вместо сплошной красной заливки.
   Дедлайн — data-deadline (unix) на пилюле. При истёкшем сроке бейдж
   показывает wv_deadline_over, пилюля сереет (--over). До JS скрыт.
   ===================================================================== */
.wv-deadline-timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-inline-start: 10px;
  padding: 4px 11px;
  border: 1px solid rgba(239, 68, 68, .25);
  border-radius: 10px;
  background: rgba(239, 68, 68, .07);
  color: #dc2626;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  vertical-align: middle;
  white-space: nowrap;
}
.wv-deadline-timer__label i { margin-inline-end: 4px; }
.wv-deadline-timer__badge {
  display: inline-flex;
  padding: 1px 9px;
  border-radius: 6px;
  background: rgba(239, 68, 68, .12);
  color: #dc2626;
  font-variant-numeric: tabular-nums;
}
.wv-deadline-timer__badge:empty { display: none; }
.wv-deadline-timer--over {
  background: rgba(148, 163, 184, .1);
  border-color: rgba(148, 163, 184, .35);
  color: #64748b;
}
.wv-deadline-timer--over .wv-deadline-timer__badge {
  background: rgba(148, 163, 184, .18);
  color: #475569;
}
[dir="rtl"] .wv-deadline-timer { direction: rtl; }
@media (max-width: 768px) {
  .wv-deadline-timer {
    display: flex;
    width: fit-content;
    margin-top: 8px;
    margin-inline-start: 0;
    white-space: normal;
  }
}

/* =====================================================================
   2026-11-12: превью выбранного изображения заказа в кабинете заказчика
   (/client/project/add и /client/project/edit). Блок появляется под
   полем «Изображение заказа», как только выбран файл; при отмене
   выбора скрывается (атрибут hidden).
   ===================================================================== */
.wv-image-preview {
  margin-top: 10px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-align: center;
}
.wv-image-preview img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  margin: 0 auto;
  border-radius: 6px;
}
.wv-image-preview[hidden] { display: none; }

/* =====================================================================
   2026-11-13: форма пополнения на странице фондов (/client/funds).
   Форма перенесена с отдельной страницы /addfunds; заголовок и
   транзакционный сбор — над блоком .add-box.
   ===================================================================== */
.wv-funds-form-title {
  margin: 18px 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
}
.wv-funds-form-fee {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #7c3aed;
}

/* =====================================================================
   2026-11-14: фильтр «Ваши проекты» (dashboard / in-progress / completed /
   disputed, клиент и фрилансер — .listing-nav.member-nav) — меню пилюлями
   в языке вкладок кабинета (tr-header--dash): светлая лаванда, актив —
   градиент var(--wv-grad), иконки наследуют цвет.
   ===================================================================== */
.member-nav {
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid rgba(79, 70, 229, .10);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
  margin-bottom: 30px;
}
.member-nav .container { width: auto; margin: 0; padding: 0; }
.member-nav ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  float: none;
}
/* clearfix у .nav перекрывал бы grid-gap */
.member-nav ul::before, .member-nav ul::after { display: none; }
/* 2026-11-16: пилюли равномерно на всю ширину карточки.
   2026-11-19: вместо flex — сетка с равными колонками. Во flex ширина
   пилюли упиралась в min-content подписи, и на средней ширине экрана
   ряды получались разной ширины и разной высоты («лестница»). */
.member-nav ul li { padding: 0; min-width: 0; display: flex; }
.member-nav ul li a {
  /* 2026-11-19: счётчик прижат к торцу пилюли, а иконка с подписью остаются
     одной центрированной парой. Раньше цифра шла сразу за подписью, поэтому
     у пилюль с подписями разной длины («בתהליך» / «הפרויקטים שלי») бейджи
     стояли на разной высоте от края — в колонке цифры не выстраивались.
     Теперь у всех пилюль счётчик на одном и том же расстоянии от торца.
     Без flex-wrap: если подпись не влезает, она переносится по словам, а
     иконка и счётчик остаются по центру по вертикали. */
  position: relative;
  display: inline-flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  min-width: 0;
  /* высота пилюли: раньше её задавал бейдж в потоке (22px + отступы);
     теперь он в absolute, поэтому высоту держим явно */
  min-height: 42px;
  gap: 7px;
  /* начало — обычный отступ, конец — отступ + ширина счётчика + зазор:
     полоса под прижатый бейдж, чтобы подпись на него не наезжала */
  padding: 9px 16px;
  padding-inline-end: 44px;
  border-radius: 999px;
  background: #f1f2fb;
  border: 1px solid transparent;
  font-family: var(--wv-font, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.2;
  color: #4b5568;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease,
              transform .18s ease;
}
/* счётчик — в полосе, зарезервированной padding-inline-end */
.member-nav ul li a > .wv-count {
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
}
.member-nav ul li a i.fa { font-size: 13px; opacity: .8; }
.member-nav ul li a:hover,
.member-nav ul li a:focus {
  background: rgba(79, 70, 229, .08);
  color: var(--wv-primary, #4f46e5);
  text-decoration: none;
}
.member-nav ul li a:hover i.fa { opacity: 1; }
/* общий a:hover > .wv-count даёт translateY(-1px) — это сбило бы центровку
   по вертикали у прижатого по absolute бейджа */
.member-nav ul li a:hover > .wv-count,
.member-nav ul li a:focus > .wv-count { transform: translateY(-50%); }
.member-nav ul li a.active {
  background: var(--wv-grad, linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%));
  /* style.css красит .listing-nav a.active в #00C4CF !important — перебиваем белым */
  color: #fff !important;
  box-shadow: 0 10px 20px -12px rgba(79, 70, 229, .8), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.member-nav ul li a.active:hover { color: #fff !important; }
.member-nav ul li a.active i.fa { opacity: 1; }
/* счётчик на активной пилюле — белая полупрозрачная плашка (как на вкладках кабинета),
   базовый градиент .wv-count перебираем повышенной специфичностью */
.member-nav ul li a.active .wv-count {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
  box-shadow: none;
}
@media (max-width: 1199px) {
  /* Уже десктопа: уменьшаем отступы и шрифт, чтобы длинные подписи
     («В ходе выполнения», «הפרויקטים שלי») оставались в одну строку. */
  .member-nav ul li a { padding: 9px 10px; padding-inline-end: 37px; font-size: 12.5px; gap: 5px; }
  .member-nav ul li a > .wv-count { inset-inline-end: 10px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* Планшет: четыре пилюли по ~200px не влезают — раскладываем 2×2. */
  .member-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  /* 2026-11-19: на телефоне пилюли шли flex-ом по ширине текста
     и центрировались: в каждом ряду ширина своя, края рядов не
     совпадали — «лестница». Теперь это сетка с равными колонками:
     все пилюли одинаковой ширины, ряды выровнены по обоим краям. */
  .member-nav { padding: 8px; }
  .member-nav ul {
    gap: 8px;
    /* Одна колонка: до 413px половина карточки уже не вмещает длинные
       подписи («Завершенный», «הפרויקטים שלי») — они бы выпирали. */
    grid-template-columns: minmax(0, 1fr);
  }
  .member-nav ul li a {
    width: 100%;
    padding: 9px 8px;
    padding-inline-end: 31px;
    min-height: 40px;
    font-size: 12px;
    gap: 5px;
    line-height: 1.15;
  }
  .member-nav ul li a > .wv-count { inset-inline-end: 8px; }
}
@media (min-width: 414px) and (max-width: 767px) {
  /* От 414px половинной ширины хватает на любую подпись — снова 2×2. */
  .member-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 414px) and (max-width: 767px) {
  /* От 414px половинной ширины хватает на любую подпись — снова 2×2. */
  .member-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- Спор в админке: карточки с углами 16px (2026-11-17) ------- */
/* Рамки сообщений спора были капсулами (999px): дуга срезала подписи
   «Исполнитель»/«Заказчик» под аватаром. Делаем те же 16px, что у
   .project-box и остальных карточек. Серые торцы аватар-блока и кнопочного
   блока .proposal-bid клипаются через overflow:hidden. Хук .wv-pill-cards
   стоит только на admin/disputes_view.php — остальные .proposal-box
   (кабинеты, отклики) не тронуты. */
.wv-pill-cards .proposal-box {
  border-radius: 16px;
  overflow: hidden;
}
.wv-pill-cards .proposal-details {
  padding: 12px 55px;
}
@media (max-width: 768px) {
  .wv-pill-cards .proposal-box { border-radius: 16px; }
  .wv-pill-cards .proposal-details { padding: 12px 24px; }
}

/* =====================================================================
   Кнопка «Назад» на странице проекта (2026-11-14)
   Пилюля как «Назад» в шапках кабинета (.dashboard .headline > a),
   но статичная, в потоке контента. Двойной селектор перебивает
   ссылки цвета темы (.job-content a из style.css).
   С 2026-11-15 пилюля без стрелки: псевдоэлемент ::before удалён.
   ===================================================================== */
.job-content .wv-back-row { margin: 2px 0 22px; }
.job-content .wv-back-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(79, 70, 229, .25);
  border-radius: 999px;
  background: rgba(79, 70, 229, .08);
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #4f46e5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.job-content .wv-back-pill:hover,
.job-content .wv-back-pill:focus {
  background: var(--wv-grad);
  border-color: transparent;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .55);
}

/* =====================================================================
   Края рамок ещё круглее (запрос 2026-11-14): карточки .project-box
   были 4px (style.css) — перебиваем на 16px. Внутренние блоки с фоном
   (.project-img слева, .project-bid справа) клипаются overflow:hidden,
   чтобы углы не торчали за скругление (и в RTL, где картинка справа).
   ===================================================================== */
.project-box {
  border-radius: 16px;
  overflow: hidden;
}

/* =====================================================================
   Имя заказчика под аватаром — по центру серой колонки (запрос
   2026-11-15). .project-box h4 общий на всю карточку (строки «Эскроу»,
   «Заказчик», «Дата найма» в .project-details), поэтому центрируем
   только внутри .project-img-inner; аватар тоже в центр — Bootstrap
   .img-responsive делает его display:block без margin:auto.
   ===================================================================== */
.project-img-inner {
  text-align: center;
}
.project-img-inner img {
  display: block;
  margin: 0 auto 10px;
}

/* =====================================================================
   Активность собеседника («был(а) в сети N назад») перенесена из строки
   «Исполнитель — …» под имя в серой колонке карточки (запрос 2026-11-15):
   блок, перенос по словам, по центру и той же ширины, что аватар.
   ===================================================================== */
.project-img-inner .wv-chat-seen {
  display: block;
  max-width: 160px;
  margin: 4px auto 0;
  text-align: center;
  white-space: normal;
  font-size: 11px;
  line-height: 1.35;
}

/* =====================================================================
   Края рамок круглее (запрос 2026-11-14, продолжение): .proposal-box
   (уведомления, верификация, отзывы о заказчиках, сообщения) и
   .prop-info (пустые состояния «Нет сообщений», панели верификации)
   были 4px (style.css) — перебиваем на 16px, как .project-box выше.
   Серые торцы (.proposal-img слева, .proposal-bid справа) клипаются
   overflow:hidden, чтобы углы не торчали за скругление (и в RTL).
   2026-11-15: добавлен .about-box (блок «Обо мне», опыт работы,
   образование и статичные страницы) — тот же радиус 16px и клип
   серого .about-box-img, который в RTL оказывается справа.
   ===================================================================== */
.proposal-box,
.prop-info,
.about-box {
  border-radius: 16px;
  overflow: hidden;
}

/* =====================================================================
   2026-11-15: точка непрочитанного (.proposal-box
   .proposal-description h6::before, style.css) стояла ровно в углу
   карточки (top:0 left:0), и скругление 16px с overflow:hidden из
   правила «края круглее» выше срезало её внешнюю часть. Сдвигаем
   точку внутрь угла, чтобы она была видна целиком (списки сообщений
   и споров в кабинете клиента/фрилансера и в админке).
   ===================================================================== */
.proposal-box .proposal-description h6::before {
  top: 8px;
  left: 8px;
}

/* =====================================================================
   Галочка «предложения не ниже суммы» (create/edit project, запрос
   2026-11-14): обычный чекбокс, но label в теме жирный и uppercase —
   снимаем жирность, клик по всей строке переключает галочку.
   ===================================================================== */
.wv-budget-lock {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  font-weight: 400;
  text-transform: none;
  font-size: 14px;
  line-height: 1.45;
  color: var(--wv-body);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.wv-budget-lock input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  cursor: pointer;
  accent-color: var(--wv-primary);
}
.wv-budget-lock__min {
  color: #b45309;
  font-weight: 600;
}

/* ----------------  Уведомления: подпись-ссылка в чат (2026-11-14) ----------
   «Опубликовал сообщение…» / «отправил(а) вам сообщение» ведут в переписку.
   Выглядит как обычная подпись, но кликабельна: при наведении — подчёрк.
   ===================================================================== */
.proposal-description h5 a.wv-notif-chat {
  color: inherit;
  text-decoration: none;
}
.proposal-description h5 a.wv-notif-chat:hover {
  text-decoration: underline;
  color: var(--wv-primary);
}

/* ----------------  Уведомления: карточка целиком кликабельна (2026-11-16) ----
   Клик по карточке ведёт в чат (a.wv-notif-chat), иначе — к проекту.
   Внутренние ссылки не трогаем: скрипт пропускает клики по <a>.
   ===================================================================== */
.proposal-box.wv-notif-card {
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
.proposal-box.wv-notif-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

/* ----------------  Уведомления: одинаковые серые торцы (2026-11-18) --------
   В style.css у .proposal-img / .proposal-bid записано `flex: 0 0px 0px 0px`
   (четыре значения вместо трёх) — браузер игнорирует это объявление, и ширина
   правой колонки получалась по длине текста: «1 час назад» давал 106px,
   «2 минуты назад» — 140px. Из-за этого белый блок и время стояли в карточках
   на разном расстоянии от края. Фиксируем ширину торцов только у карточек
   уведомлений (клиент и фрилансер); на мобильном .proposal-box — колонка.
   ===================================================================== */
@media (min-width: 769px) {
  .proposal-box.wv-notif-card .proposal-img,
  .proposal-box.wv-notif-card .proposal-bid {
    flex: 0 0 150px;
    width: 150px;
  }
}

/* ----------------  Уведомления: метаданные карточки (2026-11-15) ----------
   Правая колонка .proposal-bid: время «10 минут назад» + детали кто/когда/ID/тип/
   проект/статус. Компактно, без переполнения; на узком экране — в колонку.
   ===================================================================== */
.proposal-box .proposal-bid .proposal-bid-inner .wv-notif-meta {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, .07);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #7a7b7c;
  word-break: break-word;
}
.wv-notif-meta > div { margin: 0 0 2px; }
.wv-notif-meta span { color: #4d4e4f; font-weight: 600; }
.wv-notif-meta em { font-style: normal; opacity: .7; }
.wv-notif-meta .wv-notif-meta-note {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(0, 0, 0, .07);
}
@media (max-width: 768px) {
  .wv-notif-meta { text-align: left; }
}



/* ----------------  Страница проекта: перенос длинных «слов» (2026-11-16) ----
   Описание без пробелов (тестовый «gvbncvgbncvg…») вылезало за белую карточку
   и наезжало на сайдбар. Переносим на любом месте, карточка не расширяется.
   ===================================================================== */
.content-base .single-page-section {
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
}

/* ----------------  Звёзды рейтинга по центру жёлтого бейджа (2026-11-16) ----
   Отзывы о заказчиках (/freelancer/clients и везде, где .star-rating):
   бейдж с цифрой (data-rating, 25px высотой) и звёзды (22px) были
   float:left и сидели на разных уровнях — звёзды ниже центра бейджа.
   Переводим .star-rating на flex: бейдж и звёзды — элементы одной
   строки, выровнены по вертикальному центру.
   ===================================================================== */
.star-rating {
  display: flex;
  align-items: center;
}
.star-rating::before {
  float: none;
  top: 0;
  flex-shrink: 0;
}
.star-rating .star {
  float: none;
}

/* ----------------  Короткая сводка по спору в админке (2026-11-17) --------
   Категория и время открытия под заголовком проекта в /admin/disputes.
   ===================================================================== */
.proposal-description h5.wv-dispute-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 2px;
  color: #7a7b7c;
}

/* ----------------  Автор отзыва на /client/ratings (2026-11-17) ------------
   Список смешивает полученные отзывы (их пишет исполнитель) и собственные
   оценки клиента исполнителю — под именем автора пилюля-источник:
   «Отзыв исполнителя» / «Ваш отзыв». Рамка как у .wv-dispute-lost, но в
   нейтральном индиго: это метка источника, а не действие или тревога.
   ===================================================================== */
.wv-rating-src {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 10px;
  border: 1px solid rgba(99, 102, 241, .45);
  border-radius: 6px;
  background: #fff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
[dir="rtl"] .wv-rating-src { direction: rtl; }
@media (max-width: 768px) {
  .wv-rating-src { white-space: normal; }
}

/* =====================================================================
   Выравнивание серой колонки .project-bid в карточках кабинета
   (запрос 2026-11-18, скрин /freelancer/dashboard/completed): у
   flex-элемента .project-bid (flex: 0 0 240px) min-width:auto, поэтому
   колонка распухала под ширину кнопки + 70px паддинга inner:
   «Оценить заказчика» (216px) -> 286px, «Изменить отзыв» (178px) -> 248px.
   Кнопки в соседних карточках оказывались на разных уровнях по
   горизонтали. Фикс: колонка жёстко 240px (min-width:0), кнопка —
   по центру колонки на естественной ширине (text-align:center вместо
   бокового паддинга inner). Длинные тексты кнопок (немецкий и т.п.)
   переносятся внутри колонки, а не вылезают за неё.
   Скоуп .project-box — чтобы не задеть .proposal-box. Медиа-правило
   style.css (max-width:768px, flex-direction:column; .project-bid flex:1)
   не перекрывается: наши правила только от 769px.
   ===================================================================== */
@media (min-width: 769px) {
  .project-box .project-bid {
    flex: 0 0 240px;
    min-width: 0;
  }
  .project-box .project-bid .project-bid-inner {
    padding: 20px 14px;
    box-sizing: border-box;
    text-align: center;
  }
  .project-box .project-bid .kafe-btn {
    max-width: 100%;
    white-space: normal;
  }
}

/* =====================================================================
   Компактные кнопки на карточках .project-box (запрос 2026-11-18,
   скрин /client/dashboard): жёлтая «Посмотреть предложения» была
   12x28 (глобальный .kafe-btn) и в колонке 240px уезжала на 2 строки,
   ряд «редактировать / удалить / Пригласить исполнителя» — слишком
   крупный. Меньше паддинг/шрифт на обеих зонах карточки, оба кабинета.
   Без медиа-запроса — компактность нужна и на мобиле. Специфичность
   0,3,0 + !important перебивают .kafe-btn (0,1,0) и .kafe-btn-mint-small.
   ===================================================================== */
.project-box .project-btns .kafe-btn {
  padding: 7px 14px !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
  gap: 6px;
}
.project-box .project-bid .kafe-btn {
  padding: 8px 16px !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
}

/* =====================================================================
   Зазор между кнопками ряда «Редактировать / Удалить / Пригласить
   исполнителя» на карточках кабинета заказчика (запрос 2026-11-22, скрин
   /client/dashboard): кнопки — inline-flex, и когда карточка узкая (мобайл,
   RTL-заголовок в две строки) они переносятся на новую строку вплотную
   друг к другу — строка получает высоту кнопки без межстрочного зазора.
   Делаем ряд flex-контейнером с маленьким gap: отступ работает и по
   горизонтали, и по вертикали при переносе. Направление наследуется от
   dir, поэтому RTL-раскладка переворачивается сама.
   ===================================================================== */
.project-box .project-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* =====================================================================
   Заголовок «דירוגים» на /freelancer/ratings и /client/ratings
   (запрос 2026-11-20, скрин фрилансер-кабинета): h3 стоял у правого края
   из-за .dashboard .headline { padding-right: 20% } и RTL. Центрируем.
   ===================================================================== */
.dashboard .headline.wv-headline-center {
  padding-right: 0;
  padding-left: 0;
  text-align: center;
}
.dashboard .headline.wv-headline-center h3 {
  text-align: center;
}

/* =====================================================================
   Компактный футер на мобиле (запрос 2026-11-20, скрины /login 414px):
   футер занимал почти два экрана. Причины: padding-top 72px, наследуемый
   из style.css margin-bottom:70px у .footer-wrapper и margin-bottom:25px
   у каждой ссылки .menu, плюс 4 колонки вставали в один столбец.
   Итог: отступы/шрифты ужаты, а раскладку колонок ниже переопределяет
   блок «гармошки футера» (одна колонка, выдвигающиеся группы).
   Специфичность 0,3,0 + !important перебивают style.css (0,2,0/!important).
   ===================================================================== */
@media (max-width: 767px) {
  .main-footer { padding: 26px 0 0 !important; }
  .main-footer .row { display: flex; flex-wrap: wrap; }
  .main-footer .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-footer .row > [class*="col-"]:first-child,
  .main-footer .row > [class*="col-"]:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .main-footer .footer-wrapper { margin-bottom: 16px !important; }
  .main-footer .footer-wrapper h4 { font-size: 13.5px !important; margin-bottom: 6px; }
  .main-footer .separator { width: 26px; height: 2px; margin-bottom: 8px; }
  .main-footer .footer-logo { padding-bottom: 6px; }
  .main-footer .footer-logo img { max-height: 32px; margin-bottom: 10px; }
  .main-footer .footer-about { font-size: 13px; line-height: 1.5; margin: 0 0 6px; }
  .main-footer ul.menu li a {
    font-size: 13.5px;
    margin-bottom: 0 !important;
    padding: 2px 0;
  }
  .main-footer .toolbox { margin-bottom: 4px; }
  .main-footer .toolbox p { font-size: 11px; margin: 8px 0 1px; }
  .main-footer .toolbox h5 { font-size: 13.5px; }
  .main-footer .fa-facebook,
  .main-footer .fa-twitter,
  .main-footer .fa-instagram {
    width: 32px; height: 32px;
    border-radius: 10px;
    font-size: 13px;
    margin-right: 6px;
    margin-top: 6px;
  }
  .site-footer { margin-top: 10px; padding: 12px 0 !important; }
  .footer-copyright { font-size: 12px; margin: 0; }
}

/* =====================================================================
   Футер на мобиле: три группы ссылок («חברה», «למעסיקים», «למבצעים») —
   выдвигающиеся гармошки в один столбик (запрос 2026-11-25, скрин /register
   414px: две колонки вставали в ряд и занимали много места).
   Заголовок группы в footer.php — кнопка .wv-footer-toggle, панель со
   ссылками раскрывается классом .is-open (ставит скрипт из footer.php),
   высоту панели скрипт считает сам по scrollHeight.
   На десктопе кнопка выглядит как обычный h4, шеврон скрыт, панели открыты.
   ===================================================================== */
.main-footer .wv-footer-toggle {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: inherit;
}
.main-footer .wv-footer-chevron { display: none; }

@media (max-width: 767px) {
  /* один столбик: все блоки футера на всю ширину */
  .main-footer .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  /* разделитель между гармошками вместо подчёркивания под заголовком */
  .main-footer .wv-footer-acc {
    margin-bottom: 0 !important;
    padding-bottom: 6px;
    border-top: 1px solid rgba(255,255,255,.09);
  }
  .main-footer .wv-footer-acc .separator { display: none; }
  .main-footer .wv-footer-acc .wv-footer-heading { margin: 0 !important; }
  .main-footer .wv-footer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .main-footer .wv-footer-toggle:focus-visible {
    outline: 2px solid var(--wv-primary);
    outline-offset: 3px;
    border-radius: 6px;
  }
  .main-footer .wv-footer-chevron {
    display: block;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .6;
    transition: transform .25s ease, margin-top .25s ease;
  }
  .main-footer .wv-footer-acc.is-open .wv-footer-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
  }
  /* выдвижение панели: высоту ставит скрипт, здесь только переход */
  .main-footer .wv-footer-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .3s ease, opacity .25s ease;
  }
  .main-footer .wv-footer-acc.is-open .wv-footer-panel { opacity: 1; }
  .main-footer .wv-footer-acc .wv-footer-panel ul.menu li a { padding: 5px 0; }
  .main-footer .wv-footer-acc .toolbox { margin-top: 6px; }
}

/* Нижняя полоса под тёмным футером оставалась белой из style.css
   (#footer-menu background:#fff), получался светлый «обрубок» на тёмном фоне. */
#footer-menu {
  background: transparent !important;
  border-top: none !important;
  padding: 0 !important;
}

/* Подвал с копирайтом должен быть частью тёмного футера: style.css красит
   .site-footer в #fff !important, из-за этого под футером оставалась светлая
   полоса с серым копирайтом (скрины /login, desktop и mobile). */
.site-footer { background: var(--wv-darker) !important; }

/* Наследие старой темы: .toolbox в style.css рисовал розовую полоску слева
   (border-left 3px #ff8d85) и padding-left:20px — в тёмном футере это
   выглядело как случайный артефакт и сдвигало контакты/соцсети вправо.
   .toolbox используется только во футере. */
.main-footer .toolbox {
  border-left: 0 !important;
  padding-left: 0 !important;
  margin-bottom: 10px !important;
}

/* Мобильная доводка: компактнее верх футера и кнопка «наверх» не наезжает
   на строку копирайта (в скринах 414px она перекрывала текст). */
@media (max-width: 767px) {
  .main-footer { padding-top: 22px !important; }
  .main-footer .footer-wrapper { margin-bottom: 12px !important; }
  #scrollup {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .footer-copyright { padding: 0 50px; }
}

/* Публичный профиль (фрилансер/заказчик): заголовки секций
   («Обо мне», «Проекты (N)», «Отзывы», «Услуги»…) были смещены вправо
   из-за padding-right: 20% в style.css и выглядели неровно на мобильных.
   Центрируем заголовок по ширине колонки. */
.freelancer-content .headline {
  padding-right: 0 !important;
  padding-left: 0 !important;
  text-align: center;
}

/* Кабинет: заголовки страниц без кнопок/ссылок действий («Уведомления»,
   «Мои проекты», «Сообщения» и т.п.) тоже центрируем — тот же
   padding-right: 20% смещал их вправо. Заголовки с действиями
   (.wv-headline-actions, «Назад», «Добавить») не трогаем, иначе
   центрированный текст наедет на абсолютно позиционированные кнопки. */
.dashboard .headline:not(:has(a)):not(:has(.wv-headline-actions)):not(:has(button)):not(:has(select)):not(:has(input)) {
  padding-right: 0 !important;
  padding-left: 0 !important;
  text-align: center;
}

/* Пагинация: все элементы (назад, страницы, вперёд) в одной строке.
   Раньше из-за фиксированных 45–50px кнопок + отступов li/a суммарная
   ширина превышала контейнер на мобильных и кнопки «›» и «»» падали
   на вторую строку под номера страниц. */
.paginationCommon .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.paginationCommon .pagination > li {
  float: none !important;
  margin: 0 !important;
}
.paginationCommon .pagination > li > a {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  line-height: 1 !important;
}
.paginationCommon .pagination > li.dot {
  padding: 0 2px;
  line-height: 46px;
  color: var(--wv-muted);
}
.paginationCommon .pagination > li.disabled > a {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}
@media (max-width: 768px) {
  .paginationCommon .pagination { gap: 5px; }
  .paginationCommon .pagination > li > a {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .paginationCommon .pagination > li.dot { line-height: 40px; }
}
@media (max-width: 360px) {
  .paginationCommon .pagination { gap: 4px; }
  .paginationCommon .pagination > li > a {
    width: 34px;
    height: 34px;
    font-size: 13.5px;
  }
  .paginationCommon .pagination > li.dot { line-height: 34px; }
}

/* =====================================================================
   Страница идентификации (KYC): /freelancer|client/request
   (запрос 2026-11-20 «доработай идентификацию в мобильной версии»)

   Раньше страница собиралась из .proposal-box — карточки из списков
   сообщений/уведомлений. На телефоне она разваливалась: серый торец
   .proposal-img растягивался на всю ширину пустым блоком 130px, имя
   уезжало вниз, а у проверенного пользователя не было ни статуса, ни
   действия — просто аватар и имя. Плюс модалка на 414px вылезала
   футером за край экрана.

   Теперь своя карточка .wv-verify (статус + подсказка + действие) и
   модалка-лист .wv-verify-modal с прокручиваемым телом и липким
   футером. Разметка: views/freelancer/request.php, views/client/request.php.
   ===================================================================== */
.wv-verify {
  max-width: 720px;
  margin: 0 auto;
}
.wv-verify__card {
  background: var(--wv-card);
  border: 1px solid var(--wv-line);
  border-radius: 16px;
  box-shadow: var(--wv-shadow-sm);
  padding: 24px 26px;
}
.wv-verify__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wv-verify__avatar {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--wv-line);
}
.wv-verify__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wv-verify__who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.wv-verify__name {
  font-family: 'Poppins', var(--wv-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--wv-text) !important;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.wv-verify__name:hover,
.wv-verify__name:focus { color: var(--wv-primary) !important; }

/* Статус: цвет зависит от состояния (модификатор на .wv-verify). */
.wv-verify__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 13px;
  border-radius: 999px;
  background: #eef1f8;
  color: var(--wv-muted);
  font-family: var(--wv-font);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  text-align: start;
}
.wv-verify__status i { font-size: 13px; line-height: 1; }
.wv-verify--none .wv-verify__status { background: rgba(245,158,11,.14); color: #b45309; }
.wv-verify--ok .wv-verify__status { background: rgba(16,185,129,.14); color: #0f9d76; }
.wv-verify--pending .wv-verify__status { background: rgba(79,70,229,.12); color: var(--wv-primary-600); }
.wv-verify--declined .wv-verify__status { background: rgba(239,68,68,.12); color: #dc2626; }

/* Премодерация заказов и проектов (2026-11-24). */
.wv-mod-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.wv-mod-badge--pending { background: rgba(245,158,11,.14); color: #b45309; }
.wv-mod-badge--approved { background: rgba(16,185,129,.14); color: #0f9d76; }
.wv-mod-badge--rejected { background: rgba(239,68,68,.12); color: #dc2626; }
.wv-mod-reason {
  overflow-wrap: anywhere;
  color: #b91c1c;
  font-size: 12.5px;
}
.wv-mod-card {
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.wv-mod-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--wv-muted);
}
.wv-mod-card__head strong { font-size: 15px; color: var(--wv-text); }
.wv-mod-card__body { display: flex; gap: 16px; margin-bottom: 14px; }
.wv-mod-card__thumb { flex: 0 0 120px; max-width: 120px; }
.wv-mod-card__thumb .wv-proj-thumb,
.wv-mod-card__thumb img { width: 100%; height: auto; border-radius: 8px; display: block; }
.wv-mod-card__text { flex: 1 1 auto; min-width: 0; font-size: 13.5px; line-height: 1.6; }
.wv-mod-card__text p { margin: 0 0 6px; }
.wv-mod-card__hint { color: #b45309; }

.wv-verify__body { margin-top: 18px; }
.wv-verify__hint {
  margin: 0;
  font-family: var(--wv-font);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--wv-body);
}
.wv-verify__need {
  margin: 20px 0 10px;
  font-family: var(--wv-font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--wv-muted);
}
.wv-verify__need-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wv-verify__need-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--wv-line);
  border-radius: 12px;
  background: var(--wv-bg);
  font-family: var(--wv-font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wv-body);
}
.wv-verify__need-list i { font-size: 15px; color: var(--wv-primary); }
.wv-verify__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.wv-verify__btn {
  border-radius: 12px !important;
  padding: 13px 26px !important;
  font-size: 14.5px !important;
}

/* ----------------  Форма в модалке: зоны нажатия вместо нативного input  */
.wv-verify-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}
.wv-verify-modal .modal-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.wv-verify-modal .modal-title i { color: var(--wv-primary); }
.wv-verify-form .form-group { margin-bottom: 18px; }
.wv-verify-form .form-group > label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--wv-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--wv-text);
}
.wv-verify-form .form-control {
  height: auto;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 10px;
}
.wv-up__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--wv-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--wv-text);
}
.wv-up__box {
  position: relative;
  display: block;
  margin: 0;
  padding: 16px 14px;
  border: 1.5px dashed #c7d2e3;
  border-radius: 14px;
  background: #f8faff;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.wv-up__box:hover,
.wv-up__box:focus-within {
  border-color: var(--wv-primary-500);
  background: #f2f5ff;
}
/* Сам input растянут по зоне и прозрачен: тап в любом месте открывает
   выбор файла, а курсор/клавиатура продолжают работать как обычно. */
.wv-up__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.wv-up__pick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--wv-font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wv-primary-600);
  pointer-events: none;
}
.wv-up__pick i { font-size: 16px; }
.wv-up__pick-text {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wv-up__pick.is-set .wv-up__pick-text { color: var(--wv-text); }
.wv-up__preview:empty { display: none; }
.wv-up__preview { pointer-events: none; }
.wv-up__preview img {
  display: block;
  max-width: 100% !important;
  max-height: 120px !important;
  margin: 10px auto 0 !important;
  border-radius: 10px;
  width: auto !important;
  height: auto !important;
}
.wv-up__hint {
  margin: 8px 0 0 !important;
  font-family: var(--wv-font);
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  color: var(--wv-muted) !important;
}
.wv-up-row .wv-up__error {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.45;
}

/* ----------------  Мобильный экран  ------------------------------------ */
@media (max-width: 767px) {
  .wv-verify__card {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .wv-verify__head { gap: 13px; }
  .wv-verify__avatar {
    width: 62px;
    height: 62px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wv-line);
  }
  .wv-verify__who { gap: 7px; }
  .wv-verify__name { font-size: 17px; }
  .wv-verify__status {
    padding: 5px 11px;
    font-size: 11.5px;
    gap: 6px;
  }
  .wv-verify__body { margin-top: 15px; }
  .wv-verify__hint { font-size: 13.5px; line-height: 1.6; }
  .wv-verify__need { margin: 16px 0 8px; }
  .wv-verify__need-list {
    gap: 8px;
    margin-bottom: 16px;
  }
  .wv-verify__need-list li {
    padding: 9px 12px;
    font-size: 13px;
  }
  .wv-verify__actions { gap: 10px; }
  .wv-verify__actions .wv-verify__btn {
    width: 100%;
    padding: 14px 18px !important;
  }

  /* Модалка — лист на весь экран: тело прокручивается, кнопки всегда
     на виду и не вылезают за край (было: «Закрыть» уезжал вправо). */
  .wv-verify-modal { overflow-y: hidden !important; }
  .wv-verify-modal .modal-dialog {
    width: auto;
    height: 100%;
    margin: 0;
  }
  .wv-verify-modal .modal-content {
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  .wv-verify-modal .wv-verify-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  .wv-verify-modal .modal-header {
    flex: 0 0 auto;
    padding: 15px 16px;
  }
  .wv-verify-modal .modal-title { font-size: 16px; }
  .wv-verify-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 20px;
  }
  .wv-verify-modal .modal-footer {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--wv-line);
    background: #fff;
    text-align: initial;
  }
  .wv-verify-modal .modal-footer::before,
  .wv-verify-modal .modal-footer::after { display: none !important; }
  .wv-verify-modal .modal-footer .kafe-btn {
    flex: 1 1 0;
    margin: 0 !important;
    float: none !important;
    padding: 13px 10px !important;
  }
  .wv-verify-form .form-control { font-size: 16px; }
  .wv-up__box { padding: 14px 12px; }
}

/* ---------------------------------------------------------------------
   2026-11-21 Portfolio cards (/freelancer/portfolio): keep edit/delete
   on one row on phones. Footer is ~296px wide on a 414 screen, so both
   buttons share the row equally (flex basis 0) regardless of text length.
--------------------------------------------------------------------- */
@media (max-width: 600px) {
  .gal-item { padding: 14px; }
  .gal-item img.box-img { height: 210px; }
  .gal-footer {
    display: flex;
    gap: 8px;
    padding-top: 14px;
  }
  .gal-footer .kafe-btn {
    flex: 1 1 0;
    min-width: 0 !important;
    padding: 8px 6px !important;
    font-size: 12.5px !important;
    margin: 0 !important;
  }
}

/* ---------------------------------------------------------------------
   2026-11-21 Education/work experience cards (/freelancer/education,
   /freelancer/workexperience): та же пара кнопок в один ряд на телефоне.
   Год (h3) и место (h4) остаются на своих строках (flex-basis 100%),
   кнопки делят последнюю строку поровну. Маркер .wv-edu-inner стоит
   только в кабинетных шаблонах — «Обо мне» публичного профиля не трогаем.
--------------------------------------------------------------------- */
@media (max-width: 600px) {
  .wv-edu-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
  }
  .wv-edu-inner h3, .wv-edu-inner h4 { flex: 1 1 100%; margin: 0; }
  .wv-edu-inner .kafe-btn {
    flex: 1 1 0;
    min-width: 0 !important;
    padding: 8px 6px !important;
    font-size: 12.5px !important;
    margin: 0 !important;
  }
}

/* ---------------------------------------------------------------------
   2026-11-21 «Опыт работы» по центру на мобиле (запрос, скрин 414px
   /freelancer/workexperience): на узких экранах кнопка «Добавить опыт
   работы» падает под заголовок, а h3 остаётся прижат к левому краю.
   Центрируем h3 (класс в workexperience.php); padding-right:20%
   из style.css сбрасываем, иначе текст центрируется со сдвигом влево.
   Десктоп не трогаем: там кнопка справа, h3 слева — общий паттерн шапок.
--------------------------------------------------------------------- */
@media (max-width: 768px) {
  .dashboard .headline.wv-headline-center-mob {
    padding-right: 0;
    text-align: center;
  }
  .dashboard .headline.wv-headline-center-mob h3 {
    text-align: center;
  }
}

/* ---------------------------------------------------------------------
   2026-11-21 Метки полей формы смены пароля (/freelancer/password,
   запрос, скрин 414px): лейблы прижаты к левому краю, при этом поля и
   кнопка «Отправить» на всю ширину. Центрируем только лейблы на мобиле
   (класс wv-center-labels в password.php). В bootstrap label inline-block
   — без display:block/text-align центр не сработает. Десктоп не трогаем.
--------------------------------------------------------------------- */
@media (max-width: 768px) {
  .dashboard form.wv-center-labels label {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* ---------------------------------------------------------------------
   2026-11-21 Год в шапке карточек «Опыт работы»/«Образование» по центру
   на мобиле (запрос, скрин 414px /freelancer/workexperience): бокс только
   вокруг года (h3 «2014 - 2016»), компанию (h4) и кнопки не трогаем.
   Маркер .wv-edu-inner стоит только в кабинетных шаблонах — «Обо мне»
   публичного профиля не задет. Выше 768px (десктоп) остаётся слева.
--------------------------------------------------------------------- */
@media (max-width: 768px) {
  .wv-edu-inner h3 {
    text-align: center;
  }
}

/* ---------------------------------------------------------------------
   Google (Gmail) sign-in — buttons on /login and /register
--------------------------------------------------------------------- */
.wv-google { margin-bottom: 18px; }
.wv-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  background: #fff !important;
  border: 1.5px solid var(--wv-line) !important;
  border-radius: 12px;
  color: var(--wv-text) !important;
  font-family: var(--wv-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--wv-shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wv-google-btn:hover,
.wv-google-btn:focus {
  border-color: #c7cdf8 !important;
  box-shadow: 0 10px 22px -12px rgba(15,23,42,.35);
  transform: translateY(-1px);
  text-decoration: none;
}
.wv-google-btn svg { flex: 0 0 auto; }
.wv-google-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--wv-muted, #64748b);
  font-size: 13px;
  text-transform: lowercase;
}
.wv-google-or::before,
.wv-google-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--wv-line);
}

/* Role chooser for a brand-new Google account */
.wv-google-role-card { max-width: 560px; margin: 0 auto; }
.wv-google-role-email {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--wv-muted, #64748b);
  word-break: break-all;
}
.wv-google-role-card .wv-google-role-btn { margin-top: 12px; }
.wv-google-role-card .wv-google-role-btn small { display: block; font-weight: 400; opacity: .85; margin-top: 4px; }
/* Вторая роль — вторичная кнопка (на белой карточке оба .kafe-btn ловили
   фиолетовый градиент от общего правила). */
.wv-google-role-card button[value="2"] {
  background: #fff !important;
  color: var(--wv-primary) !important;
  border: 1.5px solid var(--wv-line) !important;
  box-shadow: var(--wv-shadow-sm) !important;
}
.wv-google-role-card button[value="2"]:hover {
  border-color: #c7cdf8 !important;
  box-shadow: 0 10px 22px -12px rgba(15,23,42,.35) !important;
}

/* ---------------------------------------------------------------------
   /countries — витрина стран: у каждой свой рынок (2026-11-24)
--------------------------------------------------------------------- */
.wv-countries-section { padding: 56px 0 88px; }
.wv-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.wv-country-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  background: var(--wv-card);
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 30px -22px rgba(15, 23, 42, .45);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wv-country-card:hover,
.wv-country-card:focus {
  transform: translateY(-3px);
  border-color: #c7cdf8;
  box-shadow: 0 18px 40px -22px rgba(79, 70, 229, .55);
  text-decoration: none;
}
.wv-country-card.is-current {
  border-color: var(--wv-primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .18), 0 18px 40px -24px rgba(79, 70, 229, .55);
}
.wv-country-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--wv-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.wv-country-flag img {
  border-radius: 6px;
  box-shadow: 0 4px 10px -6px rgba(15, 23, 42, .5);
}
.wv-country-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--wv-text);
}
.wv-country-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--wv-muted);
}
.wv-country-stats strong { color: var(--wv-text); font-weight: 700; }
.wv-countries-hero .post-heading h4 {
  margin-top: 12px;
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
}
@media (max-width: 600px) {
  .wv-country-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .wv-country-card { padding: 16px; min-width: 0; }
  .wv-country-name { font-size: 16px; }
  .wv-country-stats { flex-direction: column; gap: 2px; font-size: 12px; }
  .wv-country-badge { position: static; order: -1; }
}

/* Страна в формах проекта: живое предупреждение о несовпадении языка и рынка */
.wv-country-notice {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.45;
}

/* Текущая страна в пункте меню «Страны» — флаг рядом с подписью */
.tr-header .wv-countries-item > a.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tr-header .wv-countries-item > a.dropdown-toggle .wv-flag {
  display: inline-flex;
  align-items: center;
}

/* ---------------------------------------------------------------------
   /how + /faq — объяснение «Страны и рынки» (2026-11-24)
   Один и тот же контент (10 языковых ключей) на двух страницах:
   на /how — карточками-шагами, на /faq — группой вопросов сверху.
--------------------------------------------------------------------- */
.wv-countries-how .headline {
  margin-top: 10px !important;
}
.wv-countries-how__lead {
  max-width: 900px;
  margin: 0 0 28px;
  color: var(--wv-muted);
  font-family: var(--wv-font);
  font-size: 16px;
  line-height: 1.7;
}
.wv-country-how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 6px;
}
.wv-country-how-card {
  height: 100%;
  margin-bottom: 0;
}
.wv-country-how-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.wv-country-how-card .about-box-description h4 {
  margin: 0 0 8px;
  color: var(--wv-text);
  font-family: var(--wv-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.wv-country-how-card .about-box-description p {
  margin: 0;
  color: var(--wv-muted);
  font-size: 14px;
  line-height: 1.65;
}
.wv-country-how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--wv-grad-soft);
  color: var(--wv-primary);
  font-family: var(--wv-font);
  font-size: 14px;
  font-weight: 800;
}
.wv-countries-how__cta {
  margin-top: 26px;
  text-align: center;
}
.wv-faq-group {
  width: 100%;
  margin-bottom: 6px;
}
.wv-faq-group__title {
  margin: 0 0 8px;
  color: var(--wv-text);
  font-family: var(--wv-font);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}
.wv-faq-group__lead {
  max-width: 900px;
  margin: 0;
  color: var(--wv-muted);
  font-size: 15px;
  line-height: 1.65;
}
.wv-faq-group__cta {
  width: 100%;
  margin: 18px 0 10px;
  text-align: center;
}
@media (max-width: 767px) {
  .wv-country-how-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .wv-countries-how__lead { font-size: 15px; }
}

/* =====================================================================
   2026-12-01: единое «окно» фото-баннеров внутренних страниц
   ---------------------------------------------------------------------
   Запрос: у всех страниц одинаковая и оптимальная высота фото-баннера
   («окна» с картинкой) и рабочий параллакс — картинка едет при прокрутке.
   Главная (.tr-banner, баннер во весь экран) намеренно не тронута.

   Было на телефоне: /how, /about, /faq, /register — 117px (высоту задавали
   паддинги 64/52 при скрытом h1), /freelancers и /projects — 177px
   (aspect-ratio), /contact — 155px, /login — 203px. Стало 200px везде:
   между прежними 177 и 203, фото читается, а баннер не съедает первый
   экран (200 из 845 ≈ 24%). На десктопе — 640px, как уже было на
   большинстве страниц; /contact выпадал (540px из-за aspect-ratio) —
   теперь тоже 640px. /login оставлен компактным: под баннером форма
   входа, и она должна оставаться на первом экране.

   Слой параллакса на телефоне: top:0, height:120%. Слой выше кадра на 20%,
   JS (freelancers.js) двигает его максимум на 18% высоты баннера — нижняя
   кромка не оголяется, картинка едет на ~36px при высоте 200px. До этого
   на /how, /faq и /projects слой был ровно в размер баннера (height:100%)
   плюс transform:none!important — двигаться было некуда, эффект не работал.
   Эти правила убраны из шаблонов (how.php, faq.php, projects.php).
   ===================================================================== */
@media (min-width: 769px) {
  body.wv-front .how-header:not(.lg-hero),
  body.wv-front .search-header {
    height: 640px !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
}
@media (max-width: 768px) {
  body.wv-front .how-header,
  body.wv-front .search-header {
    height: 200px !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
  }
  body.wv-front .how-header > .wv-parallax-bg,
  body.wv-front .how-header > .how-hero-bg,
  body.wv-front .search-header > .wv-parallax-bg,
  body.wv-front .search-header > .fl-hero-bg {
    top: 0;
    height: 120%;
    background-size: cover;
  }
}

/* 2026-11-30: фото /freelancers поднято на 4 см (2 + ещё 2 см).
   Слой уезжает вверх на 4 см; высота растёт на ту же величину, поэтому
   нижняя кромка кадра и запас для параллакса остаются прежними. */
.search-header > .fl-hero-bg {
  top: -4cm;
  height: calc(120% + 4cm);
}

