@font-face {
  font-family: "Momo Trust Sans";
  src: url("assets/fonts/momo-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Momo Trust Sans";
  src: url("assets/fonts/momo-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Momo Trust Sans";
  src: url("assets/fonts/momo-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Momo Trust Sans";
  src: url("assets/fonts/momo-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #ffffff;
  --page: #fbfbfc;
  --blush: #fff2f3;
  --blush-2: #ffe8eb;
  --accent: #ef4459;
  --accent-dark: #d9364b;
  --accent-soft: #ffd7dd;
  --ink: #111114;
  --muted: #70707a;
  --line: #f0dfe1;
  --card: #ededee;
  --radius: 26px;
  --content: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Momo Trust Sans", "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.65; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; }
h1 { font-size: clamp(36px, 4.2vw, 60px); }
.hero h1 { max-width: 1040px; }
h2 { font-size: clamp(28px, 3.2vw, 44px); }
h3 { font-size: 15px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 241, 242, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.topbar-inner {
  max-width: var(--content); margin: 0 auto; height: 100px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 24px; position: relative;
  transition: height 0.25s ease;
}
.topbar .brand {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  transition: top 0.25s ease, transform 0.25s ease, font-size 0.25s ease;
  z-index: 2; white-space: nowrap;
}.topbar.scrolled .brand { top: 6px; transform: translateX(-50%); }
.lang { grid-column: 1; display: flex; align-items: center; gap: 8px; letter-spacing: 0.04em; }
.lang b { color: var(--accent); font-weight: 700; }
.lang span { color: #f3b8c1; }
.lang a:hover { color: var(--accent); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.03em;
}
.brand-word b { font-weight: 700; color: var(--ink); }
.brand-word em { font-style: normal; font-weight: 700; color: var(--accent); }
.brand-icon { width: 30px; height: 30px; fill: none; stroke: none; }
.brand-img { width: 30px; height: 30px; object-fit: contain; display: block; }
.icon-img { width: 36px; height: 36px; }
.brand.small .brand-img { width: 22px; height: 22px; }
.brand.small { font-size: 17px; }
.brand.small .brand-icon { width: 22px; height: 22px; }
.icon-btn {
  justify-self: end; grid-column: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: #ffe4e8; }
.icon-btn svg { width: 34px; height: 34px; fill: none; stroke: none; }
.icon-img { width: 36px; height: 36px; object-fit: contain; display: block; }

/* компактный поиск в шапке при скролле */
.header-search {
  position: absolute; left: 50%; bottom: 13px;
  width: min(420px, calc(100% - 48px)); height: 44px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 3px solid var(--accent); border-radius: 999px;
  padding: 2px 3px 2px 16px;
  opacity: 0; pointer-events: none; transform: translate(-50%, -6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
}
.topbar.scrolled .header-search {
  opacity: 1; pointer-events: auto; transform: translate(-50%, 0);
}
.header-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  color: #000; padding: 8px 0;
}
.header-search input::placeholder { color: #bfbfbf; }
.header-search button {
  width: 32px; height: 32px; flex: none; border-radius: 50%; border: 0;
  background: var(--accent); display: grid; place-items: center; cursor: pointer;
}
.header-search button svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2.2; }

/* hero */
.hero {
  position: relative; max-width: none; margin: 0;
  min-height: calc(100vh - 100px);
  padding: 80px 24px 100px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 2; width: min(var(--content), 100%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video {
  position: absolute; inset: -10%; width: 120%; height: 120%;
  object-fit: cover; filter: blur(26px) brightness(1.22) saturate(135%);
  transform: scale(1.08); opacity: 0.85; z-index: 1;
}
.hero-fallback {
  position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(45% 55% at 28% 38%, #ffb6c0 0%, transparent 62%),
    radial-gradient(42% 52% at 72% 62%, #ffd9a8 0%, transparent 62%),
    radial-gradient(52% 60% at 56% 28%, #b9d4ff 0%, transparent 66%),
    #fff3f4;
  filter: blur(70px) saturate(150%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.08); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.62) 65%, #ffffff 100%);
}
.hero h1 { max-width: 640px; font-size: clamp(26px, 2vw, 34px); letter-spacing: -0.02em; }
.search-card {
  width: min(536px, 100%); margin-top: 10px; background: var(--blush);
  border-radius: 35px; padding: 28px 30px 8px; text-align: left;
}
.search-pill {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 3px solid var(--accent); border-radius: 999px; padding: 2px 7px 2px 20px;
}
.search-pill input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 17px; color: var(--ink); padding: 12px 0;
}
.search-pill input::placeholder { color: #b9b9bd; }
.search-pill button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent);
  display: grid; place-items: center; cursor: pointer; transition: background 0.18s, transform 0.18s;
}
.search-pill button:hover { background: var(--accent-dark); }
.search-pill button svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; }

.niches { margin-top: 22px; }
.niches-label {
  display: block; font-size: 15px; letter-spacing: 0.01em; text-align: center;
  color: #ffc3ca; margin-bottom: 8px;
}
.niche-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid #ffd9de; font-size: 17px; font-weight: 700;
}
.niche-row:last-child { border-bottom: 0; }
.niche-row .arrow { width: 22px; height: 22px; object-fit: contain; transition: transform 0.18s; }
.niche-row:hover .arrow { transform: translate(2px, -2px); }

/* choose / masonry */
.choose { max-width: var(--content); margin: 0 auto; padding: 130px 24px 40px; background: #fff; }
.choose-label { text-align: center; font-size: 15px; color: var(--ink); margin: 0 0 18px; }
.masonry {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 94px; gap: 12px;
}
.tile {
  position: relative; overflow: hidden; border-radius: 25px; background: #d9d9d9;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; border: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(20, 10, 15, 0.08); }
.tile-1 { grid-column: 1; grid-row: 1 / span 2; }
.tile-2 { grid-column: 2; grid-row: 1 / span 3; }
.tile-3 { grid-column: 3; grid-row: 1 / span 2; }
.tile-4 { grid-column: 1; grid-row: 3 / span 3; }
.tile-5 { grid-column: 2; grid-row: 4 / span 2; }
.tile-6 { grid-column: 3; grid-row: 3 / span 3; }
.tile-art {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.tile-art svg { width: 64px; height: 64px; fill: none; stroke: #a6a6aa; stroke-width: 1.8; }
.tile-foot { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; color: #2a2a2e; }
.tile-foot b { font-size: 17px; letter-spacing: -0.02em; }
.tile-foot span { font-size: 12px; color: #6f6f75; }
.art-model, .art-script, .art-build, .art-ui, .art-vfx, .art-anim { background: #d9d9d9; }

/* alerts */
.alerts {
  max-width: var(--content); margin: 40px auto 0; padding: 60px 24px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 20px; align-items: center;
  border-top: 1px solid var(--line);
}
.alerts-copy h2 { font-size: 30px !important; line-height: 1.05; margin: 6px 0 0; }
.alerts .label { font-size: 22px !important; letter-spacing: 0.1em; color: #ff8f9b; }
.alerts-copy p { max-width: 290px; }
.notif-img {
  width: 100%; max-width: 400px; justify-self: end; display: block;
  height: auto; filter: drop-shadow(0 24px 50px rgba(30, 10, 20, 0.12));
}
.label {
  display: inline-block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #f18b98; margin-bottom: 14px;
}
.alerts-copy p { font-size: 16px; margin: 18px 0 26px; max-width: 480px; }
.phone {
  width: 340px; margin: 0 auto; padding: 16px 14px 24px; border-radius: 34px;
  background: #fff; border: 1px solid #f1dfe2; box-shadow: 0 30px 60px rgba(30, 10, 20, 0.08);
}
.phone-notch { width: 100px; height: 5px; border-radius: 99px; background: #f0e6e8; margin: 0 auto 20px; }
.tg { background: #fff6f7; border: 1px solid #ffe0e5; border-radius: 18px; padding: 14px; }
.tg-head { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.tg-head span { font-size: 10px; color: var(--accent); background: #ffe3e7; padding: 2px 6px; border-radius: 5px; margin-left: 6px; }
.tg-card { background: #fff; border: 1px solid #ffe0e5; border-radius: 13px; padding: 13px; }
.tg-card b { font-size: 14px; }
.tg-card em { display: block; font-style: normal; color: var(--accent); font-size: 12.5px; margin: 5px 0; font-weight: 700; }
.tg-card p { font-size: 12.5px; margin: 0 0 10px; }
.tg-link { color: var(--accent); font-size: 12.5px; font-weight: 600; }
.tg-meta { font-size: 11px; color: #b39aa0; margin-top: 10px; }

/* how */
.how { max-width: var(--content); margin: 0 auto; padding: 60px 24px 0; text-align: center; }
.how h2 { max-width: 640px; margin: 0 auto; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; text-align: left; }
.how-step { border-top: 1px solid var(--line); padding-top: 18px; }
.how-step span { font-size: 12px; color: var(--accent); font-weight: 700; }
.how-step b { display: block; margin: 8px 0 6px; font-size: 16px; }
.how-step p { margin: 0; font-size: 13.5px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
  white-space: nowrap; transition: background 0.18s, transform 0.18s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--blush); }
.btn-small { padding: 8px 14px; font-size: 12.5px; border-radius: 999px; }
.btn-primary { background: var(--accent); color: #fff; }

/* cta */
.cta {
  max-width: var(--content); margin: 0 auto; padding: 16px 24px 90px; text-align: center;
  background: none; border-top: 0; border-radius: 0;
}
.cta-start { padding: 8px 30px; font-size: 22px !important; }
.cta-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.cta-form input {
  flex: 1; min-width: 0; border: 1px solid #f3c9cf; background: #fff; border-radius: 999px;
  padding: 13px 20px; font-size: 14px; outline: none; color: var(--ink);
}
.cta-form input:focus { border-color: var(--accent); }

/* footer */
.footer {
  max-width: var(--content); margin: 0 auto; padding: 52px 24px 54px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.footer p { margin: 0; }
.footer-links { margin-left: auto; display: flex; gap: 22px; }
.footer-links a:hover { color: var(--accent); }

/* search page */
.search-main { max-width: var(--content); margin: 0 auto; padding: 30px 24px 70px; }
.search-head { margin-bottom: 12px; }
.search.small { width: 100%; max-width: 780px; }
.search-inner {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 3px solid var(--accent); border-radius: 999px; padding: 4px 4px 4px 20px;
}
.search-icon { width: 20px; height: 20px; fill: none; stroke: #e3919c; stroke-width: 1.8; flex: none; }
.search-inner input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 15.5px; padding: 11px 0; background: transparent; color: var(--ink); }
.search-inner input::placeholder { color: #e3a3ac; }
.search-inner .btn { padding: 11px 20px; }
.understood { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.understood-label { font-size: 12.5px; color: var(--muted); }
.link-btn { border: 0; background: none; color: var(--accent); font-size: 12.5px; cursor: pointer; font-weight: 600; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 11.5px; color: #9b4753; padding: 5px 10px; border-radius: 999px;
  background: var(--blush); border: 0;
}
.tag.is-excluded {
  background: #000; color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
}
.tag.is-excluded::before {
  content: "×"; font-size: 20px !important; line-height: 1;
  margin: 0; display: block;
}

.understood-editor { display: none; }
.edit-panel {
  margin-top: 14px; background: #fff1f2; border-radius: 18px; padding: 16px 18px;
}
.edit-panel[hidden] { display: none; }
.edit-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.edit-search input {
  flex: 1 1 260px; min-width: 0; border: 0; outline: none; border-radius: 999px;
  padding: 10px 16px; font-size: 13px; font-family: inherit; font-weight: 700;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 3px #ffd9df;
}
.edit-search input:focus { box-shadow: inset 0 0 0 3px var(--accent); }
.edit-search .edit-hint { margin-left: auto; font-size: 11.5px; color: #b58c93; }
.tag-chip[hidden], .edit-group[hidden] { display: none !important; }
.edit-scroll {
  margin-top: 16px; max-height: 320px; overflow-y: auto; padding-right: 6px;
  overscroll-behavior: contain;
}
.edit-scroll::-webkit-scrollbar { width: 6px; }
.edit-scroll::-webkit-scrollbar-thumb { background: #ffcdd4; border-radius: 99px; }
.edit-scroll::-webkit-scrollbar-track { background: transparent; }
.edit-group + .edit-group { margin-top: 18px; }
.edit-group h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: #b58c93; margin: 0 0 9px;
}
.edit-hint { font-size: 12.5px; color: var(--muted); padding: 6px 2px; }

.results-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.filters {
  border: 0; border-radius: 18px; padding: 18px 20px;
  background: #fff1f2; height: fit-content; position: static;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px;
}
.filters h4 { grid-column: 1 / -1; }
.filters h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: #b58c93; margin: 0 0 10px; }
.filters h4:not(:first-child) { margin-top: 20px; }
.filter-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  border: 0; cursor: pointer; border-radius: 999px; padding: 8px 14px;
  background: #ffe3e7; color: #9b4753; font-size: 12.5px; font-weight: 700;
  font-family: inherit; line-height: 1.2; transition: background 0.18s, color 0.18s;
}
.filter-chip:hover { background: #ffd3d9; }
.filter-chip.is-on { background: var(--accent); color: #fff; }
.filter-chip.is-on:hover { background: #f03d3d; }
.filter-chip.is-excluded { background: #000; color: #fff; }
.filter-chip.is-excluded:hover { background: #1c1c1c; }
.filters .range { grid-column: 1 / -1; margin-top: 4px; }
.budget-head {
  grid-column: 1 / -1; margin-top: 20px; position: relative;
  display: block; min-height: 30px;
}
.budget-head h4 { margin: 0; }
.budget-current {
  position: absolute; left: calc(50% + var(--budget-offset, 0px)); top: 0; transform: translateX(-50%);
  border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 22px !important; font-weight: 700 !important; letter-spacing: normal;
  text-transform: none; color: #b58c93; transition: color 0.2s; white-space: nowrap;
}
.budget-current:hover { color: #9b6a74; }
.budget-current.is-active { color: var(--accent); }
.range { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.range input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 22px;
  background: transparent; cursor: pointer; accent-color: var(--accent);
}
.range input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px; background: #ffd9df;
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px;
  margin-top: -6px; border-radius: 50%; background: var(--accent); border: 0;
  box-shadow: 0 2px 6px rgba(255, 75, 75, 0.35);
}
.range input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 99px; background: #ffd9df;
}
.range input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 0;
}
.range input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.results-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.results-top b { color: var(--ink); }
.sort { position: relative; }
.sort-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: #fff6f7; border-radius: 999px; padding: 9px 16px;
  cursor: pointer; font-family: inherit; font-size: 22px !important;
  font-weight: 700; color: var(--ink); transition: background 0.2s;
}
.sort-btn:hover { background: #ffe9ec; }
.sort-caret {
  width: 12px; height: 8px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.sort.is-open .sort-caret { transform: rotate(180deg); }
.sort-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; z-index: 30;
  background: #fff; border-radius: 16px; padding: 6px;
  box-shadow: 0 18px 40px rgba(30, 10, 20, 0.14);
  opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.sort.is-open .sort-menu { opacity: 1; transform: none; pointer-events: auto; }
.sort-option {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  border-radius: 10px; padding: 10px 14px; cursor: pointer; font-family: inherit;
  font-size: 22px !important; font-weight: 700; color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.sort-option:hover { background: #fff1f2; }
.sort-option.is-active { color: var(--accent); }
.job {
  display: flex; justify-content: space-between; gap: 20px; background: #fff;
  border: 3px dashed #ffd0d6; border-radius: 20px; padding: 20px; margin-bottom: 14px;
  cursor: pointer;
  transition: border-color 0.45s ease, background-color 0.45s ease,
              transform 0.45s ease, box-shadow 0.45s ease;
}
.job:hover, .job:focus-visible {
  border-color: var(--accent); background: #fffafa; transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(30, 10, 20, 0.05); outline: none;
}
.job:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.empty-state {
  border: 1px dashed #f0c7cd; border-radius: 16px; padding: 28px 20px;
  color: #8a7a7e; text-align: center; background: #fffafa;
}
.job-title { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.job-title h3 { font-size: 17px; }
.money { color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.job-main p { font-size: 13.5px; margin: 8px 0 12px; max-width: 620px; font-weight: 400 !important; }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; min-width: 110px; flex: none; }
.server { font-size: 12px; color: #b06b76; white-space: nowrap; text-align: right; }
.time { font-size: 11.5px; color: var(--muted); }
.save-banner {
  margin-top: 20px; padding: 20px; border-radius: 20px; border: 0;
  background: var(--blush); display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.save-banner p { margin: 4px 0 0; font-size: 13px; }
.save-banner .btn { flex: none; }

.jobs-status {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 36px; padding: 10px 0 4px; font-size: 12.5px; color: var(--muted);
}
.jobs-status.is-error { color: #b4444f; }
.jobs-status .link-btn { font-size: 12.5px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid #ffd0d6; border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.nav.compact { max-width: 1160px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav.compact .logo { display: none; }
.search-save { justify-self: end; }

/* reveal */
.reveal { transform: translateY(16px); transition: transform 0.55s ease; }
.reveal.in { transform: none; }
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.2s; }

@media (max-width: 980px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .alerts { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .alerts-copy p { max-width: none; }
  .notif-img { justify-self: center; }
  .phone { margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; gap: 22px; }
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; }
  .filters h4 { grid-column: 1 / -1; }
  .filters .range { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 18px; }
  .topbar-inner { height: 70px; }
  .topbar .lang, .topbar .lang * { grid-column: auto !important; grid-row: auto !important; font-size: 15px !important; line-height: 1.2; }
  .topbar .lang { position: absolute; left: 8px; top: 26px; gap: 5px; }
  .topbar .icon-btn { position: absolute; right: 4px; top: 13px; }
  .brand { font-size: 22px !important; }
  .topbar.scrolled .brand { font-size: 20px !important; top: 17px; }
  .topbar.scrolled .topbar-inner { height: 112px; }
  .topbar.scrolled .lang { top: 23px; left: 8px; }
  .topbar.scrolled .icon-btn { top: 10px; right: 4px; }
  .header-search { left: 8px; right: 8px; width: auto; height: 40px; bottom: 8px; padding: 2px 3px 2px 12px; transform: translateY(-6px); }
  .topbar.scrolled .header-search { transform: none; }
  .header-search input { font-size: 18px !important; }
  .header-search button { width: 28px; height: 28px; }
  .header-search button svg { width: 18px; height: 18px; }
  .hero { min-height: calc(100vh - 70px); padding: 60px 18px 70px; }
  .choose { padding: 90px 18px 30px; }
  .search-card { padding: 18px 18px 6px; margin-top: 30px; }
  .choose { padding: 40px 18px 20px; }
  .masonry { grid-template-columns: 1fr; grid-auto-rows: 128px; }
  .tile-1, .tile-2, .tile-3, .tile-4, .tile-5, .tile-6 { grid-row: span 2; }
  .alerts { padding: 56px 18px; }
  .how { padding: 50px 18px; }
  .cta { margin: 20px 14px; padding: 50px 18px; border-radius: 24px; }
  .cta-form { flex-direction: column; }
  .footer { padding: 26px 18px 40px; }
  .footer-links { margin-left: 0; }
  .search-main { padding: 18px 18px 50px; }
  .filters { grid-template-columns: 1fr; }
  .job { flex-direction: column; }
  .job-side { flex-direction: row; align-items: center; }
  .save-banner { flex-direction: column; align-items: flex-start; }
  .phone { width: 100%; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==== exact spec: one type size, fixed palette ==== */
:root {
  --accent: #ff4b4b;
  --ink: #000000;
  --muted: #000000;
}
body, body * {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.35;
}
/* дети логотипа должны наследовать размер родителя, а не 22px от body * */
.brand, .brand * { font-size: inherit !important; }
h1, h2, h3, h4 { letter-spacing: -0.01em; }
.brand { font-size: 26px !important; }
.brand.small { font-size: 22px !important; }
.footer p, .footer-links a { font-weight: 400 !important; font-size: 18px !important;}
.topbar.scrolled .brand { font-size: 22px !important; }
.search-page .brand { font-size: 22px !important; }
.hero h1 { font-size: 30px !important; }
.search-save { grid-column: 3; justify-self: end; }
.brand-word b { color: #000000; }
.brand-word em { color: #ff4b4b; }
.lang b { color: #ff4b4b; }
.lang span { color: #ffc6c6; }
.lang a { color: #000000; }
.niches-label { color: #ffc6c6; }
.niche-row { color: #000000; }
.choose-label, .hero h1 { color: #000000; }
.hero h1 { color: #ffffff !important; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.search-pill { border-color: #ff4b4b; }
.search-pill input::placeholder { color: #bfbfbf; }
.tile { background: #d9d9d9; padding: 0; }
.tile-art, .tile-foot { display: none; }
p { color: #000000; }

/* утилиты жирности: весь сайт 700, точечно переопределяем */
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }

/* form controls don't inherit fonts by default */
input, button, select, textarea {
  font-family: inherit;
}
.search-pill input,
.search-pill input::placeholder,
.niches-label {
  font-family: "Momo Trust Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px !important;
}

/* responsive masonry: сбросить явные колонки на узких экранах */
@media (max-width: 980px) {
  .tile-1, .tile-2, .tile-3, .tile-4, .tile-5, .tile-6 {
    grid-column: auto;
    grid-row: span 2;
  }
}
@media (max-width: 640px) {
  .tile-1, .tile-2, .tile-3, .tile-4, .tile-5, .tile-6 {
    grid-column: auto;
    grid-row: span 2;
  }
}

/* ==== mobile fixes ==== */
@media (max-width: 640px) {
  /* шапка: убираем кнопку, которая наезжала на логотип */
  .search-save { display: none !important; }
  .topbar .lang, .topbar .lang * { font-size: 14px !important; }
  .search-page .brand { font-size: 22px !important; }
  .topbar .brand { font-size: 22px !important; }

  /* поисковая строка */
  .search-inner { padding: 3px 3px 3px 14px; }
  .search-inner input { font-size: 15px !important; padding: 9px 0; }
  .search-inner .btn { font-size: 15px !important; padding: 9px 16px; }
  .search-icon { width: 17px; height: 17px; }

  /* строка "I understood this as" */
  .understood { gap: 8px; margin-top: 10px; }
  .understood-label { font-size: 14px !important; }
  .link-btn { font-size: 14px !important; }
  .tag { font-size: 14px !important; padding: 4px 9px; }
  .tag.is-excluded::before { font-size: 15px !important; }

  /* фильтры */
  .filters { padding: 14px 14px 16px; gap: 0 14px; }
  .filters h4 { font-size: 12px !important; letter-spacing: 0.14em; margin: 0 0 8px; }
  .filters h4:not(:first-child) { margin-top: 16px; }
  .filter-btns { gap: 6px; }
  .filter-chip { font-size: 14px !important; padding: 7px 11px; }
  .budget-head { margin-top: 16px; min-height: 22px; }
  .budget-current { font-size: 14px !important; }
  .range { font-size: 14px !important; }
  .range span { font-size: 14px !important; }
  .filters .range { margin-top: 2px; }

  /* панель edit */
  .edit-panel { padding: 14px; }
  .edit-search input { font-size: 14px !important; padding: 9px 12px; }
  .edit-search .edit-hint { font-size: 12px !important; }
  .edit-scroll { max-height: 260px; }
  .edit-group h4 { font-size: 11px !important; }

  /* выдача */
  .results-top { font-size: 14px !important; gap: 10px; flex-wrap: wrap; }
  .results-top b { font-size: 14px !important; }
  .sort-btn { font-size: 15px !important; padding: 7px 12px; }
  .sort-menu { min-width: 200px; }
  .sort-option { font-size: 15px !important; padding: 8px 12px; }

  /* карточки */
  .job { padding: 16px; gap: 12px; border-width: 2px; }
  .job-title h3 { font-size: 17px !important; }
  .money { font-size: 15px !important; }
  .server { font-size: 13px !important; }
  .time { font-size: 13px !important; }
  .job-side { gap: 10px; }

  /* баннер telegram */
  .save-banner { padding: 16px; gap: 14px; }
  .save-banner b { font-size: 16px !important; }
  .save-banner p { font-size: 14px !important; }
  .save-banner .btn { font-size: 14px !important; padding: 10px 16px; }

  /* футер */
  .footer { gap: 12px; }
  .footer .brand { font-size: 20px !important; }
  .footer-links a { font-size: 16px !important; }

  .jobs-status { font-size: 14px !important; }
}

/* ==== mobile scale: всё мельче, кроме поисковой пилюли и обводки карточек ==== */
@media (max-width: 640px) {
  body, body * { font-size: 14px !important; }

  /* логотип и пилюля поиска остаются крупными */
  .search-page .brand, .topbar .brand { font-size: 22px !important; }
  .search-inner { padding: 4px 4px 4px 18px; }
  .search-inner input { font-size: 19px !important; padding: 10px 0; }
  .search-inner .btn { font-size: 18px !important; padding: 10px 18px; }
  .search-icon { width: 20px; height: 20px; }

  /* заголовки */
  .hero h1 { font-size: 26px !important; }
  .alerts-copy h2, .how h2 { font-size: 22px !important; }
  .alerts .label { font-size: 14px !important; }
  h1 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  h3, .job-title h3 { font-size: 16px !important; }
  h4, .filters h4, .edit-group h4 { font-size: 11px !important; }

  /* навигация и служебный текст */
  .topbar .lang, .topbar .lang * { font-size: 13px !important; }
  .understood-label, .link-btn { font-size: 13px !important; }
  .tag { font-size: 13px !important; padding: 4px 9px; }
  .tag.is-excluded::before { font-size: 14px !important; }

  /* фильтры */
  .filter-btns { gap: 6px; }
  .filter-chip { font-size: 13px !important; padding: 6px 10px; }
  .budget-current { font-size: 13px !important; }
  .range, .range span { font-size: 12px !important; }

  /* edit panel */
  .edit-search input { font-size: 14px !important; }
  .edit-search .edit-hint { font-size: 11px !important; }

  /* выдача */
  .results-top, .results-top b { font-size: 13px !important; }
  .sort-btn { font-size: 14px !important; padding: 7px 12px; }
  .sort-option { font-size: 14px !important; }
  .jobs-status, .empty-state { font-size: 13px !important; }

  /* карточки: обводка та же — 3px dashed */
  .job { border-width: 3px; padding: 14px; gap: 10px; }
  .job-main p { font-size: 12.5px !important; }
  .money { font-size: 14px !important; }
  .server, .time { font-size: 12px !important; }

  /* баннер, футер, CTA */
  .save-banner b { font-size: 15px !important; }
  .save-banner p { font-size: 13px !important; }
  .save-banner .btn { font-size: 13px !important; padding: 9px 14px; }
  .footer .brand { font-size: 18px !important; }
  .footer p { font-size: 14px !important; }
  .footer-links a { font-size: 14px !important; }
  .cta-start { font-size: 18px !important; }
}

/* mobile: компактный поиск и сортировка справа */
@media (max-width: 640px) {
  .search-inner { padding: 3px 3px 3px 14px; }
  .search-inner input { font-size: 15px !important; padding: 8px 0; }
  .search-inner .btn { font-size: 14px !important; padding: 8px 14px; }
  .search-icon { width: 17px; height: 17px; }

  .results-top { flex-wrap: nowrap; gap: 8px; align-items: center; }
  .results-top .updated { display: none; }
  .sort-btn { font-size: 13px !important; padding: 6px 10px; }

  .search-head { margin-bottom: 12px; }

  /* сервер и время — над тегами, после описания */
  .job-main { display: contents; }
  .job-title { order: 1; }
  .job-main p { order: 2; margin: 4px 0 0; }
  .job-side { order: 3; justify-content: flex-start; }
  .job-tags { order: 4; }
  .job { gap: 6px; }
}

