/* ══════════════════════════════════════════════════════════
   ТОЧКА ДОСТУПА — страница «ВАКАНСИИ»
   Чёрный фон · красный неон · квадратный техно-шрифт
   ══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Monserrate';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Furore';
    src: url('../fonts/Furore.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bebas';
    src: url('../fonts/bebasneuecyrillic.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Daray';
    src: url('../fonts/mr_daray_daray.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg:          #050505;
    --panel:       #0c0c0e;
    --red:         #e4151d;
    --red-bright:  #ff3b42;
    --red-deep:    #7d0a0f;
    --white:       #ffffff;
    --muted:       #8a8a90;
    --line:        rgba(255, 255, 255, .28);
    --glow:        rgba(228, 21, 29, .55);

    --font-display: 'Furore', 'Oswald', sans-serif;
    --font-body:    'Inter', sans-serif;

    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }


html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

a { color: inherit; text-decoration: none; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 64px);
}

/* ═══════════ NAV ═══════════ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3.6vw, 70px);
    padding: clamp(14px, 2.2vw, 34px) clamp(16px, 2vw, 40px);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.53) 26%, rgba(0, 0, 0, 1) 92%);
    font-family: "Daray", sans-serif;
    font-size: clamp(11px, 1.4vw, 32px);
    letter-spacing: 0.03em;
    /* text-transform: uppercase; */
    white-space: nowrap;
    flex-wrap: nowrap;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    position: relative;
    padding-inline: 0.3em;
    padding-block: 0.3em;
    overflow: hidden;
}
.nav a:hover  { opacity: 1; }
.nav a.active { opacity: 1; }

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    scale: 0 1;
    transition-timing-function: ease;
    transition-duration: 250ms;
    transition-property: scale, translate;
}

.reserve-btn::after {
    display: none;
}

.nav a.active::after {
    scale: 1 1;
    background-color: var(--white);
}

.nav__phone,
.nav__phone:hover,
.nav a.nav__phone:hover {
    opacity: 0.85 !important;
    transition: none !important;
}

.nav__phone {
    color: var(--white);
    opacity: 0.85;
    text-decoration: none;
    font-size: clamp(11px, 1.9vw, 32px);
    letter-spacing: 0.06em;
}

.reserve-btn {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: clamp(80px, 10vw, 186px);
    height: clamp(35px, 4vw, 70px);
    cursor: pointer;
    text-decoration: none;
    opacity: 1 !important;
    flex-shrink: 0;
}
.nav__btn:hover { background: var(--white); color: var(--black); }

.reserve-btn {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: clamp(80px, 10vw, 186px);
    height: clamp(35px, 4vw, 70px);
    cursor: pointer;
    text-decoration: none;
    opacity: 1 !important;
    flex-shrink: 0;
}

.reserve-btn img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: opacity 0.35s;
}

.reserve-btn .state-hover  { opacity: 0; }
.reserve-btn .state-active { opacity: 0; }

.reserve-btn:hover .state-normal { opacity: 0; }
.reserve-btn:hover .state-hover  { opacity: 1; }

.reserve-btn:active .state-normal { opacity: 0; }
.reserve-btn:active .state-hover  { opacity: 0; }
.reserve-btn:active .state-active { opacity: 1; }

/* ═══════════ PAGE TITLE ═══════════ */
.page {
    margin-top: 8%;
    position: relative;   /* уже есть — обязательно для .footer как якоря */
    padding-top: clamp(14px, 3vw, 28px);
    padding-bottom: clamp(60px, 9vw, 70px);   /* ← новое: место под футер */
}

.page__title {
    margin-left: -7.55%;
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(34px, 11vw, 100px);
    line-height: .92;
    letter-spacing: .01em;
    text-transform: uppercase;
    margin-bottom: clamp(24px, 5vw, 48px);
}

/* ═══════════ VACANCY CARDS ═══════════ */
.cards {
    margin-left: -7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 4.5vw, 53px);
    max-width: 1100px;
    /* margin-inline: auto; */
    margin-bottom: clamp(36px, 7vw, 70px);
    position: relative;
    z-index: 2;
}

.card {
    width: 570px;
    border-radius: 5px;
    border: 2px solid var(--red);
    background: #000;
    transition: box-shadow .3s, transform .25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 28px rgba(228, 21, 29, .35);
}

.card__head {
    background: var(--red);
    padding: clamp(10px, 2vw, 16px) clamp(16px, 3.5vw, 26px);
}

.card__head h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(18px, 4vw, 34px);
    letter-spacing: .04em;
    text-transform: uppercase;
}


.booking__form {
    width: 76%;
}

.card__body {
    overflow-x: hidden;
    padding: clamp(16px, 3.5vw, 50px);
    min-height: clamp(96px, 14vw, 150px);
    display: flex;
    align-items: center;
}

.card__pay {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(22px, 6vw, 52px);
    line-height: 1.05;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* ═══════════ ДЕКОРАТИВНАЯ ПОДЛОЖКА НАД СЛОГАНОМ ═══════════
   Контейнер строго заданного размера + overflow:hidden —
   изображение полностью «заперто» внутри него и не может
   вылезти за пределы своего блока или сдвинуть соседние секции. */
.slogan-wrap {
    position: relative; /* контекст позиционирования для decor */
}

.hero-decor {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    transform: rotate(45deg);
    left: -5%;
    top: -14vw;
    bottom: 10%;
    width: clamp(220px, 50vw, 1000px);
    height: clamp(220px, 50vw, 1000px);
    transform: translateX(-50%);
}

.booking__img-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;      /* картинка целиком видна, без обрезки */
    transform: translate(-50%, -50%) rotate(5deg);
    pointer-events: none;
}

/* ═══════════ BIG SLOGAN ═══════════ */
.slogan {
    margin-left: -7.55%;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(28px, 9.5vw, 111px);
    line-height: .92;
    letter-spacing: .015em;
    text-transform: uppercase;
    margin-bottom: clamp(28px, 6vw, 56px);
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

/* ═══════════ APPLY (photo + form) ═══════════ */
.apply {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: clamp(24px, 6vw, 64px);
    align-items: start;
    position: relative;
    z-index: 2;
}

.apply__photo {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    width: 100%;
    background:
            radial-gradient(120% 90% at 30% 20%, rgba(124, 58, 237, .35), transparent 60%),
            radial-gradient(120% 90% at 80% 90%, rgba(228, 21, 29, .25), transparent 60%),
            linear-gradient(160deg, #18121f, #050505 70%);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    overflow: hidden;
}

.apply__photo img,
.booking__bg {
    width: 200%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-left: clamp(-206px, calc(-96px + 206px * (100vw - 1920px) / -798px), 0px)
}

@media (max-width: 900px) {
    .apply__photo img, .booking__bg {
        width: 135%;
        margin-left: -24%;
        object-fit: cover;
        display: block;
    }
}

.apply__photo[style*="url"] .apply__photo-fallback { display: none; }

.apply__photo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    color: var(--muted);
    font-family: var(--font-display);
    letter-spacing: .15em;
    font-size: clamp(10px, 1.3vw, 13px);
    padding: clamp(12px, 3vw, 20px);
}

.apply__photo-fallback svg {
    width: clamp(44px, 8vw, 64px);
    height: clamp(44px, 8vw, 64px);
    opacity: .7;
}

/* форма */
.form__field { margin-bottom: clamp(16px, 3vw, 26px); }

.form__label {
    display: block;
    font-family: "Furore", sans-serif;
    font-size: clamp(10px, 1.8vw, 20px);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: clamp(8px, 1.5vw, 12px);
    color: #efefef;
}

.form__input {
    width: 86%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--white);
    font-family: "Daray", sans-serif;
    font-size: clamp(12px, 1.8vw, 30px);
    padding: clamp(6px, 1vw, 8px) 2px clamp(8px, 1.5vw, 12px);
    transition: border-color .2s, box-shadow .2s;
}

.form__input::placeholder { color: var(--muted); }

.form__input:focus {
    outline: none;
    border-bottom-color: var(--red);
    box-shadow: 0 8px 14px -12px var(--glow);
}

/* чекбоксы */
.form__check {
    font-family: 'Daray', sans-serif;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 14px);
    margin-bottom: clamp(10px, 1.8vw, 14px);
    cursor: pointer;
    font-size: clamp(10px, 1.2vw, 26px);
    color: #cfcfcf;
    user-select: none;
}

.form__check input { position: absolute; opacity: 0; pointer-events: none; }

.form__box {
    border-radius: 2px;
    flex: 0 0 auto;
    width: clamp(20px, 3vw, 26px);
    height: clamp(20px, 3vw, 26px);
    border: 1.5px solid rgba(255, 255, 255, .55);
    display: grid;
    place-items: center;
    transition: border-color .2s, background .2s;
}

.form__box svg {
    width: 25px;
    height: 25px;
    stroke: var(--white);
    stroke-width: 1.2px;
    fill: none;
    opacity: 0;
    transition: opacity .15s;
}

.form__check input:checked + .form__box { border-color: var(--white); }
.form__check input:checked + .form__box svg { opacity: 1; }
.form__check input:focus-visible + .form__box { outline-offset: 2px; }

.btn-red {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    height: 90px;
    margin-top: clamp(14px, 2.5vw, 22px);
    border: none;
    cursor: pointer;
    background: url('../img/отправить еще 1.png') center / contain no-repeat;
    transition: background-image 0.1s ease;
    font-size: 0;
}

.btn-red:hover {
    background-image: url('../img/отправить еще 1.png');
}

.btn-red:active {
    background-image: url('../img/отправить еще 1а.png');
}

.btn-red:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-image: url('../img/отправить еще 1а.png');
}

@media (max-width: 900px) {
    .btn-red {
        margin-bottom: 6%;
        width: 95%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        background: url('../img/nopka.png') center / contain no-repeat;
    }
    .btn-red:hover {
        background-image: url('../img/nopka.png');
    }

    .btn-red:active {
        background-image: url('../img/nopka.png');
    }

    .btn-red:disabled {
        background-image: url('../img/nopka.png');
    }
}

.form__status {
    display: none;
    margin-top: clamp(10px, 1.8vw, 16px);
    font-size: clamp(12px, 1.3vw, 14px);
    min-height: 20px;
    letter-spacing: .02em;
}
.form__status.ok  { color: #46d17a; }
.form__status.err { color: var(--red-bright); }

/* ═══════════ ДЕКОРАТИВНАЯ ПОДЛОЖКА ПЕРЕД ФУТЕРОМ ═══════════
   Тот же принцип: контейнер с фиксированной высотой и
   overflow:hidden полностью изолирует изображение — оно не
   может повлиять на положение футера или создать лишний скролл. */
.footer-bgg {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: clamp(220px, 60vw, 1000px);
    height: clamp(160px, 60vw, 1000px);
    /* overflow: hidden; */
    pointer-events: none;
    z-index: 0;
}

.footer-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    pointer-events: none;
}
/* ═══════════ FOOTER ═══════════ */
/* vacancies.css, раздел FOOTER */
.footer {
    MARGIN-BOTTOM: 6px;
    font-family: "Monserrate", sans-serif;
    z-index: 20;
    position: absolute;
    left: 25.2%;
    text-transform: uppercase;
    /* width: 100%; */
    /* transform: translateX(-50%); */
    right: auto;
    bottom: 0;
    text-align: center;
    padding: clamp(18px, 3vw, 14px) clamp(16px, 4vw, 32px);
}

.cut-corner {
    margin-top: 20%;
    background: #000000;
    clip-path: polygon(
            clamp(40px, 6vw, 107px) 0%,
            100% 0%,
            100% 100%,
            0% 100%,
            0% clamp(40px, 6vw, 108px)
    );
    padding:
            clamp(32px, 6vw, 84px)
            clamp(24px, 5vw, 80px)
            clamp(28px, 5vw, 52px)
            clamp(24px, 4vw, 59px);
    margin-right: calc(-1 * (clamp(16px, 4vw, 64px) + max(0px, (100vw - 1180px) / 2)));
}

.footer p {
    font-family: var(--font-display);
    font-size: clamp(11px, 1.3vw, 14px);
    letter-spacing: .08em;
    color: #cfcfcf;
    position: relative;
    z-index: 2;
}

.footer::before,
.footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 280px; height: 100%;
    background: radial-gradient(60% 120% at var(--x) 100%,);
    pointer-events: none;
}
.footer::before { left: -40px;  --x: 30%; }
.footer::after  { right: -40px; --x: 70%; }

/* ══════════════════════════════════════════════
   FOOTER → КЛИКАБЕЛЬНАЯ ССЫЛКА НА ПОЛИТИКУ
══════════════════════════════════════════════ */
.footer__link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: "Monserrate", sans-serif;
    font-size: clamp(14px, 1.3vw, 14px);
    letter-spacing: .08em;
    color: #cfcfcf;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color .2s;
}
.footer__link:hover { color: var(--white); }

.footer__link {
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4em;
}

/* десктоп: «Политика конфиденциальности © ООО «ЦДР «МАКСИМ»» в одну строку */
.footer__link .footer__policy { order: 1; }
.footer__link .footer__copy   { order: 2; }

@media (max-width: 900px) {
    /* мобилка: копирайт сверху, политика снизу */
    .footer__link {
        text-transform: uppercase;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    .footer__link .footer__copy    { order: 1; }
    .footer__link .footer__policy  { order: 2; font-size: 8.3px;}
    .footer__link .footer__copy,
    .footer__link .footer__policy {
        display: block;
        width: 100%;
        text-align: center;
    }
}
/* ══════════════════════════════════════════════
   МОДАЛКА: ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ
══════════════════════════════════════════════ */
.policy-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(20px, 4vw, 60px) clamp(12px, 3vw, 24px);
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity .3s ease, visibility .3s ease;
}
.policy-overlay.is-open { opacity: 1; visibility: visible; }

.policy-modal {
    position: relative;
    width: 100%;
    max-width: 1650px;
    max-height: 85vh;
    border-radius: 4px;
    border: 1.5px solid rgb(255 42 42 / 29%);
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.65),
            0 0 55px rgba(204, 0, 0, 0.45),
            inset 0 0 20px rgba(255, 42, 42, 0.35),
            inset 0 0 90px rgba(204, 0, 0, 0.12);
    padding: clamp(28px, 4vw, 44px);
    background:
            linear-gradient(
                    172deg,
                    rgba(2, 2, 2, 0.73) 0%,
                    rgba(2, 2, 2, 0.73) 37%,
                    rgba(115, 4, 11, 0.73) 92%,
                    rgba(152, 5, 14, 0.73) 100%
            ),
            #0a0a0a;
    transform: translateY(24px) scale(.97);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.modal.policy-modal::before {
    content: none;
}
.policy-overlay.is-open .policy-modal { transform: translateY(0) scale(1); }

.policy-modal .modal__close:hover { background: rgba(255, 255, 255, .18); }

.policy-modal__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(22px, 3vw, 40px);
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(28px, 3vw, 44px);
}

.policy-modal__body {
    font-family: var(--font-body);
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.6;
    color: #d8d8d8;
}
.policy-modal__body h3 {
    font-family: var(--font-display);
    font-size: clamp(15px, 1.3vw, 19px);
    text-transform: uppercase;
    color: var(--white);
    margin: 26px 0 10px;
}
.policy-modal__body p { margin-bottom: 12px; }
.policy-modal__body ul { margin: 0 0 12px 20px; }
.policy-modal__body li { margin-bottom: 6px; }

@media (max-width: 560px) {
    .policy-modal { padding: 24px 18px; max-height: 95vh; }
}

/* ══════════════════════════════════════════════
   МОДАЛКА: РЕЗЕРВ СТОЛИКА
   Точная копия дизайна с главной страницы (Style.css)
══════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vw, 60px) clamp(12px, 3vw, 24px);;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
    position: relative;
    width: 100%;
    max-width: 474px;
    background: #00000000;
    border: 1.5px solid rgb(255 42 42 / 29%);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 44px);
    overflow: hidden;
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.65),
            0 0 55px rgba(204, 0, 0, 0.45),
            inset 0 0 20px rgba(255, 42, 42, 0.35),
            inset 0 0 90px rgba(204, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
            120% 75% at 50% 120%,
            rgba(255, 30, 30, 0.6) 0%,
            rgba(204, 0, 0, 0.22) 42%,
            transparent 72%
    );
}

.modal__close,
.modal__form,
.modal__success {
    position: relative;
    z-index: 1;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    transition: color 0.2s;
}
.modal__close svg { width: 100%; height: 100%; }
.modal__close:hover { color: rgba(255, 255, 255, 0.9); }

.modal__form { display: flex; flex-direction: column; gap: 18px; }

.form-label {
    font-family: 'Furore', sans-serif;
    font-size: clamp(10px, 1.8vw, 20px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255);
    display: block;
    margin-bottom: clamp(6px, 1vw, 16px);
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-family: 'Daray', sans-serif;
    font-size: clamp(12px, 1.8vw, 32px);
    padding: 7px 0 16px;
    outline: none;
    transition: border-color 0.2s;
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus { border-bottom-color: rgba(255,255,255,0.6); }

.form-check {
    font-family: 'Daray', sans-serif;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(10px, 1.2vw, 26px);
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    line-height: 1.3;
}

.form-check input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.7);
    background: #000;
    cursor: pointer;
    position: relative;
    border-radius: 2px;
}
.form-check input[type=checkbox]:checked {
    background-image: url("../img/apply.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
}

.btn-reserve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 60px;
    border: 1.5px solid rgba(255, 45, 45, 0.85);
    border-radius: 50px;
    cursor: pointer;
    font-family: "Bebas", sans-serif;
    font-size: 31px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    background: radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 55%), linear-gradient(180deg, #27b7fb00 0%, #00000047 45%, #250000b8 85%, #9a000052 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 8px 26px rgba(204, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.15), inset 0 -16px 26px rgba(255, 20, 20, 0.4);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}

.btn-reserve:hover {
    border-color: rgba(255, 70, 70, 0.95);
    background:
            radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,0.09) 0%, transparent 55%),
            linear-gradient(180deg, #0a0505 0%, #240707 45%, #870000 85%, #b80000 100%);
    box-shadow:
            0 10px 34px rgba(0, 0, 0, 0.6),
            0 10px 34px rgba(204, 0, 0, 0.65),
            inset 0 2px 5px rgba(255,255,255,0.2),
            inset 0 -18px 30px rgba(255, 30, 30, 0.5);
}

.btn-reserve:active {
    border-color: rgba(255, 100, 100, 1);
    background:
            radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,0.12) 0%, transparent 55%),
            linear-gradient(180deg, #0d0606 0%, #2c0808 45%, #a30000 85%, #d40000 100%);
    box-shadow:
            0 6px 26px rgba(0, 0, 0, 0.55),
            0 0 40px rgba(255, 0, 0, 0.8),
            inset 0 2px 6px rgba(255,255,255,0.25),
            inset 0 -14px 24px rgba(255, 40, 40, 0.6);
    transform: scale(0.97);
}

.modal-status {
    display: none;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    min-height: 18px;
}
.modal-status.ok  { color: #46d17a; }
.modal-status.err { display: block; color: var(--red-bright); }

.modal__success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 20px 4px;
}
.modal__success.is-visible { display: flex; }

.modal__success-title {
    font-family: 'Furore', 'Oswald', sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 40px);
    text-transform: uppercase;
    color: var(--white);
}

.modal__success-text {
    font-family: "Monserrate", sans-serif;
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* модалка резерва центрируется по вертикали (в отличие от policy-overlay) */
#bookingModal.modal-overlay {
    align-items: center;
}

/* ══════════════════════════════════════════════
   МОДАЛКА: РЕЗЕРВ СТОЛИКА — дизайн скопирован со Style.css.
   Использует общий .modal-overlay, но переопределяет вид
   ТОЛЬКО через .modal.booking-modal, чтобы не задеть .policy-modal.
══════════════════════════════════════════════ */
.modal.booking-modal {
    max-width: 460px;
    border-radius: 24px;
    overflow: hidden;
    padding: clamp(28px, 4vw, 44px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px var(--glow);
}

/* радиальное красное свечение снизу — только у резерва */
.modal.booking-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
            120% 70% at 50% 120%,
            rgba(228, 21, 29, 0.55) 0%,
            rgba(228, 21, 29, 0.18) 40%,
            transparent 70%
    );
}

.modal.booking-modal .modal__close,
.modal.booking-modal .modal__form,
.modal.booking-modal .modal__success {
    position: relative;
    z-index: 1;
}

.modal__form { display: flex; flex-direction: column; gap: 18px; }

.form-label {
    font-family: 'Furore', sans-serif;
    font-size: clamp(10px, 1.8vw, 20px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255);
    display: block;
    margin-bottom: clamp(6px, 1vw, 16px);
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-family: 'Daray', sans-serif;
    font-size: clamp(12px, 1.8vw, 32px);
    padding: 7px 0 16px;
    outline: none;
    transition: border-color 0.2s;
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus { border-bottom-color: rgba(255,255,255,0.6); }

.form-check {
    font-family: 'Daray', sans-serif;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(10px, 1.2vw, 26px);
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    line-height: 1.3;
}

.form-check input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.7);
    background: #000;
    cursor: pointer;
    position: relative;
    border-radius: 2px;
}
.form-check input[type=checkbox]:checked {
    background-image: url("../img/apply.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
}

.btn-reserve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 60px;
    border: 1.5px solid rgba(255, 45, 45, 0.85);
    border-radius: 50px;
    cursor: pointer;
    font-family: "Bebas", sans-serif;
    font-size: 31px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    background: radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 55%), linear-gradient(180deg, #27b7fb00 0%, #00000047 45%, #250000b8 85%, #9a000052 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 8px 26px rgba(204, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.15), inset 0 -16px 26px rgba(255, 20, 20, 0.4);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}

.btn-reserve:hover {
    border-color: rgba(255, 70, 70, 0.95);
    background:
            radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,0.09) 0%, transparent 55%),
            linear-gradient(180deg, #0a0505 0%, #240707 45%, #870000 85%, #b80000 100%);
    box-shadow:
            0 10px 34px rgba(0, 0, 0, 0.6),
            0 10px 34px rgba(204, 0, 0, 0.65),
            inset 0 2px 5px rgba(255,255,255,0.2),
            inset 0 -18px 30px rgba(255, 30, 30, 0.5);
}

.btn-reserve:active {
    border-color: rgba(255, 100, 100, 1);
    background:
            radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,0.12) 0%, transparent 55%),
            linear-gradient(180deg, #0d0606 0%, #2c0808 45%, #a30000 85%, #d40000 100%);
    box-shadow:
            0 6px 26px rgba(0, 0, 0, 0.55),
            0 0 40px rgba(255, 0, 0, 0.8),
            inset 0 2px 6px rgba(255,255,255,0.25),
            inset 0 -14px 24px rgba(255, 40, 40, 0.6);
    transform: scale(0.97);
}

.modal-status {
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    min-height: 18px;
}
.modal-status.ok  { color: #46d17a; }
.modal-status.err { color: var(--red-bright); }

.modal__success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 20px 4px;
}
.modal__success.is-visible { display: flex; }

.modal__success-title {
    font-family: 'Furore', 'Oswald', sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 40px);
    text-transform: uppercase;
    color: var(--white);
}

.modal__success-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* ══════════════════════════════════════════════
   МОДАЛКА РЕЗЕРВА — центрируем по вертикали,
   в отличие от .policy-overlay (align-items: flex-start)
══════════════════════════════════════════════ */
#bookingModal.modal-overlay {
    align-items: center;
}

/* ═══════════ АНИМАЦИИ ═══════════ */
@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

.reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.reveal[data-d="1"] { animation-delay: .08s; }
.reveal[data-d="2"] { animation-delay: .16s; }
.reveal[data-d="3"] { animation-delay: .24s; }

/* ═══════════ RESPONSIVE (структурные переключения) ═══════════ */
@media (max-width: 720px) {
    .apply { grid-template-columns: 1fr; }
    .apply__photo { max-width: 480px; margin-inline: auto; aspect-ratio: 4 / 5; }
    .hero-decor { height: clamp(140px, 34vw, 260px); }
    .footer-bgg { height: clamp(160px, 36vw, 300px); }

    .page__title,
    .slogan {
        position: relative;
        z-index: 2;
    }

    .page__title {
        font-size: clamp(35px, 15.5vw, 102px);
    }
}

@media (max-width: 900px) {
    .form__label{
        font-size: clamp(15px, 1.8vw, 20px);
    }
    .form__input {
        font-size: clamp(22px, 1.8vw, 32px);
        padding: 7px 15px 10px;
    }
    .form__box{
        width: 36px;
        height: 36px;
    }
    .form__box svg {
        width: 34px;
        height: 34px;
        stroke: var(--white);
        stroke-width: 1.2px;
        fill: none;
        opacity: 0;
        transition: opacity .15s;
        margin-left: 0%;
        margin-top: 0%;
    }
    .slogan__word1 {
        font-size: 22.5vw;   /* подбери множитель под нужный визуальный результат */
    }
    .slogan{
        font-size: clamp(30px, 14vw, 94px);
    }
    .card__body {
        padding: clamp(23px, 6.5vw, 26px);
        min-height: clamp(96px, 14vw, 150px);
        display: flex;
        align-items: center;
    }
}

@media (max-width: 420px) {
    .nav__phone { width: 100%; text-align: center; order: 5; }
}

/* доступность */
:focus-visible { outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ══════════════════════════════════════════════
   MOBILE NAV: ICONS + BURGER
══════════════════════════════════════════════ */
.nav__logo-icon,
.nav__burger { display: none; }

@media (max-width: 900px) {
    .nav a:not(.reserve-btn):not(.nav__logo-icon) { display: none; }

    .nav {
        justify-content: space-between;
        gap: 12px;
        padding: 14px 18px;
    }

    .nav__logo-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }
    .nav__logo-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .nav__burger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 46px;
        height: 46px;
        border: 1.5px solid rgba(255,255,255,0.4);
        border-radius: 50%;
        overflow: hidden;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
    }
    .nav__burger span {
        display: block;
        width: 16px;
        height: 1.5px;
        background: var(--white);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ══════════════════════════════════════════════
   MOBILE MENU OVERLAY
══════════════════════════════════════════════ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0,0,0,0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 56px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.mobile-menu__nav a {
    font-family: 'Daray', sans-serif;
    font-size: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}
.mobile-menu__nav a.active,
.mobile-menu__nav a:hover { opacity: 1; }

.mobile-menu__socials { display: flex; gap: 24px; }
.mobile-menu__soc {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28) center / 100px 100px no-repeat;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    text-decoration: none;
}
.mobile-menu__soc--tg { background-image: url('../img/la.png'); }
.mobile-menu__soc--vk { background-image: url('../img/al.png'); }

.mobile-menu__soc svg { width: 24px; height: 24px; }


body.menu-open { overflow: hidden; }

.slogan__mobile-media { display: none; }

@media (max-width: 900px) {
    .footer{
        left: 20.2%;
        margin-top: 3%;
    }
    .slogan__mobile-media {
        display: block;
        position: absolute;
        top: 20%;
        left: 0;
        right: 0;
        height: 60vh;
        overflow: hidden;
        z-index: 0;
        pointer-events: none;
    }

    .slogan__mobile-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 900px) {
    .page::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(180deg, rgb(0 0 0 / 65%) 0%, rgba(0, 0, 0, 0.85) 100%);
    }
}

@media (min-width: 901px) {
    .mobile-menu { display: none !important; }
}

/* ══════════════════════════════════════════════
   MOBILE BOTTOM BAR (fixed, всегда видна)
══════════════════════════════════════════════ */
.mobile-bottombar { display: none; }

@media (max-width: 900px) {
    .mobile-bottombar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 300;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.92) 100%);
        pointer-events: none;
    }

    .mobile-bottombar__left {
        display: flex;
        align-items: center;
        gap: 12px;
        pointer-events: auto;
    }

    .mobile-bottombar__btn {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border: none;
        cursor: pointer;
        pointer-events: auto;
    }

    .mobile-bottombar__btn--top {
        background: #000;
        color: var(--white);
    }
    .mobile-bottombar__btn--top svg { width: 30px; height: 30px;         opacity: 0.55;}

    .mobile-bottombar__btn--pin {
        border: 1px solid rgba(255, 255, 255, 0.4);
        background: #00000059;
    }
    .mobile-bottombar__btn--pin img {
        width: 34px;
        height: 30px;
        object-fit: contain;
    }

    .mobile-bottombar__taxi {
        width: 46px;
        height: 46px;
        border-radius: 6px;
        overflow: hidden;
        background: #fff7f7 url(../img/Logo_yandex_taxi_app.png) center / cover no-repeat;
        flex-shrink: 0;
        pointer-events: auto;
    }

    .mobile-bottombar__right {
        display: flex;
        align-items: center;
        gap: 10px;
        pointer-events: auto;
    }

    .mobile-bottombar__btn--phone {
        border: 1px solid rgba(255, 255, 255, 0.4);
        background: #00000059;
        color: var(--white);
    }
    .mobile-bottombar__btn--phone svg { width: 23px; height: 23px; opacity: 0.85; }

    body.menu-open .mobile-bottombar { display: none; }

    body { padding-bottom: 78px; }
}

@media (min-width: 901px) {
    .mobile-bottombar { display: none !important; }
}

/* ══════════════════════════════════════════════
   VACANCIES — доп. адаптация под мобилку
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .page { padding: 20px;
    padding-top: 60px}

    .booking__form {
        width: 100%;
    }

    .card__pay {
        font-size: clamp(22px, 10vw, 52px);}
    /* декоративная картинка над слоганом — слишком агрессивно
       позиционирована под десктоп (left:-42%), на мобиле прячем */
    .booking__img-bg {
        top: -33%;
        left: -10%;
        width: 101%;
        z-index: -1;
    }

    /* декор перед футером использует расчёты под 1920px — на мобиле сносит вёрстку */
    .footer-bgg { display: none; }

    .mobile-bottombar__btn--top {
        border: 1px solid rgba(255, 255, 255, 0.4);
        background: #00000059;
        color: var(--white);
    }
}

@media (max-width: 560px) {
    /* карточки вакансий — в одну колонку, иначе цифры "200 000 - 350 000" не помещаются */
    .cards { grid-template-columns: 1fr;
        margin-left: 0%;}

    .card {
        width: 100%;
        border-radius: 5px;
        border: 2px solid var(--red);
        background: #000;
        transition: box-shadow .3s, transform .25s;
    }

    .slogan {
        margin-left: 0%;
        white-space: wrap;
    }

    .page__title{
        margin-left: 0%;
    }
    .cut-corner {
        width: 102vw;
        margin-top: -19%;
        margin-left: 44%;
        transform: translateX(-50%);
        margin-right: 0;
        padding: 15px 37px 28px;
        clip-path: polygon(0% 0%, calc(100% - 28px) 0%, 100% 28px, 100% 100%, 0% 100%)
    }
}

/* ══════════════════════════════════════════════
   PHONE GLITCH — slice + RGB-сплит, рывками
══════════════════════════════════════════════ */
.phone-glitch {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.phone-glitch::before,
.phone-glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.phone-glitch::before {
    color: #22d8ff;
    animation: phone-glitch-cyan 2.6s infinite steps(1);
}

.phone-glitch::after {
    color: #ff2d95;
    animation: phone-glitch-magenta 3.1s infinite steps(1);
}

@keyframes phone-glitch-cyan {
    0%   { clip-path: inset(0 0 88% 0);  transform: translate(0, 0); }
    8%   { clip-path: inset(4% 0 80% 0); transform: translate(-3px, -1px); }
    16%  { clip-path: inset(0 0 92% 0);  transform: translate(0, 0); }
    24%  { clip-path: inset(38% 0 45% 0); transform: translate(2px, 1px); }
    32%  { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    40%  { clip-path: inset(62% 0 18% 0); transform: translate(-2px, 0); }
    48%  { clip-path: inset(0 0 96% 0);  transform: translate(0, 0); }
    56%  { clip-path: inset(15% 0 68% 0); transform: translate(3px, -1px); }
    64%  { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    72%  { clip-path: inset(80% 0 4% 0);  transform: translate(-1px, 1px); }
    80%  { clip-path: inset(0 0 90% 0);  transform: translate(0, 0); }
    88%  { clip-path: inset(45% 0 40% 0); transform: translate(2px, 0); }
    96%  { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    100% { clip-path: inset(0 0 88% 0);  transform: translate(0, 0); }
}

@keyframes phone-glitch-magenta {
    0%   { clip-path: inset(88% 0 0 0);  transform: translate(0, 0); }
    7%   { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    14%  { clip-path: inset(72% 0 6% 0);  transform: translate(3px, 1px); }
    22%  { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    30%  { clip-path: inset(20% 0 55% 0); transform: translate(-2px, -1px); }
    38%  { clip-path: inset(0 0 96% 0);  transform: translate(0, 0); }
    46%  { clip-path: inset(55% 0 25% 0); transform: translate(2px, 0); }
    54%  { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    62%  { clip-path: inset(4% 0 82% 0);  transform: translate(-3px, 1px); }
    70%  { clip-path: inset(0 0 92% 0);  transform: translate(0, 0); }
    78%  { clip-path: inset(65% 0 15% 0); transform: translate(1px, -1px); }
    86%  { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    94%  { clip-path: inset(30% 0 48% 0); transform: translate(-2px, 0); }
    100% { clip-path: inset(88% 0 0 0);  transform: translate(0, 0); }
}

.nav__phone:hover .phone-glitch::before,
.nav__phone:hover .phone-glitch::after {
    clip-path: inset(0 0 100% 0) !important;
    transform: none !important;
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .phone-glitch::before,
    .phone-glitch::after { animation: none; clip-path: inset(0 0 100% 0); }
}

@media (max-width: 900px) {
    .cut-corner {
        margin-right: 0;
    }
}

@media (max-width: 900px) {
    .reserve-btn {
        width: clamp(158px, 11vw, 160px);
        /* left: -27%; */
        /* top: 137%; */
        /* margin-top: 5px; */
        height: clamp(58px, 10vw, 82px);
    }

    .form-label {
        font-size: clamp(15px, 1.8vw, 20px);
    }

    .form-input {
        font-size: clamp(22px, 1.8vw, 32px);
        padding: 7px 18px 16px;
    }

    .form-check {
        font-size: clamp(18px, 1.2vw, 26px);
    }
}

.modal.policy-modal {
    position: relative;
    width: 100%;
    max-width: 1650px;
    max-height: 85vh;
    border-radius: 4px;
    border: 1.5px solid rgb(255 42 42 / 29%);
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.65),
            0 0 55px rgba(204, 0, 0, 0.45),
            inset 0 0 20px rgba(255, 42, 42, 0.35),
            inset 0 0 90px rgba(204, 0, 0, 0.12);
    padding: clamp(28px, 4vw, 64px);
    background:
            linear-gradient(
                    172deg,
                    rgba(2, 2, 2, 0.73) 0%,
                    rgba(2, 2, 2, 0.73) 37%,
                    rgba(115, 4, 11, 0.73) 92%,
                    rgba(152, 5, 14, 0.73) 100%
            ),
            #0a0a0a;
    transform: translateY(24px) scale(.97);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.modal.policy-modal {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(227, 227, 227, 0.7) transparent;
}

.modal.policy-modal::-webkit-scrollbar {
    width: 6px;
}
.modal.policy-modal::-webkit-scrollbar-track {
    background: transparent;
}
.modal.policy-modal::-webkit-scrollbar-thumb {
    background: rgba(204, 0, 0, 0.6);
    border-radius: 3px;
}
.modal.policy-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 30, 30, 0.85);
}

@media (max-width: 560px) {
    .modal.policy-modal { padding: 24px 18px; max-height: 95vh; }
}

.policy-modal__title-accent {
    font-size: 2.45em;   /* подбери множитель под нужный масштаб */
    display: inline-block;
}

.policy-modal__title-spaced {
    letter-spacing: 0.035em;   /* подбери множитель под нужный результат */
}

@media (max-width: 900px) {
    .policy-modal__title {
        max-width: 313px;
        padding-top: 25px;
    }
}

@media (max-width: 900px) {
    .policy-modal__br-desktop {
        display: none;
    }
}

@media (min-width: 901px) {
    #policyTitle.policy-modal__title {
        text-align: right;
        max-width: none;
        margin: 0 0 clamp(24px, 3vw, 44px);
        font-size: clamp(28px, 2.4vw, 35px);
    }

    #policyTitle .policy-modal__title-accent {
        font-size: 1em;
        display: inline;
    }

    #policyTitle .policy-modal__title-spaced {
        letter-spacing: normal;
    }

    #policyTitle .policy-modal__br-mobile {
        display: none;
    }
}

/* ══════════════════════════════════════════════
   BLOB-DECOR — 2 сета декоративных сфер в стиле "лавы".
   1: за заголовком "Вакансии"
   2: за слоганом "Можно без опыта"
   Лежат внутри .page (уже position: relative), поверх
   .page::before (тёмная накладка, z-index:1), но под текстом.
   Только мобилка.
══════════════════════════════════════════════ */
.blob-decor-vac-title,
.blob-decor-vac-slogan {
    display: none;
}

@media (max-width: 900px) {
    .blob-decor-vac-title .blob,
    .blob-decor-vac-slogan .blob {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: radial-gradient(50% 50% at 50% 50%, #780716b3 0%, rgba(224, 34, 59, 0) 100%);
        filter: blur(2.2rem);
        mix-blend-mode: normal;
        will-change: transform;
    }

    .blob-decor-vac-title .blob.a,
    .blob-decor-vac-slogan .blob.a {
        opacity: 0.93;
        animation: feedbackLava1 5s linear infinite;
    }

    .blob-decor-vac-title .blob.b,
    .blob-decor-vac-slogan .blob.b {
        opacity: 0.78;
        animation: feedbackLava2 7s linear infinite;
    }

    .blob-decor-vac-title .blob.c,
    .blob-decor-vac-slogan .blob.c {
        opacity: 0.68;
        animation: feedbackLava3 9s linear infinite;
    }

    /* ---------- 1. ЗА «ВАКАНСИИ» ---------- */
    .blob-decor-vac-title {
        display: block;
        position: absolute;
        top: 90px;       /* ← настраивай под себя */
        left: 50%;
        width: 100vw;
        height: 100vw;
        max-width: 400px;
        max-height: 400px;
        transform: translate(-50%, -50%);
        isolation: isolate;
        pointer-events: none;
        z-index: 1;
    }

    /* ---------- 2. ЗА «МОЖНО БЕЗ ОПЫТА» ---------- */
    .blob-decor-vac-slogan {
        display: block;
        position: absolute;
        top: 620px;      /* ← настраивай под себя */
        left: 50%;
        width: 100vw;
        height: 100vw;
        max-width: 400px;
        max-height: 400px;
        transform: translate(-50%, -50%);
        isolation: isolate;
        pointer-events: none;
        z-index: 1;
    }
}

@keyframes feedbackLava1 {
    0%   { transform: translate(-15%, -20%) scale(0.98); }
    25%  { transform: translate(28%, -8%)   scale(1.05); }
    50%  { transform: translate(13%, 28%)   scale(1); }
    75%  { transform: translate(-30%, 10%)  scale(1.06); }
    100% { transform: translate(-15%, -20%) scale(0.98); }
}

@keyframes feedbackLava2 {
    0%   { transform: translate(18%, -12%)  scale(1.04); }
    25%  { transform: translate(-22%, 15%)  scale(0.97); }
    50%  { transform: translate(-8%, -25%)  scale(1.08); }
    75%  { transform: translate(24%, 6%)    scale(1); }
    100% { transform: translate(18%, -12%)  scale(1.04); }
}

@keyframes feedbackLava3 {
    0%   { transform: translate(-20%, 16%)  scale(0.95); }
    25%  { transform: translate(12%, 24%)   scale(1.03); }
    50%  { transform: translate(26%, -10%)  scale(0.99); }
    75%  { transform: translate(-14%, -22%) scale(1.05); }
    100% { transform: translate(-20%, 16%)  scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
    .blob-decor-vac-title .blob,
    .blob-decor-vac-slogan .blob { animation: none; }
}

/* ══════════════════════════════════════════════
   BLOB-DECOR — ДЕСКТОП: те же 2 сферы, что на мобилке,
   только крупнее и с другими координатами
══════════════════════════════════════════════ */
@media (min-width: 901px) {
    .blob-decor-vac-title,
    .blob-decor-vac-slogan {
        display: block;
        position: absolute;
        width: 40vw;
        height: 40vw;
        max-width: 700px;
        max-height: 700px;
        pointer-events: none;
        z-index: 1;
    }

    .blob-decor-vac-title .blob,
    .blob-decor-vac-slogan .blob {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        /* многоступенчатый градиент вместо blur() — тот же вид, без перерасчёта фильтра */
        background: radial-gradient(
                50% 50% at 50% 50%,
                #780716b3 0%,
                #78071680 38%,
                #7807163d 62%,
                #78071614 80%,
                rgba(224, 34, 59, 0) 100%
        );
        mix-blend-mode: normal;
        transform: translateZ(0);
    }

    .blob-decor-vac-title .blob.a,
    .blob-decor-vac-slogan .blob.a { opacity: 0.93; animation: feedbackLava1 11s linear infinite; }

    .blob-decor-vac-title .blob.b,
    .blob-decor-vac-slogan .blob.b { opacity: 0.78; animation: feedbackLava2 15s linear infinite; }

    .blob-decor-vac-title .blob.c,
    .blob-decor-vac-slogan .blob.c { opacity: 0.68; animation: feedbackLava3 19s linear infinite; }

    /* координаты — подгони на глаз под реальную вёрстку заголовка/слогана */
    .blob-decor-vac-title  { top: 31%; left: 2%; transform: translate(-50%, -50%); }
    .blob-decor-vac-slogan { top: 60%; left: 70%; transform: translate(-50%, -50%); }
}

@media (max-width: 900px) {
    .mobile-menu__nav a {
        padding-inline: 0.15em;
        overflow: visible;
    }
}

.reserve-btn::after,
.nav__phone::after,
.nav__logo-icon::after {
    display: none;
}

/* =====================================================
   УБИРАЕМ ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ
   ===================================================== */
@media (max-width: 560px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
    }

    img,
    video,
    svg {
        max-width: 145%;
    }

    .page {
        max-width: 100%;
        overflow-x: clip;
    }
}


/* мобильный блок формы не должен расширять viewport */
@media (max-width: 560px) {
    .cut-corner {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 560px) {
    .form__input {
        width: 97%;
    }
    .form-check{
        font-size: clamp(18px, 1.2vw, 26px);
    }
    .cut-corner {
        width: 101vw !important;
        max-width: 101vw !important;

        margin-left: calc(50% - 56%) !important;
        margin-right: 0 !important;

        transform: none !important;

        /* оставляем твой срез угла */
        clip-path: polygon(
                0 0,
                calc(100% - 28px) 0,
                100% 28px,
                100% 100%,
                0 100%
        );
    }
}

@media (max-width: 560px) {

    .booking__img-wrap {
        position: relative;
        width: 100vw;
        max-width: 100vw;

        margin-left: calc(50% - 50vw);

        height: 310px;

        overflow: visible;
    }

    /* Большая декоративная рамка */
    .booking__img-bg {
        position: absolute;

        width: 125vw;
        height: 125vw;

        max-width: none;

        top: 50%;
        left: 50%;

        transform: translate(-50%, -50%) rotate(5deg);

        object-fit: contain;

        z-index: 1;
    }

    /* Фотография / glitch */
    .glitch-img {
        position: absolute;

        width: 112vw;
        max-width: none;

        height: auto;

        top: 50%;
        left: 50%;

        transform: translate(-50%, -50%);

        z-index: 2;
    }
}

/* ══════════════════════════════════════════════
   ШИРОКИЕ ЭКРАНЫ (> 1920px)
   Формула: A на 1920px → B на 3440px, дальше фиксируется.
   Ниже 1921px не затрагивается ничего.
══════════════════════════════════════════════ */
@media (min-width: 1921px) {

    /* ── ГЛАВНОЕ: контейнер перестаёт упираться в 1180 ── */
    :root {
        --maxw: clamp(1180px, calc(1180px + 820 * (100vw - 1920px) / 1520), 2000px);
    }

    .wrap {
        padding-inline: clamp(64px, 4vw, 110px);
    }

    /* ── NAV ── */
    .nav {
        gap: clamp(70px, calc(70px + 45 * (100vw - 1920px) / 1520), 115px);
        font-size: clamp(11px, 1.4vw, 48px);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav__phone {
        font-size: clamp(32px, calc(32px + 16 * (100vw - 1920px) / 1520), 48px);
    }

    .reserve-btn {
        width: clamp(186px, calc(186px + 114 * (100vw - 1920px) / 1520), 300px);
        height: clamp(70px, calc(70px + 43 * (100vw - 1920px) / 1520), 113px);
    }

    /* ── ЗАГОЛОВОК ── */
    .page__title {
        font-size: clamp(100px, calc(100px + 50 * (100vw - 1920px) / 1520), 150px);
        margin-bottom: clamp(48px, calc(48px + 30 * (100vw - 1920px) / 1520), 78px);
    }

    /* ── КАРТОЧКИ ВАКАНСИЙ ── */
    .cards {
        max-width: none;
        gap: clamp(53px, calc(53px + 27 * (100vw - 1920px) / 1520), 80px);
        margin-bottom: clamp(70px, calc(70px + 44 * (100vw - 1920px) / 1520), 114px);
    }

    .card {
        width: 100%;
    }

    .card__head {
        padding: clamp(16px, 2vw, 26px) clamp(26px, 3.5vw, 44px);
    }

    .card__head h2 {
        font-size: clamp(34px, calc(34px + 16 * (100vw - 1920px) / 1520), 50px);
    }

    .card__body {
        padding: clamp(50px, 3.5vw, 82px);
        min-height: clamp(150px, 14vw, 240px);
    }

    .card__pay {
        font-size: clamp(52px, calc(52px + 26 * (100vw - 1920px) / 1520), 78px);
    }

    /* ── СЛОГАН ── */
    .slogan {
        font-size: clamp(111px, calc(111px + 56 * (100vw - 1920px) / 1520), 167px);
        margin-bottom: clamp(56px, calc(56px + 34 * (100vw - 1920px) / 1520), 90px);
    }

    .hero-decor {
        width: clamp(1000px, 50vw, 1600px);
        height: clamp(1000px, 50vw, 1600px);
    }

    /* ── ФОРМА ── */
    .apply {
        gap: clamp(64px, 6vw, 110px);
    }

    .form__field {
        margin-bottom: clamp(26px, calc(26px + 13 * (100vw - 1920px) / 1520), 39px);
    }

    .form__label {
        font-size: clamp(20px, calc(20px + 10 * (100vw - 1920px) / 1520), 30px);
        margin-bottom: clamp(12px, calc(12px + 6 * (100vw - 1920px) / 1520), 18px);
    }

    .form__input {
        font-size: clamp(30px, calc(30px + 15 * (100vw - 1920px) / 1520), 45px);
        padding-bottom: clamp(12px, calc(12px + 6 * (100vw - 1920px) / 1520), 18px);
    }

    .form__check {
        font-size: clamp(26px, 1.2vw, 38px);
        gap: clamp(14px, calc(14px + 8 * (100vw - 1920px) / 1520), 22px);
        margin-bottom: clamp(14px, calc(14px + 8 * (100vw - 1920px) / 1520), 22px);
    }

    .form__box {
        width: clamp(26px, 3vw, 40px);
        height: clamp(26px, 3vw, 40px);
    }

    .form__box svg {
        width: clamp(25px, calc(25px + 13 * (100vw - 1920px) / 1520), 38px);
        height: clamp(25px, calc(25px + 13 * (100vw - 1920px) / 1520), 38px);
    }

    .btn-red {
        max-width: clamp(320px, calc(320px + 160 * (100vw - 1920px) / 1520), 480px);
        height: clamp(90px, calc(90px + 45 * (100vw - 1920px) / 1520), 135px);
    }

    .cut-corner {
        padding: clamp(84px, 6vw, 130px)
        clamp(80px, 5vw, 124px)
        clamp(52px, 5vw, 80px)
        clamp(59px, 4vw, 92px);
        clip-path: polygon(
                clamp(107px, 6vw, 165px) 0%,
                100% 0%,
                100% 100%,
                0% 100%,
                0% clamp(108px, 6vw, 166px)
        );
        margin-right: calc(-1 * (clamp(64px, 4vw, 110px) + max(0px, (100vw - var(--maxw)) / 2)));
    }

    /* ── ДЕКОР ПЕРЕД ФУТЕРОМ ── */
    .footer-bgg {
        width: clamp(1000px, 60vw, 1700px);
        height: clamp(1000px, 60vw, 1700px);
    }

    /* ── МОДАЛКА ЗАБРОНИРОВАТЬ ── */
    .modal {
        max-width: clamp(474px, calc(474px + 176 * (100vw - 1920px) / 1520), 650px);
    }

    .form-label {
        font-size: clamp(20px, calc(20px + 10 * (100vw - 1920px) / 1520), 30px);
        margin-bottom: clamp(16px, calc(16px + 11 * (100vw - 1920px) / 1520), 27px);
    }

    .form-input {
        font-size: clamp(32px, calc(32px + 16 * (100vw - 1920px) / 1520), 48px);
        padding-bottom: clamp(16px, calc(16px + 11 * (100vw - 1920px) / 1520), 27px);
    }

    .form-check {
        font-size: clamp(26px, 1.2vw, 38px);
        gap: clamp(14px, calc(14px + 11 * (100vw - 1920px) / 1520), 25px);
    }

    .form-check input[type=checkbox] {
        width: clamp(36px, calc(36px + 28 * (100vw - 1920px) / 1520), 64px);
        height: clamp(36px, calc(36px + 28 * (100vw - 1920px) / 1520), 64px);
    }

    .btn-reserve {
        font-size: clamp(31px, calc(31px + 14 * (100vw - 1920px) / 1520), 45px);
        padding: clamp(18px, calc(18px + 8 * (100vw - 1920px) / 1520), 26px)
        clamp(60px, calc(60px + 27 * (100vw - 1920px) / 1520), 87px);
    }

    /* ── МОДАЛКА ПОЛИТИКИ ── */
    .modal.policy-modal {
        max-width: clamp(1650px, calc(1650px + 550 * (100vw - 1920px) / 1520), 2200px);
    }

    .policy-modal__body {
        font-size: clamp(15px, calc(15px + 5 * (100vw - 1920px) / 1520), 20px);
    }

    .policy-modal__body h3 {
        font-size: clamp(19px, calc(19px + 6 * (100vw - 1920px) / 1520), 25px);
    }

    #policyTitle.policy-modal__title {
        font-size: clamp(35px, 2.4vw, 52px);
    }

    /* ── FOOTER ── */
    .footer__link {
        font-size: clamp(14px, calc(14px + 8 * (100vw - 1920px) / 1520), 22px);
    }
}

/* ══════════════════════════════════════════════
   ДЕСКТОП 901–1920px — сжатие фикс. значений
   Формула: A на 900px → B на 1920px. На 1920 = B (как сейчас).
══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   ДЕСКТОП 901–1920px
   Все размеры = (значение на 1920px) / 19.2 в vw,
   поэтому пропорции на любой ширине совпадают с 1920px.
══════════════════════════════════════════════ */
@media (min-width: 901px) and (max-width: 1920px) {

    /* ── СТРАНИЦА ── */
    .page {
        padding-top:    min(28px, 1.4583vw);
        padding-bottom: min(70px, 3.6458vw);
    }

    .page__title {
        font-size: 5.2083vw;
        margin-bottom: 2.5vw;
    }

    .slogan {
        font-size: 5.7813vw;
        margin-bottom: 2.9167vw;
    }

    /* ── КАРТОЧКИ ── */
    .cards {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        margin-bottom: 3.6458vw;
    }
    .card { width: 100%; min-width: 0; }

    .card__head    { padding: 0.8333vw 1.3542vw; }
    .card__head h2 { font-size: 1.7708vw; }

    .card__body {
        padding: 2.6042vw;
        min-height: 7.8125vw;
    }
    .card__pay { font-size: 2.7083vw; }

    /* ── ФОРМА ── */
    .apply { gap: 3.3333vw; }

    .apply__photo img,
    .booking__bg { margin-left: -5vw; }

    .booking__form { width: 100%; }

    .form__field { margin-bottom: 1.3542vw; }

    .form__label {
        font-size: 1.0417vw;
        margin-bottom: 0.625vw;
    }

    .form__input {
        width: 92%;
        font-size: 1.5625vw;
        padding: 0.4167vw 2px 0.625vw;
    }

    .form__check {
        font-size: 1.3542vw;
        gap: 0.7292vw;
        margin-bottom: 0.7292vw;
    }

    .form__box     { width: 1.3542vw; height: 1.3542vw; }
    .form__box svg { width: 1.3021vw; height: 1.3021vw; }

    .btn-red {
        max-width: 16.6667vw;
        height: 4.6875vw;
        margin-top: 1.1458vw;
    }

    .cut-corner {
        margin-top: 20%;
        padding: 4.375vw 4.1667vw 2.7083vw 3.0729vw;
        clip-path: polygon(
                5.5729vw 0%,
                100% 0%,
                100% 100%,
                0% 100%,
                0% 5.625vw
        );
    }

    /* ── ДЕКОР И ФУТЕР ── */
    .hero-decor  { width: 50vw; height: 50vw; }
    .footer-bgg  { width: 52.0833vw; height: 52.0833vw; }

    .footer       { padding: 0.9375vw 1.6667vw; }
    .footer__link { font-size: max(12px, 0.7292vw); }
}

/* ══════════════════════════════════════════════
   ОБЩАЯ ЛИНИЯ ДЛЯ НАВА И КОНТЕНТА
   62.45% ширины окна = 1199px на 1920px — ровно та ширина,
   по которой на 1920px совпадают кнопка «Резерв», карточки
   и заголовки. Ограничение — 2400px на сверхшироких.
══════════════════════════════════════════════ */
@media (min-width: 901px) {

    .wrap {
        max-width: none;
        width: min(62.45%, 2400px);
        margin-inline: auto;
        padding-inline: 0;
    }

    .page__title,
    .slogan { margin-left: -0.42%; }

    .cards {
        margin-left: 0;
        width: 100%;
        max-width: none;
        gap: 2.7604vw;
    }

    /* форма сохраняет ту же ширину относительно линии, что и на 1920px */
    .apply {
        width: 87.74%;
        margin-inline: auto;
    }

    /* чёрная плашка формы уходит под правый край экрана */
    .cut-corner {
        margin-right: calc(min(27.4vw, 1053px) - 50vw);
    }
}