/* ==========================================================================
   DevDesk — светлая дизайн-система
   Белые поверхности, мягкие тени, крупная типографика, спокойный акцент.
   ========================================================================== */

:root {
  /* поверхности */
  --bg: #f7f8fb;
  --bg-tint: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef1f6;
  --surface-4: #e4e9f2;

  /* линии */
  --line: #e5e9f0;
  --line-strong: #d3dae5;

  /* текст */
  --text: #0d1526;
  --text-dim: #46536b;
  /* --muted держим не светлее ~4.5:1 на белом, иначе мелкие подписи не читаются */
  --muted: #66728a;
  --faint: #8a95a9;

  /* акценты */
  --accent: #5145e5;
  --accent-hover: #4238d4;
  --accent-soft: #eeecfe;
  --accent-line: #d5d0fb;
  --accent-2: #0e9aaf;
  --accent-2-soft: #e0f5f8;

  --success: #0f9d6d;
  --success-soft: #e3f6ee;
  --warning: #c2790b;
  --warning-soft: #fdf3e0;
  --danger: #d64545;
  --danger-soft: #fdecec;
  --star: #f0a020;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  /* тени: мягкие, слоистые — как в хороших SaaS-интерфейсах */
  --shadow-xs: 0 1px 2px rgba(13, 21, 38, 0.05);
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, 0.05), 0 2px 6px rgba(13, 21, 38, 0.04);
  --shadow: 0 2px 4px rgba(13, 21, 38, 0.04), 0 12px 28px -10px rgba(13, 21, 38, 0.16);
  --shadow-lg: 0 4px 8px rgba(13, 21, 38, 0.05), 0 28px 60px -18px rgba(13, 21, 38, 0.24);
  --ring: 0 0 0 4px rgba(81, 69, 229, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --topbar-h: 74px;

  --font: "Segoe UI", "SF Pro Text", Inter, Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.16; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #ccd3e0;
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #b3bccd; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ============================================================ объявление */

.announcement {
  position: relative;
  z-index: 60;
  padding: 11px 24px;
  text-align: center;
  font-weight: 600;
  font-size: 14.5px;
  color: #2a2270;
  background: linear-gradient(90deg, #e8e5fe, #ddf3f7);
  border-bottom: 1px solid var(--accent-line);
}

/* ============================================================ шапка */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(140deg, #6355f7, #4338ca);
  box-shadow: 0 4px 12px -2px rgba(81, 69, 229, 0.5);
}

.brand__text span { color: var(--accent); }

.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.topnav a {
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.topnav a:hover { color: var(--text); background: var(--surface-3); }
.topnav a.is-active { color: var(--accent); background: var(--accent-soft); }

.topnav .pill {
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
}

.topnav a.is-active .pill { background: var(--accent); }

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.topbar__burger { display: none; }

/* Дубль кнопок входа — виден только в мобильном меню. */
.topnav__auth { display: none; }

/* ============================================================ кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 620;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: transform 0.12s var(--ease), background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:hover { background: var(--surface-2); border-color: #c3ccdb; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn svg { flex-shrink: 0; }

.btn--primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 1px 2px rgba(13, 21, 38, 0.08), 0 6px 16px -6px rgba(81, 69, 229, 0.6);
}
.btn--primary:hover { background: var(--accent-hover); border-color: transparent; }

.btn--accent {
  background: var(--accent-2);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 1px 2px rgba(13, 21, 38, 0.08), 0 6px 16px -6px rgba(14, 154, 175, 0.55);
}
.btn--accent:hover { background: #0b8496; border-color: transparent; }

.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-dim); }
.btn--ghost:hover { background: var(--surface-3); border-color: transparent; box-shadow: none; color: var(--text); }

.btn--danger { background: var(--surface); color: var(--danger); border-color: #f0c9c9; }
.btn--danger:hover { background: var(--danger-soft); border-color: #e5adad; }

.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn--sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 8px; }
.btn--block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: #c3ccdb; }
.icon-btn.has-badge { position: relative; }

.icon-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid var(--surface);
}

/* ============================================================ формы */

.field { display: grid; gap: 6px; }
.field__label { font-size: 13.5px; font-weight: 620; color: var(--text-dim); }
.field__hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.input, .select, .textarea {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.textarea { height: auto; min-height: 118px; padding: 11px 13px; resize: vertical; line-height: 1.55; }

.select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378859d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 17px;
  cursor: pointer;
}

.search { position: relative; display: flex; align-items: center; }

.search svg {
  position: absolute;
  left: 14px;
  color: var(--faint);
  pointer-events: none;
}

.search .input { padding-left: 43px; }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 14.5px;
  color: var(--text-dim);
}

.checkbox input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

/* ============================================================ базовые блоки */

.view {
  position: relative;
  min-height: calc(100vh - var(--topbar-h) - 280px);
  padding-bottom: 90px;
}

.section { padding-top: 76px; }
.section--tight { padding-top: 44px; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section__title { font-size: clamp(25px, 3vw, 36px); }
.section__sub { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(15, 157, 109, 0.16);
  animation: pulse 2.4s infinite;
}

@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(15, 157, 109, 0); } }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card--pad { padding: 26px; }

.empty {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 68px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
}

.empty h3 { color: var(--text); font-size: 19px; }

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-3) 25%, #f6f8fb 50%, var(--surface-3) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer { to { background-position: -400% 0; } }

/* ============================================================ hero */

.hero {
  position: relative;
  padding: 76px 0 20px;
}

/* Мягкая подсветка вместо тяжёлого градиента — фон остаётся светлым.
   Держим строго в пределах ширины: вынос за края даёт горизонтальный скролл. */
.hero::before {
  content: "";
  position: absolute;
  inset: -180px 0 auto 0;
  height: 620px;
  background:
    radial-gradient(46% 50% at 22% 30%, rgba(81, 69, 229, 0.1), transparent 72%),
    radial-gradient(40% 46% at 80% 12%, rgba(14, 154, 175, 0.09), transparent 72%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 780;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  margin-top: 20px;
  font-size: clamp(16.5px, 1.3vw, 19px);
  color: var(--text-dim);
  max-width: 55ch;
}

.hero__actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.avatars { display: flex; }

.avatars .avatar {
  margin-left: -11px;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-xs);
}

.avatars .avatar:first-child { margin-left: 0; }

.hero__trust-text { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.hero__trust-text b { color: var(--text); }

.hero__panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.hero__panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.hero__panel-dots { display: flex; gap: 5px; }
.hero__panel-dots i { width: 10px; height: 10px; border-radius: 99px; }
.hero__panel-dots i:nth-child(1) { background: #ff5f57; }
.hero__panel-dots i:nth-child(2) { background: #febc2e; }
.hero__panel-dots i:nth-child(3) { background: #28c840; }

.hero__mini { display: grid; gap: 8px; }

.hero__mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  animation: floatIn 0.5s var(--ease) both;
}

.hero__mini-row:nth-child(2) { animation-delay: 0.07s; }
.hero__mini-row:nth-child(3) { animation-delay: 0.14s; }
.hero__mini-row:nth-child(4) { animation-delay: 0.21s; }

@keyframes floatIn { from { opacity: 0; transform: translateY(12px); } }

.hero__mini-row .meta { min-width: 0; flex: 1; }
.hero__mini-row .meta b { display: block; font-size: 14.5px; }
.hero__mini-row .meta span { font-size: 12.5px; color: var(--muted); }

/* ============================================================ статистика */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 66px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat { padding: 28px 24px; background: var(--surface); }

.stat__value {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 780;
  letter-spacing: -0.035em;
  color: var(--text);
}

.stat__label { margin-top: 4px; font-size: 13.5px; color: var(--muted); font-weight: 550; }

/* ============================================================ категории */

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.cat {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}

.cat:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.cat__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.cat__title { font-size: 16.5px; font-weight: 680; }

.cat__meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.cat__meta b { color: var(--text-dim); font-weight: 680; }

/* ============================================================ чипы стека */

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px 0 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 620;
  color: var(--text-dim);
  white-space: nowrap;
}

.stack-chip__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
}

.stack-chip__icon svg { width: 12px; height: 12px; }

.stack-chip__icon .mono {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.stack-list { display: flex; gap: 6px; flex-wrap: wrap; }
.stack-list--tight .stack-chip { height: 26px; font-size: 11.5px; }

.stack-more {
  display: inline-grid;
  place-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px dashed var(--line-strong);
  font-size: 11.5px;
  font-weight: 680;
  color: var(--muted);
}

/* ============================================================ аватар */

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-weight: 750;
  font-size: 14.5px;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 62%);
}

.avatar--sm { width: 33px; height: 33px; border-radius: 10px; font-size: 12px; }
.avatar--lg { width: 60px; height: 60px; border-radius: 18px; font-size: 21px; }
.avatar--xl { width: 92px; height: 92px; border-radius: 26px; font-size: 30px; }

.avatar-wrap { position: relative; flex-shrink: 0; }

.avatar-wrap .online {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 13px;
  height: 13px;
  border-radius: 99px;
  background: var(--success);
  border: 2.5px solid var(--surface);
}

/* ============================================================ работы */

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.work {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.2s, box-shadow 0.22s;
}

.work:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.work__cover {
  position: relative;
  aspect-ratio: 5 / 3;
  background: var(--surface-3);
  overflow: hidden;
}

.work__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.work:hover .work__cover img { transform: scale(1.045); }

.work__badge {
  position: absolute;
  top: 13px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-xs);
  font-size: 12px;
  font-weight: 720;
  color: var(--text);
}

.work__badge svg { color: var(--star); }

.work__body { display: flex; flex-direction: column; gap: 13px; padding: 19px; flex: 1; }

.work__title {
  font-size: 17px;
  font-weight: 680;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work__facts { display: flex; gap: 6px; flex-wrap: wrap; }

.fact {
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--accent-2-soft);
  border: 1px solid #bfe6ed;
  color: #086b7c;
  font-size: 11.5px;
  font-weight: 650;
}

.work__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.work__author { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.work__author b { display: block; font-size: 13.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work__author span { font-size: 12px; color: var(--muted); }
.work__price { text-align: right; flex-shrink: 0; }
.work__price b { display: block; font-size: 16px; font-weight: 760; letter-spacing: -0.02em; }
.work__price span { font-size: 11.5px; color: var(--muted); }

/* ============================================================ карточка исполнителя */

.devs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.dev {
  display: grid;
  gap: 15px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}

.dev:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }

.dev__top { display: flex; gap: 13px; align-items: flex-start; }
.dev__ident { min-width: 0; flex: 1; }

.dev__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dev__name .verified { color: var(--accent-2); flex-shrink: 0; }
.dev__title { font-size: 13.5px; color: var(--text-dim); margin-top: 2px; }
.dev__city { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; }

.dev__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 9px;
  background: #fdf6e7;
  border: 1px solid #f2e0bb;
  flex-shrink: 0;
}

.dev__rating svg { color: var(--star); }
.dev__rating b { font-size: 14px; font-weight: 760; color: #8a5d06; }
.dev__rating span { font-size: 11.5px; color: #a8853c; }

.dev__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
  border: 1px solid var(--line);
}

.dev__stat { padding: 10px 8px; text-align: center; background: var(--surface-2); }
.dev__stat b { display: block; font-size: 15.5px; font-weight: 750; letter-spacing: -0.02em; }
.dev__stat span { font-size: 10.5px; color: var(--muted); font-weight: 550; }

.dev__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.dev__rate b { font-size: 16.5px; font-weight: 760; letter-spacing: -0.02em; }
.dev__rate span { font-size: 12px; color: var(--muted); }

.badge-level {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 720;
  background: var(--accent-soft);
  color: #4136c4;
  border: 1px solid var(--accent-line);
}

.badge-level[data-level="Топ-мастер"] { background: #fdf3e0; color: #96620a; border-color: #f0dcb4; }
.badge-level[data-level="Эксперт"] { background: var(--success-soft); color: #0a7a54; border-color: #b9e6d4; }
.badge-level[data-level="Новичок"] { background: var(--surface-3); color: var(--muted); border-color: var(--line-strong); }

/* ============================================================ фильтры */

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 11px;
  padding: 15px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  align-items: center;
}

.filters--3 { grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(0, 1fr)) auto; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 620;
  color: var(--text-dim);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s;
}

.chip:hover { border-color: #c3ccdb; color: var(--text); background: var(--surface-2); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 10px -4px rgba(81, 69, 229, 0.6); }

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.result-line b { color: var(--text); font-weight: 680; }

/* ============================================================ пагинация */

.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 40px; flex-wrap: wrap; }

.pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  font-weight: 620;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s;
}

.pagination button:hover:not(:disabled) { border-color: #c3ccdb; color: var(--text); background: var(--surface-2); }
.pagination button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination button:disabled { opacity: 0.4; cursor: default; }
.pagination .gap { color: var(--faint); padding: 0 4px; }

/* ============================================================ профиль исполнителя */

.profile-head {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.profile-head__inner { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.profile-head__main { flex: 1; min-width: 260px; }
.profile-head__name { display: flex; align-items: center; gap: 10px; font-size: clamp(23px, 2.8vw, 32px); flex-wrap: wrap; }
.profile-head__title { margin-top: 5px; font-size: 16.5px; color: var(--text-dim); }

.profile-head__meta {
  display: flex;
  gap: 18px;
  margin-top: 13px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

.profile-head__meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.profile-stats .stat { padding: 18px 14px; background: var(--surface-2); }
.profile-stats .stat__value { font-size: 24px; }
.profile-stats .stat__label { font-size: 12.5px; }

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-3);
  overflow-x: auto;
}

.tabs button {
  flex: 1;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-weight: 620;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.tabs button:hover { color: var(--text); }
.tabs button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

.service {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.service:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.service__main { flex: 1; min-width: 0; }
.service__title { font-size: 16px; font-weight: 680; }
.service__desc { margin-top: 5px; font-size: 13.5px; color: var(--muted); }
.service__side { text-align: right; flex-shrink: 0; display: grid; gap: 7px; justify-items: end; }
.service__price { font-size: 19px; font-weight: 760; letter-spacing: -0.02em; }
.service__days { font-size: 12.5px; color: var(--muted); }

.review {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.review__head { display: flex; gap: 11px; align-items: center; margin-bottom: 11px; }
.review__ident { flex: 1; min-width: 0; }
.review__ident b { display: block; font-size: 14.5px; font-weight: 680; }
.review__ident span { font-size: 12px; color: var(--muted); }
.review__text { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }

.review__foot {
  display: flex;
  gap: 14px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 15px; height: 15px; color: var(--surface-4); }
.stars svg.on { color: var(--star); }

.rating-bars { display: grid; gap: 8px; }
.rating-bar { display: grid; grid-template-columns: 30px 1fr 36px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.rating-bar .track { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rating-bar .fill { height: 100%; border-radius: 99px; background: var(--star); }

/* ============================================================ заказы */

.orders-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.orders-summary .stat { padding: 17px; }
.orders-summary .stat__value { font-size: 23px; }
.orders-summary .stat__label { font-size: 12.5px; }

.order {
  display: grid;
  gap: 15px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.order:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.order__head { display: flex; gap: 16px; align-items: flex-start; }
.order__main { flex: 1; min-width: 0; }
.order__title { font-size: 17.5px; font-weight: 680; }
.order__desc { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.order__side { text-align: right; flex-shrink: 0; }
.order__budget { font-size: 20px; font-weight: 760; letter-spacing: -0.03em; }
.order__days { font-size: 12.5px; color: var(--muted); }

.order__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.order__people { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 200px; }
.order__people .who { font-size: 13px; }
.order__people .who b { display: block; font-weight: 620; }
.order__people .who span { color: var(--muted); font-size: 12px; }
.order__actions { display: flex; gap: 7px; flex-wrap: wrap; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.status[data-s="open"] { background: var(--accent-2-soft); color: #086b7c; border-color: #bfe6ed; }
.status[data-s="in_progress"] { background: var(--accent-soft); color: #4136c4; border-color: var(--accent-line); }
.status[data-s="review"] { background: var(--warning-soft); color: #96620a; border-color: #f0dcb4; }
.status[data-s="done"] { background: var(--success-soft); color: #0a7a54; border-color: #b9e6d4; }
.status[data-s="cancelled"] { background: var(--danger-soft); color: #b03434; border-color: #f0c9c9; }

/* ============================================================ чат */

.chat-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  height: calc(100vh - var(--topbar-h) - 150px);
  min-height: 520px;
}

.chat-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.chat-list__head { padding: 16px; border-bottom: 1px solid var(--line); }
.chat-list__items { flex: 1; overflow-y: auto; }

.chat-item {
  display: flex;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
}

.chat-item:hover { background: var(--surface-2); }
.chat-item.is-active { background: var(--accent-soft); }
.chat-item__body { flex: 1; min-width: 0; }
.chat-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.chat-item__name { font-size: 14.5px; font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item__time { font-size: 11px; color: var(--faint); flex-shrink: 0; }
.chat-item__last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.chat-item__unread {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  align-self: center;
}

.chat-room {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.chat-room__head { display: flex; align-items: center; gap: 12px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.chat-room__ident { flex: 1; min-width: 0; }
.chat-room__ident b { display: block; font-size: 15.5px; font-weight: 680; }
.chat-room__ident span { font-size: 12.5px; color: var(--muted); }

.chat-room__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--surface-2);
  scroll-behavior: smooth;
}

.chat-day {
  align-self: center;
  padding: 4px 12px;
  margin: 8px 0;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 650;
  color: var(--muted);
}

.bubble {
  max-width: min(70%, 560px);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  word-break: break-word;
  animation: bubbleIn 0.22s var(--ease) both;
}

@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } }

.bubble--in {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-xs);
}

.bubble--out {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 8px -2px rgba(81, 69, 229, 0.5);
}

.bubble__time { margin-top: 3px; font-size: 10.5px; opacity: 0.62; text-align: right; }

.chat-room__foot { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); align-items: flex-end; background: var(--surface); }
.chat-room__foot .textarea { min-height: 44px; max-height: 140px; }

/* ============================================================ админка */

.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; min-width: 760px; }

th {
  padding: 13px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--surface-2);
}

td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text-dim);
  border: 1px solid var(--line);
}

.tag--dev { background: var(--accent-soft); color: #4136c4; border-color: var(--accent-line); }
.tag--client { background: var(--accent-2-soft); color: #086b7c; border-color: #bfe6ed; }
.tag--admin { background: var(--warning-soft); color: #96620a; border-color: #f0dcb4; }

/* ============================================================ модалка */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 21, 38, 0.42);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.18s var(--ease);
  overflow-y: auto;
}

@keyframes fadeIn { from { opacity: 0; } }

.modal__box {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.26s var(--ease);
}

.modal__box--wide { width: min(100%, 940px); }

@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.modal__title { font-size: 21px; }
.modal__body { padding: 26px; display: grid; gap: 17px; }
.modal__foot { display: flex; gap: 11px; padding: 0 26px 26px; }
.modal__cover { aspect-ratio: 5 / 3; background: var(--surface-3); }
.modal__cover img { width: 100%; height: 100%; object-fit: cover; }

.modal__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.modal__close:hover { color: var(--text); background: var(--surface-3); }

.form-error {
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid #f0c9c9;
  color: #b03434;
  font-size: 13.5px;
  font-weight: 600;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.role-pick label {
  display: grid;
  gap: 3px;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
}

.role-pick label:hover { border-color: #c3ccdb; background: var(--surface-2); }
.role-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--ring); }
.role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick b { font-size: 15px; font-weight: 680; }
.role-pick span { font-size: 12.5px; color: var(--muted); }

.stack-pick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
}

.stack-pick label { cursor: pointer; }
.stack-pick input { position: absolute; opacity: 0; pointer-events: none; }
.stack-pick label:has(input:checked) .stack-chip {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #4136c4;
}

/* ============================================================ «как это работает» */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }

.step {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ============================================================ CTA */

.cta {
  position: relative;
  margin-top: 84px;
  padding: 58px 44px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, #f4f2ff, #eaf7fa);
  overflow: hidden;
  text-align: center;
}

.cta__inner { position: relative; display: grid; gap: 16px; justify-items: center; }
.cta h2 { font-size: clamp(25px, 3.2vw, 37px); }
.cta p { color: var(--text-dim); max-width: 54ch; font-size: 16.5px; }
.cta__actions { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }

/* ============================================================ подвал */

.footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer__inner {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  padding: 50px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 44px;
}

.footer__brand .brand__text { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; }
.footer__brand .brand__text span { color: var(--accent); }
.footer__brand p { margin-top: 12px; color: var(--muted); font-size: 14.5px; max-width: 46ch; }
.footer__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-content: start; }
.footer__stats div b { display: block; font-size: 23px; font-weight: 760; letter-spacing: -0.03em; }
.footer__stats div span { font-size: 12.5px; color: var(--muted); }

.footer__bottom {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ============================================================ тосты */

.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: grid; gap: 10px; justify-items: end; }

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 14.5px;
  font-weight: 600;
  max-width: 400px;
  animation: toastIn 0.28s var(--ease);
}

.toast--error { border-color: #f0c9c9; background: var(--danger-soft); color: #b03434; }
.toast--success { border-color: #b9e6d4; background: var(--success-soft); color: #0a7a54; }

@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } }

/* ============================================================ адаптив */

@media (max-width: 1180px) {
  .works-grid, .devs-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --topbar-h: 66px; }
  .topbar__inner, .container, .footer__inner, .footer__bottom { width: min(100% - 32px, var(--container)); }
  .topnav {
    position: fixed;
    inset: var(--topbar-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.28s var(--ease);
  }
  .topnav.is-open { transform: translateY(0); }
  .topnav a { padding: 12px 14px; font-size: 16px; }
  .topbar__burger { display: grid; }
  .topnav__auth {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  /* Кнопки входа живут в меню, из шапки их убираем — иначе не помещаются. */
  .topbar__actions .btn { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .filters, .filters--3 { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  .orders-summary { grid-template-columns: repeat(3, 1fr); }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-list { max-height: 320px; }
  .chat-room { min-height: 520px; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .section { padding-top: 52px; }
  .hero { padding-top: 44px; }
  .works-grid, .devs-grid, .cat-grid, .steps { grid-template-columns: 1fr; }
  .stats, .profile-stats, .orders-summary, .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .filters, .filters--3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .card--pad, .profile-head, .cta { padding: 20px; }
  .modal { padding: 12px; }
  .modal__head, .modal__body { padding: 19px; }
  .modal__foot { padding: 0 19px 19px; }
  .toasts { left: 16px; right: 16px; justify-items: stretch; }
  .toast { max-width: none; }
  .btn--lg { height: 46px; padding: 0 20px; font-size: 15.5px; }
  .bubble { max-width: 86%; }
  .work__foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
