﻿:root {
    --bg: #0c0b09;
    --text: #f3ece0;
    --muted: #9c9283;
    --gold: #d9b779;
    --gold-2: #f2dcab;
    --line: rgba(255, 244, 220, .09);
    --glass: rgba(255, 248, 232, .05);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --top: env(safe-area-inset-top, 0px);
    --bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--text);
    background: radial-gradient(ellipse at 82% 8%, rgba(190, 143, 69, .16), transparent 38%), radial-gradient(ellipse at 12% 48%, rgba(125, 83, 42, .12), transparent 42%), linear-gradient(155deg, #11100d 0%, #090909 48%, #100d09 100%);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus { outline: none; }
button:focus-visible, input:focus-visible + span {
    outline: 2px solid rgba(217, 183, 121, .7);
    outline-offset: 2px;
}

/* фон */
body::before {
    content: "";
    position: fixed; inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(232, 204, 153, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 204, 153, .018) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}
.glow-a {
    width: 320px; height: 320px;
    top: -110px; right: -130px;
    background: radial-gradient(circle, rgba(217, 183, 121, .52), transparent 70%);
    animation: float 12s ease-in-out infinite;
}
.glow-b {
    width: 280px; height: 280px;
    bottom: 100px; left: -140px;
    background: radial-gradient(circle, rgba(177, 126, 64, .34), transparent 70%);
    animation: float 15s ease-in-out infinite reverse;
}
@keyframes float { 50% { transform: translate(-26px, 36px) scale(1.12); } }

.page {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: calc(var(--top) + 14px) 18px calc(var(--bottom) + 130px);
    display: flex;
    flex-direction: column;
    gap: 34px;
}

/* верхняя панель */
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.brand { display: flex; align-items: center; gap: 8px; color: var(--gold); }
.brand span { font-size: 12.5px; font-weight: 800; letter-spacing: .18em; color: var(--text); white-space: nowrap; }
.brand em { font-style: normal; font-weight: 500; color: var(--gold); }

.live {
    display: flex; align-items: center; gap: 7px;
    font-size: 10.5px; font-weight: 700;
    color: var(--muted);
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--glass);
    white-space: nowrap;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.live i { width: 6px; height: 6px; border-radius: 50%; background: #6fe0a0; animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(111, 224, 160, .6); }
    100% { box-shadow: 0 0 0 8px rgba(111, 224, 160, 0); }
}

/* заголовок */
.eyebrow {
    font-size: 10px; font-weight: 700;
    letter-spacing: .26em;
    color: var(--gold);
    margin-bottom: 14px;
}

h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(34px, 10.6vw, 46px);
    line-height: 1.04;
    letter-spacing: -.028em;
}
h1 em {
    font-style: italic;
    background: linear-gradient(100deg, var(--gold-2), var(--gold) 50%, #a9803f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin: 16px 0 22px;
    font-size: 14.5px;
    line-height: 1.62;
    color: var(--muted);
    max-width: 36ch;
}

/* поиск */
.search {
    display: flex; align-items: center; gap: 10px;
    padding: 0 8px 0 16px;
    height: 56px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--muted);
    transition: border-color .25s, box-shadow .25s;
}
.search:focus-within {
    border-color: rgba(217, 183, 121, .55);
    box-shadow: 0 0 0 4px rgba(217, 183, 121, .1);
}
.search input {
    flex: 1; min-width: 0;
    background: none; border: 0; outline: 0;
    font: inherit;
    font-size: 16px; /* чтобы iOS не зумил страницу */
    color: var(--text);
}
.search input::placeholder { color: #75705f; }
.filter {
    flex: none;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 0; border-radius: 12px;
    background: rgba(217, 183, 121, .14);
    color: var(--gold-2);
}

/* категории */
.chips {
    display: flex; gap: 8px;
    margin: 12px -18px 0;
    padding: 0 18px;
    overflow-x: auto;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips label { position: relative; flex: none; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
    display: block;
    font-size: 12.5px; font-weight: 600;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: #cfc5b3;
    background: var(--glass);
    transition: background .2s, color .2s;
}
.chips input:checked + span {
    background: var(--gold);
    color: #1a150c;
    border-color: transparent;
}

/* вакансии */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: -.01em; }
.section-head a { font-size: 13px; font-weight: 700; color: var(--gold); }

.rail {
    display: flex; gap: 12px;
    margin: 0 -18px;
    padding: 0 18px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.card {
    flex: none;
    width: min(76vw, 268px);
    scroll-snap-align: start;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 248, 232, .09), rgba(255, 248, 232, .02));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.logo {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 13px;
    font-family: var(--serif);
    font-size: 20px;
    color: #1a150c;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.logo.alt { background: linear-gradient(135deg, #e9e2d3, #a79c86); }
.match {
    margin-right: auto;
    font-size: 10.5px; font-weight: 700;
    padding: 5px 9px;
    border-radius: 999px;
    color: #8fe6b3;
    background: rgba(111, 224, 160, .1);
    white-space: nowrap;
}
.save {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--glass);
    color: var(--muted);
}

.card h3 { font-size: 16px; font-weight: 700; line-height: 1.25; margin-bottom: 5px; min-height: 40px; }
.card small { font-size: 12.5px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; }
.meta span {
    font-size: 11px; font-weight: 600;
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--glass);
    color: #cfc5b3;
}
.card-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.pay { font-family: var(--serif); font-size: 19px; color: var(--gold-2); }
.pay em { font-family: var(--sans); font-style: normal; font-size: 11px; color: var(--muted); }
.go {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--gold);
    color: #1a150c;
    font-weight: 700;
}

/* преимущества */
.feature {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}
.feature:last-child { padding-bottom: 0; }
.ico {
    flex: none;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: rgba(217, 183, 121, .12);
    color: var(--gold-2);
}
.feature h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 13px; line-height: 1.55; color: var(--muted); }

/* статистика */
.stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 20px 4px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--glass);
}
.stats div { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b {
    font-family: var(--serif); font-weight: 500; font-size: 24px;
    background: linear-gradient(100deg, var(--gold-2), var(--gold));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }

.footer { text-align: center; font-size: 10px; letter-spacing: .24em; color: #6b6556; }

/* нижняя панель */
.dock {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 5;
    padding: 28px 14px calc(var(--bottom) + 10px);
    background: linear-gradient(to top, rgba(12, 11, 9, .92) 40%, rgba(12, 11, 9, 0));
    pointer-events: none;
}
.dock-inner { max-width: 492px; margin: 0 auto; pointer-events: auto; }

.status { font-size: 13px; color: var(--muted); text-align: center; }
.status:not(:empty) { margin-bottom: 10px; }

#connectButton {
    position: relative;
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 8px 0 24px;
    height: 62px;
    border: 0;
    border-radius: 20px;
    color: #1a150c;
    background: linear-gradient(110deg, var(--gold-2), var(--gold) 55%, #b98d4b);
    box-shadow: 0 16px 36px -8px rgba(217, 183, 121, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
    overflow: hidden;
    transition: transform .2s;
}
#connectButton b { font-size: 15.5px; font-weight: 800; }
#connectButton .arrow {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: #14100a;
    color: var(--gold-2);
    font-size: 20px;
}
#connectButton::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 50%, 100% { transform: translateX(120%); } }
#connectButton:active { transform: scale(.97); }
#connectButton:disabled { opacity: .6; }

/* плавное появление */
.top, .intro > *, .jobs, .why, .stats, .footer {
    opacity: 0;
    transform: translateY(16px);
    animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards;
}
.intro > :nth-child(2) { animation-delay: .1s; }
.intro > :nth-child(3) { animation-delay: .2s; }
.intro > :nth-child(4) { animation-delay: .3s; }
.intro > :nth-child(5) { animation-delay: .4s; }
.jobs { animation-delay: .5s; }
.why { animation-delay: .6s; }
.stats { animation-delay: .7s; }
.footer { animation-delay: .8s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::after { animation: none !important; opacity: 1 !important; transform: none !important; }
}
/* Кнопка анкеты соискателя */
.application-trigger {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9px 0 22px;
    margin: 0 0 8px;
    border: 1px solid rgba(217, 183, 121, .35);
    border-radius: 18px;
    background: linear-gradient(110deg, #d9b779, #f2dcab);
    color: #1a150c;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.application-trigger .arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #14100a;
    color: var(--gold-2);
    font-size: 20px;
}

.application-trigger:active {
    transform: scale(.97);
}

.application-trigger:focus-visible {
    outline: 2px solid var(--gold-2);
    outline-offset: 3px;
}

.intro > :nth-child(5) { animation-delay: .4s; }
.intro > :nth-child(6) { animation-delay: .5s; }

/* ==========================================
   Модальное окно анкеты соискателя
========================================== */

.application-lock {
    overflow: hidden;
}

.application-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.application-modal.is-open {
    display: flex;
}

.application-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(9px);
}

.application-dialog {
    position: relative;
    width: 100%;
    max-width: 470px;
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: 28px 22px 22px;
    border: 1px solid rgba(217, 183, 121, .25);
    border-radius: 24px;
    background: #15120e;
    box-shadow: 0 25px 100px rgba(0, 0, 0, .65);
    animation: applicationAppear .25s ease;
}

@keyframes applicationAppear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.application-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--glass);
    color: var(--text);
    font-size: 25px;
    cursor: pointer;
}

.application-eyebrow {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.application-heading h2 {
    margin: 10px 35px 8px 0;
    color: var(--text);
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 500;
}

.application-heading p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

#applicationForm {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

#applicationForm label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #d9cdb9;
    font-size: 12px;
    font-weight: 700;
}

#applicationForm input,
#applicationForm textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 244, 220, .11);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 248, 232, .045);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    transition: border-color .2s, background .2s;
}

#applicationForm textarea {
    min-height: 75px;
    resize: vertical;
}

#applicationForm input::placeholder,
#applicationForm textarea::placeholder {
    color: #746b5e;
}

#applicationForm input:focus,
#applicationForm textarea:focus {
    border-color: var(--gold);
    background: rgba(217, 183, 121, .07);
}

.application-submit {
    width: 100%;
    min-height: 55px;
    margin-top: 5px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(110deg, var(--gold), var(--gold-2));
    color: #1a150c;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.application-submit span:last-child {
    font-size: 21px;
}

.application-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.application-note {
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.application-message {
    color: #ffb2a7;
    font-size: 12px;
    line-height: 1.5;
}

.application-message.is-success {
    color: var(--gold-2);
}

@media (max-width: 480px) {
    .application-modal {
        padding: 10px;
    }

    .application-dialog {
        max-height: calc(100dvh - 20px);
        padding: 25px 17px 18px;
        border-radius: 21px;
    }
}

/* Нижняя панель больше не используется */
.dock { display: none !important; }


/* ==============================
   Новая модалка выбора действия
============================== */

.choice-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.choice-modal.is-open {
    display: flex;
}

.choice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .84);
    backdrop-filter: blur(10px);
}

.choice-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 32px 24px 24px;
    border: 1px solid rgba(217, 183, 121, .28);
    border-radius: 24px;
    background: #15120e;
    box-shadow: 0 25px 100px rgba(0, 0, 0, .7);
    animation: applicationAppear .25s ease;
}

.choice-close {
    position: absolute;
    top: 13px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--gold);
    font-size: 29px;
    cursor: pointer;
}

.choice-heading {
    margin-bottom: 25px;
}

.choice-heading h2 {
    margin: 12px 0 8px;
    color: var(--text);
    font-size: 25px;
}

.choice-heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.choice-option,
#choiceTelegramButton .application-submit {
    width: 100%;
    min-height: 55px;
    margin-top: 12px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 15px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.choice-option {
    border: 1px solid rgba(217, 183, 121, .3);
    background: rgba(217, 183, 121, .07);
    color: var(--text);
}

#choiceTelegramButton .application-submit {
    border: 0;
    background: linear-gradient(110deg, var(--gold), var(--gold-2));
    color: #1a150c;
}

@media (max-width: 480px) {
    .choice-dialog {
        padding: 30px 18px 20px;
        border-radius: 21px;
    }
}
