/* ============================================================
   Findly — стили прототипа
   ============================================================ */
:root {
  --bg: #f3f4f1;
  --topbar: rgba(249, 250, 247, 0.88);
  --surface: #ffffff;
  --surface-2: #f6f8f5;
  --ink: #0f2723;
  --ink-2: #33433f;
  --muted: #74817d;
  --line: #e6e9e4;
  --line-2: #d6ddd8;

  --brand: #0b574d;
  --brand-600: #0f6a5d;
  --brand-800: #073c35;
  --brand-50: #eaf4f0;
  --brand-100: #d3e9e1;
  --leaf: #12805f;

  --lime: #b9ef5b;
  --lime-600: #a7e043;
  --lime-ink: #10351f;
  --mint: #8fdcb5;

  --hero-a: #134d45;
  --hero-b: #05352f;

  --open-bg: #dcf3e2;
  --open-ink: #23794a;
  --star: #f5c518;
  --danger: #ef4444;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(15, 39, 35, 0.04), 0 4px 16px rgba(15, 39, 35, 0.04);
  --shadow-2: 0 18px 50px rgba(6, 40, 34, 0.22);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1388px;
  --gutter: 24px;
  --topbar-h: 68px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
[hidden] { display: none !important; }

.i { display: inline-flex; width: 1em; height: 1em; flex: none; }
.i svg { width: 100%; height: 100%; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--leaf) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s var(--ease-out), background-color .15s, box-shadow .15s, border-color .15s, color .15s;
}
.btn .i { font-size: 17px; transition: transform .2s var(--ease-out); }
.btn:hover .i[data-i="arrow-right"] { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 6px 18px rgba(185, 239, 91, .25); }
.btn--lime:hover { background: #c6f572; box-shadow: 0 8px 26px rgba(185, 239, 91, .38); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-600); }
.btn--outline { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand-50); }
.btn--ghost { color: var(--ink-2); background: var(--surface-2); }
.btn--ghost:hover { background: #edf1ec; }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,.35); color: #fff; height: 42px; }
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; border-radius: 10px; gap: 8px; }
.btn--sm .i { font-size: 15px; }
.btn--lg { height: 50px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink-2); transition: background-color .15s; }
.icon-btn:hover { background: rgba(15, 39, 35, .06); }
.icon-btn .i { font-size: 21px; }

.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--brand); }
.link-more .i { font-size: 16px; transition: transform .2s var(--ease-out); }
.link-more:hover .i { transform: translateX(3px); }

/* ---------------- Шапка ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--topbar);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(15,39,35,.05); }
.topbar__inner { height: var(--topbar-h); display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 40px; height: 40px; font-size: 40px; }
.logo__text { font-weight: 800; font-size: 29px; letter-spacing: -0.02em; color: var(--brand-800); }
.logo--sm .logo__mark { width: 30px; height: 30px; font-size: 30px; }
.logo--sm .logo__text { font-size: 22px; }

.nav { display: flex; gap: 6px; margin-left: 50px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: var(--topbar-h); padding: 0 14px;
  font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  transition: color .15s;
}
.nav__link:hover { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 15px; height: 2.5px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease-out);
}
.nav__link.is-active { color: var(--ink); font-weight: 800; }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__count, .tabbar__count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}

.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.bell { position: relative; }
.bell__dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px #f9faf7; }
.bell__dot.is-off { display: none; }
.bell.is-ringing .i { animation: ring .9s var(--ease-out); transform-origin: 50% 10%; }
@keyframes ring { 0%,100%{transform:rotate(0)} 15%{transform:rotate(16deg)} 30%{transform:rotate(-14deg)} 45%{transform:rotate(10deg)} 60%{transform:rotate(-6deg)} 75%{transform:rotate(3deg)} }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 16px 5px 6px; min-width: 216px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.user-chip:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.user-chip__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.user-chip__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.user-chip__name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; line-height: 1.2; }
.user-chip__chev { font-size: 14px; color: var(--muted); }
.role-badge { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--leaf); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.45; }

.popover-wrap { position: relative; }
.popover {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2);
  animation: pop .18s var(--ease-out);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.user-menu { width: 260px; padding: 6px; }
.user-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); text-align: left; }
.user-menu__item:hover { background: var(--surface-2); color: var(--ink); }
.user-menu__item .i { font-size: 17px; color: var(--muted); }

.notifications { width: 340px; max-height: 420px; overflow: auto; padding: 8px; }
.notifications h4 { font-size: 14px; padding: 8px 10px 6px; }
.notif { display: flex; gap: 10px; padding: 10px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); }
.notif:hover { background: var(--surface-2); }
.notif b { color: var(--ink); }
.notif time { display: block; font-size: 12px; color: var(--muted); }
.notif .avatar { width: 34px; height: 34px; font-size: 12px; }
.notif--new { background: var(--brand-50); }
.notif-empty { padding: 18px 10px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* ---------------- Общие блоки ---------------- */
.view { flex: 1; padding: 18px 0 64px; outline: none; }
.view > .container > * + * { margin-top: 18px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 30px !important; }
.section-title { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }

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

.avatar {
  display: inline-grid; place-items: center; flex: none; overflow: hidden;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand-800); font-weight: 800; font-size: 28px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.verified { color: var(--leaf); font-size: 19px; }

.stars { display: inline-flex; gap: 2px; color: var(--star); font-size: 17px; }
.stars .i.is-dim { color: #e3e6e1; }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.rating b { font-weight: 800; color: var(--ink); }
.rating__count { color: var(--muted); }

.meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.meta .i { font-size: 16px; color: var(--muted); }
.meta b { font-weight: 800; color: var(--ink); }

.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 15px; background: #eff3f0; color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.badge--open { background: var(--open-bg); color: var(--open-ink); }
.badge--chosen { background: #e3ecff; color: #2f55c6; }
.badge--new { background: var(--lime); color: var(--lime-ink); }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .i { font-size: 34px; color: var(--line-2); margin-bottom: 10px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px 358px;
  min-height: 282px;
  padding: 0 30px 0 42px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(41, 110, 96, .45), transparent 55%),
    linear-gradient(160deg, var(--hero-a) 0%, #0b3f39 55%, var(--hero-b) 100%);
  margin-top: 26px !important;
  isolation: isolate;
}
.hero::after { /* тонкая текстура-блик сверху */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 80% at 100% 100%, rgba(0, 0, 0, .18), transparent 60%);
}
.hero__text { padding: 30px 0 28px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; z-index: 2; container-type: inline-size; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
/* Кегль — от ширины колонки (cqi), а не окна: строка «проверенного мастера» ≈ 11.2 кегля,
   при 8.6cqi она всегда влезает, и заголовок остаётся в две строки — баннер не вытягивается. */
.hero__title { margin-top: 12px; font-size: clamp(30px, 8.6cqi, 45px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__lead { margin-top: 18px; max-width: 380px; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.88); }
.hero__text .btn { margin-top: 18px; height: 40px; padding: 0 28px; }

.hero__art { position: relative; z-index: 1; clip-path: inset(-80px -400px 0 -400px); container-type: inline-size; } /* каска может выходить вверх, снизу — обрез по баннеру */
.hero__glow {
  position: absolute; left: 50%; bottom: -120px; width: 430px; height: 430px; transform: translateX(-46%);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #3d8c66 0%, #2c7356 38%, rgba(30, 95, 72, .55) 62%, rgba(19, 77, 69, 0) 72%);
  pointer-events: none;
}
.hero__stage { position: absolute; left: 0; right: 0; bottom: 0; top: -24px; }
.hero__stage svg { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; transform: translateX(-50%); overflow: visible; cursor: pointer; }

/* растровый персонаж: постер и видео-петля (кадр 1112x834, 4:3).
   Мастер вырезан с исходного светлого фона: в WebM и PNG-постере фон прозрачный и под ним виден
   сам баннер со свечением; в MP4 для Safari фон уже зелёный, его края растворяются по бокам.
   Высота ограничена: если баннер вытянется (длинный текст), мастер не растёт вместе с ним,
   а 80cqi (ширина кадра ≈ 107% колонки) не даёт ему залезть на текст и карточку в узкой колонке. */
.hero__poster,
.hero__video {
  position: absolute; top: auto; bottom: -6px; left: 50%; height: min(calc(100% + 6px), 320px, 80cqi); width: auto; aspect-ratio: 1112 / 834;
  transform: translateX(-50%); transform-origin: 50% 100%; object-fit: cover; border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.hero.is-poster .hero__poster { opacity: 1; animation: master-breath 4.2s ease-in-out infinite; }
.hero.is-video .hero__video { opacity: 1; }
/* 3D-мастер целиком внутри кадра — режем всё по скруглённым краям баннера, иначе свечение
   (.hero__glow) на средней ширине вылезает за правый край. Каска «наружу» нужна только SVG-режиму. */
.hero.is-poster, .hero.is-video { overflow: hidden; }
.hero.is-video .hero__poster { opacity: 0; animation: none; }
.hero.is-video.is-cheer .hero__video { animation: master-cheer .9s cubic-bezier(.3,1.5,.5,1); }
.hero.is-poster .hero__stage svg, .hero.is-video .hero__stage svg { opacity: 0; transition: opacity .6s ease; }
.hero.is-poster .hero__stage, .hero.is-video .hero__stage { pointer-events: none; }
.hero.is-poster.is-cheer .hero__poster { animation: master-cheer .9s cubic-bezier(.3,1.5,.5,1); }
@keyframes master-breath {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.012, 1.018); }
}
@keyframes master-cheer {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(0); }
  30%      { transform: translateX(-50%) scale(1.035) rotate(-1.2deg); }
  60%      { transform: translateX(-50%) scale(1.02) rotate(.8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero.is-poster .hero__poster, .hero.is-poster.is-cheer .hero__poster,
  .hero.is-video.is-cheer .hero__video { animation: none; }
}
.hero__art-click { position: absolute; inset: 0; cursor: pointer; z-index: 2; background: none; }

.speech {
  position: absolute; z-index: 5; left: -8px; top: 22px; width: max-content; max-width: 170px;
  padding: 10px 14px; border-radius: 16px 16px 4px 16px;
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transform-origin: 100% 100%;
  opacity: 0; transform: translateY(6px) scale(.85);
  transition: opacity .25s var(--ease-out), transform .35s cubic-bezier(.3,1.6,.5,1);
  pointer-events: none;
}
.speech.is-on { opacity: 1; transform: none; }

.hero__card {
  align-self: center; margin: 34px 0;
  padding: 26px 26px 26px 24px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; z-index: 2;
}
.hero__card-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); color: var(--brand-800); display: grid; place-items: center; }
.hero__card-icon .i { font-size: 32px; }
.hero__card h2 { font-size: 21px; font-weight: 800; margin-top: 4px; }
.hero__card p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.82); }
.hero__card .btn { grid-column: 1 / -1; justify-self: start; margin-top: 22px; height: 50px; padding: 0 32px; font-size: 15.5px; }

/* ---------------- Категории ---------------- */
.cats {
  display: flex; align-items: center; gap: 28px;
  padding: 0 26px; min-height: 56px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.cats__label { font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--ink); }
.cats__list { display: flex; gap: 12px; overflow-x: auto; padding: 8px 2px; scrollbar-width: none; }
.cats__list::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 14px; height: 40px; padding: 0 22px 0 20px;
  border: 1px solid var(--line); border-radius: 20px; background: #fff;
  font-weight: 700; font-size: 13.5px; color: var(--ink-2); white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.chip .i { font-size: 20px; color: var(--brand); transition: color .15s; }
.chip:hover { border-color: var(--line-2); background: var(--surface-2); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; padding-left: 26px; padding-right: 30px; }
.chip.is-active .i { color: #fff; }
.chip:active { transform: scale(.98); }

/* ---------------- Карточки мастеров ---------------- */
.masters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 12px !important; }
.master { padding: 16px 18px 18px; display: flex; flex-direction: column; transition: transform .2s var(--ease-out), box-shadow .2s; animation: rise .45s var(--ease-out) both; }
.master:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15,39,35,.08); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.master__top { display: flex; gap: 18px; align-items: center; }
.master__name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.master__loc { margin-top: 4px; }
.master__top .rating { margin-top: 8px; }
.master__stats { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 20px; padding-left: 2px; }
.master__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; margin-bottom: 20px; }
.master .btn { margin-top: auto; height: 36px; font-size: 13px; }
.master__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 20px; }
.master__actions .btn { margin-top: 0; }

/* ---------------- Карточки заявок ---------------- */
.requests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px !important; }
.req {
  display: grid; grid-template-columns: 122px minmax(0, 1fr) auto; gap: 18px;
  padding: 14px 16px 14px 16px; align-items: stretch;
  animation: rise .45s var(--ease-out) both;
}
.req__photo { width: 122px; height: 124px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.req__photo img { width: 100%; height: 100%; object-fit: cover; }
.req__photo .i { font-size: 30px; }
.req__body { min-width: 0; display: flex; flex-direction: column; }
.req__cat { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.req__cat .i { font-size: 18px; color: var(--leaf); }
.req__cat .badge { margin-left: 14px; }
.req__title { margin-top: 8px; font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.req__text { margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.req__meta { margin-top: auto; padding-top: 12px; display: grid; grid-template-columns: auto auto; gap: 6px 26px; justify-content: start; }
.req__meta .meta { font-size: 12px; }
.req__meta .meta .i { font-size: 15px; color: var(--brand); }
.req__side { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 10px; padding-bottom: 6px; }
.req__side .btn { height: 36px; padding: 0 20px; font-size: 12.5px; }
.req__new-offers { font-size: 12px; font-weight: 700; color: var(--leaf); }

/* ---------------- Страница заявки ---------------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.back .i { font-size: 18px; }
.back:hover { color: var(--ink); }

.req-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.req-detail__main { padding: 24px; }
.req-detail__main h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.015em; margin-top: 10px; }
.req-detail__main > p { margin-top: 8px; color: var(--ink-2); }
.req-detail__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.fact { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.fact span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.fact span .i { font-size: 14px; }
.fact b { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 800; }
.req-detail__photos { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.req-detail__photos img { width: 120px; height: 100px; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.req-detail__aside { padding: 20px; position: sticky; top: calc(var(--topbar-h) + 16px); }
.req-detail__aside h3 { font-size: 16px; font-weight: 800; }
.how { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.how li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.how li b { display: block; color: var(--ink); font-size: 14px; }
.how__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-weight: 800; font-size: 13px; }

.offers-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px !important; }
.offers-head h2 { font-size: 22px; font-weight: 800; }
.segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: #e9ede8; }
.segmented button { height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: background-color .15s, color .15s; }
.segmented button:hover { color: var(--ink); }
.segmented button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.offers { display: grid; gap: 12px; margin-top: 12px !important; }
.offer {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; padding: 16px 18px; align-items: center;
  animation: rise .4s var(--ease-out) both;
}
.offer .avatar { width: 64px; height: 64px; font-size: 20px; }
.offer__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; font-size: 16px; }
.offer__name .badge { font-size: 11px; height: 20px; }
.offer__row { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; }
.offer__note { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.offer__note b { color: var(--ink); }
.offer__side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.offer__price { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.offer__price small { font-size: 13px; color: var(--muted); font-weight: 700; }
.offer__btns { display: flex; gap: 8px; }
.offer.is-chosen { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(18, 128, 95, .12); }
.offer.is-muted { opacity: .55; }

/* ---------------- Мастера (страница) ---------------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search {
  display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 420px;
  height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
}
.search .i { font-size: 18px; color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14.5px; min-width: 0; }
.select {
  height: 44px; padding: 0 38px 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2374817d' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

/* ---------------- Чат ---------------- */
.chat {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  height: calc(100vh - var(--topbar-h) - 120px); min-height: 520px;
  overflow: hidden; padding: 0;
}
.chat__list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat__list h2 { font-size: 20px; font-weight: 800; padding: 20px 20px 12px; }
.thread { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 12px 20px; text-align: left; transition: background-color .15s; }
.thread:hover { background: var(--surface-2); }
.thread.is-active { background: var(--brand-50); }
.thread .avatar { width: 48px; height: 48px; font-size: 16px; }
.thread__name { font-weight: 800; font-size: 14.5px; }
.thread__last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.thread__time { font-size: 12px; color: var(--muted); text-align: right; }
.thread__unread { display: inline-block; margin-top: 4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--leaf); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; }

.chat__pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.chat__head .avatar { width: 44px; height: 44px; font-size: 15px; }
.chat__head-name { font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 6px; }
.chat__head-sub { font-size: 12.5px; color: var(--muted); }
.chat__head .btn { margin-left: auto; }
.chat__back { display: none; }
.chat__context { display: flex; align-items: center; gap: 10px; margin: 12px 20px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.chat__context .i { color: var(--leaf); font-size: 16px; }
.chat__context b { color: var(--ink); }
.chat__context a { margin-left: auto; color: var(--brand); font-weight: 700; white-space: nowrap; }

.messages { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, #fbfcfa, #f6f8f5); }
.msg { max-width: min(72%, 460px); padding: 9px 13px 7px; border-radius: 16px; font-size: 14px; line-height: 1.45; position: relative; animation: msg-in .25s var(--ease-out); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.msg time { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font-size: 11px; opacity: .7; float: right; margin-top: 6px; }
.msg time .i { font-size: 14px; }
.msg--them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.msg--img { padding: 4px; }
.msg--img img { border-radius: 12px; max-height: 260px; width: auto; cursor: zoom-in; }
.msg--img time { position: absolute; right: 10px; bottom: 8px; margin: 0; padding: 1px 7px; border-radius: 8px; background: rgba(0,0,0,.45); color: #fff; opacity: 1; }
.msg-day { align-self: center; margin: 8px 0; padding: 3px 10px; border-radius: 10px; background: #eaeee9; font-size: 12px; color: var(--muted); font-weight: 600; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.composer { border-top: 1px solid var(--line); padding: 12px 16px; background: #fff; }
.composer__previews { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.composer__thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.composer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.composer__thumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.composer__thumb button .i { font-size: 12px; }
.composer__row { display: flex; align-items: flex-end; gap: 10px; }
.composer textarea { flex: 1; resize: none; max-height: 140px; min-height: 44px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); outline: none; font-size: 14.5px; line-height: 1.4; }
.composer textarea:focus { border-color: var(--brand); background: #fff; }
.composer .icon-btn { width: 44px; height: 44px; }
.composer .send { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; transition: background-color .15s, transform .15s; }
.composer .send:hover { background: var(--brand-600); }
.composer .send .i { font-size: 19px; }
.chat__empty { flex: 1; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }

/* ---------------- Модалки ---------------- */
.modal-root:empty { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(5, 30, 26, .5);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; overflow-y: auto;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-2);
  animation: modal-in .3s var(--ease-out);
}
.modal--wide { width: min(780px, 100%); }
.modal--sm { width: min(440px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 14px; background: #fff; }
.modal__head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.modal__head p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.modal__close { margin-left: auto; }
.modal__body { padding: 4px 24px 8px; }
.modal__foot { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 24px 20px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); }
.modal__foot .hint { margin-right: auto; font-size: 12.5px; color: var(--muted); }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > label, .field__label { font-weight: 700; font-size: 14px; }
.field__label small, .field > label small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.input, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; outline: none;
  font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 87, 77, .12); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 12.5px; font-weight: 600; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px;
  border: 1px solid var(--line-2); font-weight: 700; font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: all .15s;
}
.choice label .i { font-size: 18px; color: var(--brand); }
.choice label:hover { background: var(--surface-2); }
.choice input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.choice input:checked + label .i { color: #fff; }
.choice input:focus-visible + label { outline: 3px solid rgba(18,128,95,.4); outline-offset: 2px; }

.budget { position: relative; }
.budget .input { padding-right: 60px; }
.budget span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.dropzone {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line-2);
  background: var(--surface-2); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-50); }
.dropzone .i { font-size: 26px; color: var(--brand); }
.dropzone b { display: block; font-size: 14px; }
.dropzone span { font-size: 12.5px; color: var(--muted); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs:empty { display: none; }

/* профиль мастера */
.profile { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.profile .avatar { width: 120px; height: 120px; font-size: 36px; }
.profile h2 { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; }
.profile .rating { margin-top: 6px; }
.profile__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.profile__kpis .fact b { font-size: 18px; }
.profile__about { margin-top: 16px; color: var(--ink-2); }
.reviews { display: grid; gap: 10px; margin-top: 12px; }
.review { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.review__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14px; }
.review__head .stars { font-size: 14px; }
.review p { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.review time { font-size: 12px; color: var(--muted); font-weight: 600; }
.subhead { font-size: 16px; font-weight: 800; margin-top: 22px; }

.mini-master { display: flex; align-items: center; gap: 14px; }
.mini-master .avatar { width: 64px; height: 64px; font-size: 20px; }
.mini-master b { display: block; font-size: 16px; margin-bottom: 4px; }

/* тарифы для мастеров */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan { padding: 18px; border-radius: 16px; border: 1.5px solid var(--line); }
.plan--hit { border-color: var(--brand); background: var(--brand-50); }
.plan h3 { font-size: 15px; font-weight: 800; }
.plan .price { font-size: 30px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; color: var(--muted); }
.plan ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.plan li { display: flex; gap: 8px; }
.plan li .i { color: var(--leaf); font-size: 16px; margin-top: 2px; }

.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 20px; cursor: zoom-out; animation: fade .2s; }
.lightbox img { max-width: min(1000px, 100%); max-height: 90vh; border-radius: 12px; }
.lightbox__close {
  position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; cursor: pointer; transition: background-color .15s;
}
.lightbox__close:hover { background: rgba(255,255,255,.26); }
.lightbox__close .i { font-size: 22px; }
.lightbox__close:focus-visible { outline-color: #fff; }

/* ---------------- Тосты ---------------- */
.toasts { position: fixed; z-index: 99; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: var(--brand-800); color: #fff; box-shadow: var(--shadow-2);
  animation: toast-in .35s var(--ease-out);
  font-size: 13.5px;
}
.toast b { display: block; font-size: 14px; }
.toast span { color: rgba(255,255,255,.78); }
.toast .avatar { width: 40px; height: 40px; font-size: 13px; }
.toast__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--brand-800); }
.toast__icon .i { font-size: 20px; }
.toast a { color: var(--lime); font-weight: 800; white-space: nowrap; }
.toast.is-leaving { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ---------------- Подвал ---------------- */
.footer { background: var(--brand-800); color: rgba(255,255,255,.8); padding: 30px 0; }
.footer__inner { display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer .logo__text { color: #fff; }
.footer__brand { max-width: 420px; }
.footer__brand p { margin-top: 10px; font-size: 13.5px; }
.footer__pro { display: flex; align-items: center; gap: 22px; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); flex-wrap: wrap; }
.footer__pro strong { display: block; color: #fff; font-size: 16px; }
.footer__pro span { font-size: 13.5px; }

/* ---------------- Нижняя навигация (мобильная) ---------------- */
.tabbar { display: none; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1280px) {
  .hero { grid-template-columns: minmax(0, 1fr) 360px 330px; padding-left: 34px; padding-right: 24px; }
  .hero__card { padding: 22px; grid-template-columns: 52px 1fr; column-gap: 14px; }
  .hero__card-icon { width: 52px; height: 52px; }
  .hero__card-icon .i { font-size: 26px; }
  .nav { margin-left: 24px; }
}

@media (max-width: 1100px) {
  .masters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .requests { grid-template-columns: 1fr; }
  .req-detail { grid-template-columns: 1fr; }
  .req-detail__aside { position: static; }
}

@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); grid-template-rows: auto auto; padding: 0 28px; }
  .hero__text { padding-bottom: 20px; }
  .hero__art { min-height: 300px; }
  .hero__card { grid-column: 1 / -1; margin: 0 0 28px; grid-template-columns: 52px 1fr auto; align-items: center; }
  .hero__card .btn { grid-column: auto; margin-top: 0; }
  .user-chip { min-width: 0; }
  .chat { grid-template-columns: 280px minmax(0, 1fr); }
}

/* Узкий десктоп / планшет: логотип, 4 пункта меню и чип с именем не влезают в ~800 px —
   оставляем у чипа только аватар (имя и роль есть в aria-label кнопки), меню ужимаем. */
@media (max-width: 900px) {
  .nav { margin-left: 8px; gap: 2px; }
  .nav__link { padding: 0 10px; }
  .user-chip { padding: 3px; border-radius: 50%; }
  .user-chip__meta { display: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --topbar-h: 60px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .nav { display: none; }
  .logo__text { font-size: 24px; }
  .logo__mark { width: 34px; height: 34px; font-size: 34px; }
  .user-chip { padding: 3px; border-radius: 50%; }
  .user-chip__meta { display: none; }
  .user-chip__avatar { width: 34px; height: 34px; }

  .view { padding-top: 12px; }
  .hero { grid-template-columns: 1fr; padding: 0 20px; margin-top: 14px !important; }
  .hero__text { padding: 26px 0 0; }
  .hero__title { font-size: 32px; }
  .hero__lead { font-size: 14.5px; margin-top: 12px; }
  .hero__art { min-height: 250px; margin: 6px -20px 0; overflow: hidden; }
  .hero__stage { top: 0; }
  .hero__glow { width: 330px; height: 330px; bottom: -90px; }
  .hero__art { min-height: 290px; }
  .hero__stage { top: 52px; }
  .hero__poster, .hero__video { height: calc(100% - 40px); } /* каска не уходит под облачко с репликой */
  .speech { left: 16px; right: 16px; top: 4px; margin-inline: auto; width: fit-content; max-width: 280px; text-align: center; border-radius: 16px; font-size: 12.5px; transform-origin: 50% 100%; }
  .hero__card { grid-template-columns: 48px 1fr; align-items: start; margin: 0 0 20px; padding: 18px; }
  .hero__card-icon { width: 48px; height: 48px; }
  .hero__card-icon .i { font-size: 24px; }
  .hero__card h2 { font-size: 19px; margin-top: 0; }
  .master .avatar { width: 72px; height: 72px; }
  .master__top { gap: 14px; }
  .hero__card .btn { grid-column: 1 / -1; width: 100%; margin-top: 16px; }

  .cats { flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 0 6px 16px; }
  .cats__list { padding-right: 16px; }

  .section-title { font-size: 22px; }
  .page-title { font-size: 26px; }
  .masters { grid-template-columns: 1fr; }
  .req { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .req__photo { width: 92px; height: 96px; }
  .req__meta { grid-template-columns: 1fr; }
  .req__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding: 0; }
  .req__side .btn { flex: 1; max-width: 220px; margin-left: auto; }
  .req-detail__facts { grid-template-columns: 1fr 1fr; }
  .offer { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .offer .avatar { width: 52px; height: 52px; }
  .offer__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }

  .chat { grid-template-columns: 1fr; height: calc(100dvh - var(--topbar-h) - 110px); }
  .chat__list { border-right: 0; }
  .chat.has-thread .chat__list { display: none; }
  .chat:not(.has-thread) .chat__pane { display: none; }
  .chat__back { display: inline-grid; }
  .msg { max-width: 85%; }

  .row-2, .plans { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  /* подсказка в подвале — отдельной строкой над кнопками, иначе её сжимает до пары слов в строке */
  .modal__foot { flex-wrap: wrap; padding: 12px 16px 16px; }
  .modal__foot .hint { flex: 1 0 100%; margin: 0 0 2px; }
  .modal__foot .btn { flex: 1 1 auto; }
  .profile { grid-template-columns: 80px 1fr; }
  .profile .avatar { width: 80px; height: 80px; font-size: 26px; }
  .profile h2 { font-size: 20px; }
  .toasts { left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); }
  .tabbar a .i { font-size: 22px; }
  .tabbar a.is-active { color: var(--brand); }
  .tabbar__count { position: absolute; top: -4px; left: calc(50% + 6px); }
  .tabbar__fab { justify-self: center; width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; background: var(--lime); color: var(--brand-800); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(11, 87, 77, .25); }
  .tabbar__fab .i { font-size: 26px; }
  .footer { padding-bottom: 20px; }
}

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