/* ==========================================================================
   СписокРабот — оформление сайта.
   Полупрозрачные («стеклянные») панели, крупные скругления, пыльно-розовая
   палитра. Мотив графики — список.
   ========================================================================== */

:root {
    --rose-50:  #fcf6f7;
    --rose-100: #f7ebee;
    --rose-200: #eed8de;
    --rose-300: #e0bcc6;
    --rose-400: #cd97a6;
    --rose-500: #b4707f;   /* основной акцент */
    --rose-600: #965866;
    --rose-700: #74424e;

    --ink:      #3a2c31;
    --ink-soft: #6d5b61;
    --ink-mute: #94838a;

    /* совместимость со старыми именами токенов */
    --accent: var(--rose-600);
    --muted:  var(--ink-mute);

    --glass:        rgba(255, 255, 255, 0.62);
    --glass-strong: rgba(255, 255, 255, 0.82);
    --glass-line:   rgba(255, 255, 255, 0.75);
    --glass-edge:   rgba(180, 112, 127, 0.14);

    --radius-lg: 24px;
    --radius:    18px;
    --radius-sm: 12px;

    --shadow:    0 10px 30px rgba(116, 66, 78, 0.08);
    --shadow-lg: 0 18px 50px rgba(116, 66, 78, 0.13);

    --container: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    /* Мягкие пятна — радиальными градиентами прямо в фоне: дёшево и без
       отдельных композитных слоёв (blur-слои ломали отрисовку при скролле). */
    background-color: #f7ecef;
    background-image:
        radial-gradient(60ch 50ch at 8% -6%,  rgba(240, 205, 215, .85), transparent 70%),
        radial-gradient(50ch 45ch at 104% 28%, rgba(232, 212, 222, .8),  transparent 70%),
        radial-gradient(55ch 50ch at 45% 108%, rgba(243, 220, 213, .75), transparent 70%),
        linear-gradient(160deg, #fdf8f9 0%, #f7ecef 45%, #f3e4e9 100%);
    background-repeat: no-repeat;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.bg-decor { display: none; }

a { color: var(--rose-600); text-decoration: none; }
a:hover { color: var(--rose-700); text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 650; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Иконки */
.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 15px; height: 15px; }

/* --------------------------------------------------------------- Шапка -- */
/* Полупрозрачность делаем через rgba, без backdrop-filter: на липкой шапке он
   ломал отрисовку при скролле (страница «съезжала») и дорого стоит на слабых
   устройствах — каждый такой элемент создаёт отдельный композитный слой. */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 253, 253, 0.86);
    border-bottom: 1px solid var(--glass-edge);
}
.topbar__inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand, .brand:hover { text-decoration: none; color: var(--ink); }
.brand__mark {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 13px;
    background: linear-gradient(140deg, var(--rose-400), var(--rose-600));
    color: #fff;
    box-shadow: 0 6px 16px rgba(150, 88, 102, 0.32);
}
.brand__glyph { width: 22px; height: 22px; }
.brand__text { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand__text b { font-weight: 750; color: var(--rose-600); }

.searchbar {
    flex: 1 1 auto; display: flex; align-items: center; gap: 8px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-line);
    border-radius: 999px;
    padding: 5px 5px 5px 16px;
    box-shadow: var(--shadow);
    max-width: 620px;
}
.searchbar__icon { width: 20px; height: 20px; flex: none; color: var(--ink-mute); }
.searchbar__input {
    flex: 1; min-width: 0; border: 0; background: none; outline: none;
    font: inherit; color: var(--ink); padding: 8px 0;
}
.searchbar__input::placeholder { color: var(--ink-mute); }
.searchbar__btn {
    flex: none; border: 0; cursor: pointer; font: inherit; font-weight: 600;
    padding: 10px 22px; border-radius: 999px; color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
    transition: filter .15s ease, transform .15s ease;
}
.searchbar__btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

.nav { display: flex; gap: 6px; flex: none; }
.nav a {
    color: var(--ink-soft); font-weight: 500; padding: 8px 13px; border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: rgba(255, 255, 255, .8); color: var(--rose-600); text-decoration: none; }

.burger { display: none; }

/* ------------------------------------------------------- Общие элементы -- */
main.container { padding-top: 28px; padding-bottom: 56px; }

.panel {
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    font: inherit; font-weight: 600; cursor: pointer;
    padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
    transition: filter .15s ease, transform .15s ease;
}
.btn--primary {
    color: #fff; background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
    box-shadow: 0 8px 22px rgba(150, 88, 102, 0.28);
}
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; color: #fff; }

.crumbs {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    font-size: 14px; color: var(--ink-mute); margin-bottom: 14px;
}
.crumbs a { color: var(--ink-soft); }

.page-title { font-size: 30px; margin-bottom: 18px; }
.page-title__count { color: var(--ink-mute); font-weight: 500; font-size: 18px; }

.section { margin: 34px 0; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section__title { display: flex; align-items: center; gap: 9px; font-size: 21px; margin: 0; }
.section__title .icon { color: var(--rose-500); }
.section__link { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 500; white-space: nowrap; }

/* ------------------------------------------------------------- Главная -- */
.hero { padding: 42px 40px; text-align: center; margin-bottom: 8px; }
.hero__title { font-size: 38px; margin-bottom: 12px; letter-spacing: -0.025em; }
.hero__sub { color: var(--ink-soft); font-size: 17px; max-width: 640px; margin: 0 auto 26px; }
.hero__sub b { color: var(--rose-600); }
.hero__form {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--rose-200);
    border-radius: 999px; padding: 6px 6px 6px 18px;
    max-width: 660px; margin: 0 auto; box-shadow: var(--shadow-lg);
}
.hero__icon { width: 20px; height: 20px; flex: none; color: var(--ink-mute); }
.hero__input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; padding: 12px 0; background: none; }
.hero__hint { margin-top: 16px; font-size: 15px; color: var(--ink-mute); }
.hero__hint a { margin: 0 6px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    background: var(--glass); border: 1px solid var(--glass-line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    color: var(--ink); font-weight: 500;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.tile:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-lg);
    background: var(--glass-strong); text-decoration: none; color: var(--rose-700);
}
.tile__icon {
    display: grid; place-items: center; width: 40px; height: 40px; flex: none;
    border-radius: 12px; background: var(--rose-100); color: var(--rose-600);
}
.tile__label { font-size: 15px; line-height: 1.3; }

.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: 999px;
    background: var(--glass-strong); border: 1px solid var(--glass-line);
    color: var(--ink); font-size: 15px; box-shadow: var(--shadow);
    transition: transform .15s ease, background .15s ease;
}
.pill:hover { transform: translateY(-1px); background: #fff; text-decoration: none; color: var(--rose-700); }
.pill--ghost { background: rgba(255, 255, 255, .38); }
.pill__count { color: var(--ink-mute); font-size: 13px; }

.columns { columns: 4 200px; column-gap: 22px; }
.columns__item {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 7px 0; color: var(--ink); break-inside: avoid;
    border-bottom: 1px solid rgba(180, 112, 127, .1);
}
.columns__item:hover { color: var(--rose-600); }
.columns__count { color: var(--ink-mute); font-size: 13px; }

/* -------------------------------------------------------------- Чипсы -- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 999px; font-size: 15px;
    background: var(--glass-strong); border: 1px solid var(--glass-line);
    color: var(--ink-soft); box-shadow: var(--shadow);
    transition: background .15s ease, color .15s ease;
}
.chip:hover { background: #fff; color: var(--rose-700); text-decoration: none; }
.chip.is-active {
    background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
    border-color: transparent; color: #fff;
}
.chip.is-active:hover { color: #fff; filter: brightness(1.05); }

/* -------------------------------------------------------------- Макет -- */
.layout { display: grid; grid-template-columns: 296px 1fr; gap: 22px; align-items: start; }

.filters { padding: 8px 20px 18px; position: sticky; top: 92px; }
.filters__block { padding: 16px 0; border-bottom: 1px solid rgba(180, 112, 127, .12); }
.filters__block:last-child { border-bottom: 0; }
.filters__title {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--ink-soft); margin-bottom: 12px;
}
.filters__title .icon { color: var(--rose-400); }

.geo__label { font-size: 13px; color: var(--ink-mute); margin-bottom: 6px; }
.geo__label--city { margin-top: 14px; }

.cityfilter { display: flex; gap: 6px; }
.cityfilter__input {
    flex: 1; min-width: 0; font: inherit; font-size: 15px;
    padding: 9px 13px; border-radius: var(--radius-sm);
    border: 1px solid var(--rose-200); background: rgba(255, 255, 255, .85); color: var(--ink);
}
.cityfilter__input:focus { outline: 2px solid var(--rose-300); outline-offset: 1px; border-color: transparent; }
.cityfilter__btn {
    flex: none; font: inherit; font-size: 14px; cursor: pointer;
    padding: 9px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--rose-200); background: rgba(255, 255, 255, .85); color: var(--rose-600);
}
.cityfilter__btn:hover { background: #fff; }
.cityfilter__reset { display: inline-block; margin-top: 8px; font-size: 14px; }
.cityfilter__popular { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }

.facet { list-style: none; margin: 0; padding: 0; }
.facet--scroll { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.facet--scroll::-webkit-scrollbar { width: 6px; }
.facet--scroll::-webkit-scrollbar-thumb { background: var(--rose-200); border-radius: 3px; }
.facet__item a {
    display: flex; justify-content: space-between; gap: 10px; align-items: center;
    padding: 7px 11px; border-radius: 10px; font-size: 15px; color: var(--ink-soft);
}
.facet__item a:hover { background: rgba(255, 255, 255, .8); color: var(--rose-700); text-decoration: none; }
.facet__item.is-active a { background: var(--rose-100); color: var(--rose-700); font-weight: 600; }
.facet__count { color: var(--ink-mute); font-size: 13px; font-weight: 400; }

/* ------------------------------------------------------------- Выдача -- */
.results { display: flex; flex-direction: column; gap: 14px; }
.results__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; padding: 13px 20px; border-radius: var(--radius);
}
.results__count { font-weight: 600; }
.sort { display: flex; gap: 6px; font-size: 14px; }
.sort a { padding: 6px 13px; border-radius: 999px; color: var(--ink-soft); }
.sort a:hover { background: rgba(255, 255, 255, .8); text-decoration: none; }
.sort a.is-active { background: var(--rose-100); color: var(--rose-700); font-weight: 600; }

.card {
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px;
    transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card__top { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.card__title { font-size: 18px; margin: 0; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--rose-600); }
.card__salary { font-weight: 650; color: var(--rose-600); white-space: nowrap; }
.card__salary.is-muted { color: var(--ink-mute); font-weight: 500; font-size: 15px; }
.card__company {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
    color: var(--ink-soft); font-size: 15px; margin-top: 6px;
}
.card__employer { font-weight: 550; }
.card__city { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-mute); }
.card__snippet { color: var(--ink-soft); font-size: 15px; margin: 10px 0 0; }
.card__foot {
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; margin-top: 14px; flex-wrap: wrap;
}
.card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.card__date { color: var(--ink-mute); font-size: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.tag {
    font-size: 13px; padding: 4px 11px; border-radius: 999px;
    background: rgba(255, 255, 255, .72); border: 1px solid var(--rose-200); color: var(--ink-soft);
}

.empty { padding: 44px 28px; text-align: center; }
.empty h2 { margin-bottom: 8px; }
.empty p { color: var(--ink-soft); margin: 0; }

/* ---------------------------------------------------------- Пагинация -- */
.pager { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 12px; }
.pager__link {
    min-width: 42px; text-align: center; padding: 9px 14px; border-radius: 999px;
    background: var(--glass-strong); border: 1px solid var(--glass-line);
    color: var(--ink-soft); font-size: 15px; box-shadow: var(--shadow);
}
.pager__link:hover { background: #fff; text-decoration: none; color: var(--rose-700); }
.pager__link.is-active {
    background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
    border-color: transparent; color: #fff; font-weight: 600;
}
.pager__gap { color: var(--ink-mute); padding: 9px 2px; }

/* ------------------------------------------------------- Карточка вак. -- */
.detail { padding: 30px 34px; }
.detail__head { border-bottom: 1px solid rgba(180, 112, 127, .14); padding-bottom: 18px; margin-bottom: 20px; }
.detail__title { font-size: 28px; margin-bottom: 10px; }
.detail__salary { font-size: 21px; font-weight: 650; color: var(--rose-600); }
.detail__salary.is-muted { color: var(--ink-mute); font-size: 17px; font-weight: 500; }
.detail__company {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
    color: var(--ink-soft); margin-top: 8px;
}
.detail__city { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-mute); }
.apply { margin-bottom: 22px; }
.detail__section { margin-bottom: 22px; }
.detail__section h2 { font-size: 17px; color: var(--rose-700); margin-bottom: 7px; }
.detail__section p { margin: 0; color: var(--ink-soft); }
.detail__contacts ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.detail__meta {
    color: var(--ink-mute); font-size: 14px; padding-top: 16px;
    border-top: 1px solid rgba(180, 112, 127, .14);
}

.prose { padding: 30px 34px; }
.prose h2 { font-size: 18px; margin-top: 24px; color: var(--rose-700); }
.prose p { color: var(--ink-soft); }

/* --------------------------------- Каталог «Все вакансии» (регион→город) -- */
.catalog-crumbs {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin: 4px 0 16px; font-size: 14px; color: var(--ink-mute);
}
.catalog-crumbs a { color: var(--ink-soft); text-decoration: none; }
.catalog-crumbs a:hover { text-decoration: underline; color: var(--rose-700); }
.catalog-crumbs span[aria-hidden] { opacity: .5; }
.catalog-back { margin-top: 20px; }
.catalog-back a {
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none; color: var(--rose-600); font-weight: 600;
}
.catalog-back a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- Подвал -- */
.footer {
    margin-top: 40px; padding: 36px 0 24px;
    background: rgba(255, 255, 255, .55);
    border-top: 1px solid var(--glass-edge);
}
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer__col { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.brand--footer { margin-bottom: 6px; }
.footer__about { color: var(--ink-soft); font-size: 15px; margin: 0; max-width: 42ch; }
.footer__title { font-weight: 650; margin: 0 0 4px; }
.footer__col a { color: var(--ink-soft); font-size: 15px; }
.footer__col a:hover { color: var(--rose-600); }
.footer__bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 26px; padding-top: 18px; font-size: 14px; color: var(--ink-mute);
    border-top: 1px solid rgba(180, 112, 127, .12);
}

/* ------------------------------------------------------------ Адаптив -- */
@media (max-width: 1000px) {
    .layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .columns { columns: 2 160px; }
}

@media (max-width: 760px) {
    .topbar__inner { flex-wrap: wrap; gap: 12px; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
    /* min-width:0 обязателен: иначе флекс-элемент не сжимается ниже
       min-content и форма поиска вылезает за край экрана. */
    .searchbar { order: 3; flex: 1 1 100%; min-width: 0; max-width: 100%; }
    .searchbar__btn { padding: 10px 16px; }
    .nav { display: none; }
    body.nav-open .nav {
        display: flex; order: 4; flex-basis: 100%; flex-direction: column; gap: 2px;
        padding-top: 6px; border-top: 1px solid var(--glass-edge);
    }
    .burger {
        display: grid; place-content: center; gap: 4px; margin-left: auto;
        width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
        background: var(--glass-strong); border: 1px solid var(--glass-line);
    }
    .burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink-soft); }

    .hero { padding: 30px 22px; }
    .hero__title { font-size: 27px; }
    .hero__form { flex-wrap: wrap; border-radius: var(--radius); padding: 12px; gap: 10px; }
    .hero__input { flex-basis: 100%; padding: 6px 4px; }
    .hero__form .btn { width: 100%; }
    .hero__icon { display: none; }

    .page-title { font-size: 24px; }
    .detail, .prose { padding: 22px 18px; }
    .card { padding: 17px 18px; }
    .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ------------------------------------------ Зарплаты города + топ-5 ------ */
.salarybox {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 16px; margin-bottom: 22px;
}
.salarybox .panel { padding: 18px 22px; }

.stats__title, .toppaid__title {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; margin: 0 0 14px;
}
.stats__title .icon, .toppaid__title .icon { color: var(--rose-500); }

.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.stat {
    background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-line);
    border-radius: var(--radius-sm); padding: 10px 13px;
}
.stat__label { font-size: 13px; color: var(--ink-mute); margin: 0; }
.stat__value { font-size: 18px; font-weight: 650; color: var(--rose-700); margin: 2px 0 0; }
.stats__note { font-size: 13px; color: var(--ink-mute); margin: 12px 0 0; }

.toppaid__list { list-style: none; counter-reset: none; margin: 0; padding: 0; }
.toppaid__item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 0; border-bottom: 1px solid rgba(180, 112, 127, .1);
}
.toppaid__item:last-child { border-bottom: 0; }
.toppaid__rank {
    flex: none; display: grid; place-items: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--rose-100); color: var(--rose-700);
    font-size: 13px; font-weight: 650;
}
.toppaid__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.toppaid__link { color: var(--ink); font-weight: 550; font-size: 15px; }
.toppaid__link:hover { color: var(--rose-600); }
.toppaid__company { font-size: 13px; color: var(--ink-mute); }
.toppaid__salary { flex: none; font-weight: 650; color: var(--rose-600); white-space: nowrap; font-size: 15px; }

@media (max-width: 900px) {
    .salarybox { grid-template-columns: 1fr; }
    .toppaid__item { flex-wrap: wrap; }
    .toppaid__salary { margin-left: 38px; }
}

/* ===== Форма обратной связи + юридические страницы ===== */
.formx { display: grid; gap: 16px; max-width: 640px; }
.formx__row { display: grid; gap: 6px; }
.formx__label { font-weight: 600; }
.formx__req { color: #c0392b; }
.formx__input { width: 100%; padding: 12px 14px; font: inherit;
    border: 1px solid var(--border, #e6ddd2); border-radius: 10px;
    background: var(--card, #fff); color: inherit; box-sizing: border-box; }
.formx__input:focus { outline: 2px solid var(--accent, #b23a6b); outline-offset: 1px; border-color: var(--accent, #b23a6b); }
.formx__textarea { resize: vertical; min-height: 120px; }
.formx__consent { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.formx__consent input { margin-top: 4px; flex: none; width: 18px; height: 18px; }
.formx__consent a { color: var(--accent, #b23a6b); }
.formx__btn { justify-self: start; padding: 12px 26px; font: inherit; font-weight: 700;
    color: #fff; background: var(--accent, #b23a6b); border: 0; border-radius: 10px; cursor: pointer; }
.formx__btn:hover { filter: brightness(1.05); }
.formx__err { color: #c0392b; font-size: .9rem; }
/* honeypot — прячем от людей */
.formx__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formx-ok { padding: 16px 18px; border-radius: 12px; border: 1px solid #bfe3c4;
    background: #eafaec; color: #1e7a35; font-weight: 600; }
.formx-err { padding: 14px 16px; border-radius: 12px; border: 1px solid #f0c6c6;
    background: #fdeeee; color: #b23333; margin-bottom: 14px; }

.legal { max-width: 820px; line-height: 1.65; }
.legal__title { font-size: 1.7rem; line-height: 1.25; margin: 0 0 6px; }
.legal__upd { color: var(--muted, #6b6b6b); margin: 0 0 20px; }
.legal h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal a { color: var(--accent, #b23a6b); }

/* --------------------------------------- Выбор места работы в шапке ------ */
.geo { position: relative; flex: none; }
.geo__toggle {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    list-style: none; padding: 8px 14px; border-radius: 999px;
    background: var(--glass-strong); border: 1px solid var(--glass-line);
    color: var(--ink); font-size: 15px; box-shadow: var(--shadow);
    max-width: 220px; white-space: nowrap;
}
.geo__toggle::-webkit-details-marker { display: none; }
.geo__toggle:hover { background: #fff; }
.geo__toggle .icon { color: var(--rose-500); }
.geo__current { overflow: hidden; text-overflow: ellipsis; }
.geo__caret {
    width: 0; height: 0; flex: none; margin-left: 2px;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid var(--ink-mute);
}
.geo[open] .geo__caret { transform: rotate(180deg); }

.geo__panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
    width: 320px; padding: 16px 18px;
    background: #fff; border: 1px solid var(--rose-200);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.geo__row + .geo__row { margin-top: 12px; }
.geo__label { display: block; font-size: 13px; color: var(--ink-mute); margin-bottom: 5px; }
.geo__form { display: flex; gap: 6px; }
.geo__input {
    flex: 1; min-width: 0; font: inherit; font-size: 15px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--rose-200); background: #fff; color: var(--ink);
}
.geo__input:focus { outline: 2px solid var(--rose-300); outline-offset: 1px; border-color: transparent; }
.geo__btn {
    flex: none; font: inherit; font-size: 14px; cursor: pointer;
    padding: 9px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--rose-200); background: var(--rose-50); color: var(--rose-600);
}
.geo__btn:hover { background: var(--rose-100); }
.geo__popular {
    display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 14px;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(180, 112, 127, .12);
}
.geo__foot {
    display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px;
    margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(180, 112, 127, .12);
}

@media (max-width: 760px) {
    .geo { order: 2; margin-left: auto; }
    .geo__toggle { max-width: 150px; }
    .geo__panel { width: min(320px, calc(100vw - 40px)); }
}

/* Список подсказок в выборе места работы */
.geo__options {
    list-style: none; margin: 12px 0 0; padding: 0;
    max-height: 300px; overflow-y: auto;
}
.geo__options::-webkit-scrollbar { width: 6px; }
.geo__options::-webkit-scrollbar-thumb { background: var(--rose-200); border-radius: 3px; }
.geo__options li {
    display: flex; align-items: baseline; gap: 8px;
    padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 15px;
}
.geo__options li:hover, .geo__options li.is-active { background: var(--rose-50); }
.geo__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo__kind { font-size: 12px; color: var(--rose-500); }
.geo__count { font-size: 13px; color: var(--ink-mute); }
.geo__empty { color: var(--ink-mute); cursor: default; font-size: 14px; }
.geo__empty:hover { background: none; }
.geo__detect {
    display: inline-flex; align-items: center; gap: 5px;
    font: inherit; font-size: 14px; cursor: pointer; padding: 0;
    background: none; border: 0; color: var(--rose-600);
}
.geo__detect:hover:not(:disabled) { text-decoration: underline; }
.geo__detect:disabled { color: var(--ink-mute); cursor: default; }
