:root {
    --bg: #07111e;
    --bg-deep: #040a12;
    --panel: rgba(13, 29, 48, 0.78);
    --panel-strong: rgba(16, 38, 63, 0.9);
    --line: rgba(124, 199, 255, 0.2);
    --line-strong: rgba(124, 199, 255, 0.5);
    --text: #f4f8fc;
    --muted: #a7bbce;
    --blue: #4aa3ff;
    --blue-light: #8cd3ff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 3%, rgba(40, 123, 201, 0.2), transparent 29rem),
        radial-gradient(circle at 87% 20%, rgba(34, 103, 180, 0.18), transparent 30rem),
        linear-gradient(145deg, var(--bg) 0%, #081727 53%, var(--bg-deep) 100%);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--blue-light);
    outline-offset: 4px;
}

.bg-grid,
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.bg-grid {
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(124, 199, 255, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 199, 255, 0.075) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.bg-glow {
    z-index: -1;
    background:
        radial-gradient(circle at 50% 15%, rgba(74, 163, 255, 0.13), transparent 25rem),
        radial-gradient(circle at 83% 78%, rgba(87, 182, 255, 0.09), transparent 25rem);
}

.page {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 13px 16px 13px 20px;
    border: 1px solid rgba(124, 199, 255, 0.17);
    border-radius: 18px;
    background: rgba(7, 19, 33, 0.66);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.logo {
    display: inline-flex;
    align-items: center;
    min-width: 180px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    margin-right: 8px;
}

.logo-svg {
    width: 166px;
    height: auto;
    overflow: visible;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 10px 15px;
    border: 1px solid rgba(124, 199, 255, 0.28);
    border-radius: 10px;
    color: #d6e8f8;
    background: rgba(74, 163, 255, 0.06);
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
    border-color: var(--line-strong);
    background: rgba(74, 163, 255, 0.16);
    transform: translateY(-1px);
}

.back-link svg {
    flex: 0 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 28px;
    align-items: end;
    padding: 78px 0 42px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    color: var(--blue-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 25px;
    height: 1px;
    background: currentColor;
    content: "";
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 770px;
    margin-bottom: 20px;
    font-size: clamp(35px, 5vw, 66px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.hero-text {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.62;
}

.info-card {
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(25, 57, 89, 0.82), rgba(9, 25, 43, 0.74));
    box-shadow: var(--shadow);
}

.info-card h2 {
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 650;
}

.info-list {
    display: grid;
    gap: 16px;
    margin: 0;
}

.info-row {
    display: grid;
    grid-template-columns: 33px 1fr;
    gap: 11px;
    align-items: start;
}

.info-icon {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    border: 1px solid rgba(124, 199, 255, 0.24);
    border-radius: 9px;
    color: var(--blue-light);
    background: rgba(74, 163, 255, 0.1);
}

.info-icon svg {
    width: 17px;
    height: 17px;
}

.info-row dt {
    margin: 0 0 2px;
    color: #d6e8f8;
    font-size: 13px;
    font-weight: 650;
}

.info-row dd {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.vacancies {
    padding-top: 22px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-heading p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    text-align: right;
}

.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.vacancy-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(14, 35, 58, 0.9), rgba(7, 19, 33, 0.86));
    box-shadow: var(--shadow);
}

.vacancy-card::before {
    position: absolute;
    top: 0;
    left: 30px;
    width: 66px;
    height: 2px;
    background: linear-gradient(90deg, #67c8ff, rgba(103, 200, 255, 0));
    content: "";
}

.vacancy-number {
    margin-bottom: 18px;
    color: #73c8ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.vacancy-card h3 {
    margin-bottom: 15px;
    font-size: clamp(22px, 2.8vw, 29px);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.vacancy-intro {
    min-height: 74px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 15px;
}

.vacancy-card h4 {
    margin: 0 0 11px;
    color: #dceeff;
    font-size: 14px;
    font-weight: 650;
}

.requirements {
    display: grid;
    gap: 9px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.requirements li {
    position: relative;
    padding-left: 20px;
    color: #b8c8d7;
    font-size: 14px;
    line-height: 1.55;
}

.requirements li::before {
    position: absolute;
    top: 0.72em;
    left: 1px;
    width: 7px;
    height: 7px;
    border: 1px solid #76caff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(118, 202, 255, 0.7);
    content: "";
}

.apply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-height: 47px;
    margin-top: auto;
    padding: 12px 17px;
    border: 1px solid rgba(125, 206, 255, 0.64);
    border-radius: 10px;
    color: #06111d;
    background: linear-gradient(135deg, #8ad9ff, #4da8f9);
    box-shadow: 0 9px 26px rgba(74, 163, 255, 0.2);
    font-size: 14px;
    font-weight: 750;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.apply-link:hover {
    filter: brightness(1.08);
    box-shadow: 0 13px 30px rgba(74, 163, 255, 0.32);
    transform: translateY(-2px);
}

.apply-link svg {
    width: 18px;
    height: 18px;
}

.response {
    margin-top: 28px;
    padding: 34px;
    border: 1px solid rgba(124, 199, 255, 0.27);
    border-radius: 18px;
    background:
        linear-gradient(110deg, rgba(21, 57, 91, 0.76), rgba(9, 24, 41, 0.9)),
        rgba(10, 27, 46, 0.86);
    box-shadow: var(--shadow);
}

.response-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.response h2 {
    margin-bottom: 8px;
    font-size: clamp(23px, 3vw, 31px);
    letter-spacing: -0.03em;
    line-height: 1.16;
}

.response p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.response .apply-link {
    flex: 0 0 auto;
    min-width: 176px;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding: 21px 2px 0;
    border-top: 1px solid rgba(124, 199, 255, 0.15);
    color: #7890a5;
    font-size: 13px;
}

.footer a {
    color: #a8c4db;
    text-decoration: underline;
    text-decoration-color: rgba(168, 196, 219, 0.38);
    text-underline-offset: 3px;
}

.footer a:hover {
    color: var(--blue-light);
}

@media (max-width: 820px) {
    .page {
        width: min(100% - 32px, 680px);
        padding-top: 16px;
    }

    .header {
        padding: 11px 12px 11px 15px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 57px 0 30px;
    }

    .info-card {
        max-width: 560px;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        margin-bottom: 11px;
    }

    .section-heading p {
        max-width: none;
        text-align: left;
    }

    .vacancy-grid {
        grid-template-columns: 1fr;
    }

    .response-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .page {
        width: min(100% - 24px, 560px);
        padding-bottom: 30px;
    }

    .header {
        border-radius: 14px;
    }

    .logo {
        min-width: 0;
    }

    .logo-mark {
        width: 33px;
        height: 33px;
        margin-right: 5px;
    }

    .logo-svg {
        width: 138px;
    }

    .back-link {
        width: 42px;
        min-height: 42px;
        padding: 0;
        font-size: 0;
    }

    .back-link svg {
        width: 19px;
        height: 19px;
    }

    .hero {
        padding-top: 43px;
    }

    h1 {
        font-size: clamp(32px, 10vw, 43px);
    }

    .hero-text {
        font-size: 16px;
    }

    .info-card,
    .vacancy-card,
    .response {
        padding: 23px 20px;
        border-radius: 15px;
    }

    .vacancy-card::before {
        left: 20px;
    }

    .vacancy-intro {
        min-height: 0;
    }

    .response .apply-link {
        width: 100%;
    }

    .footer {
        display: block;
        margin-top: 24px;
        padding-top: 18px;
    }

    .footer p {
        margin-bottom: 8px;
    }
}

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

.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Статус вакансий при временно приостановленном наборе */
.vacancy-paused {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 22px;
    padding: 15px 17px;
    border: 1px solid rgba(124, 199, 255, .28);
    border-radius: 12px;
    background: rgba(124, 199, 255, .08);
    color: #b4c2d4;
    font-size: 14px;
    line-height: 1.5;
}

.vacancy-paused strong {
    color: #f4f8ff;
    font-size: 15px;
}

.response-paused .response-inner {
    justify-content: center;
    text-align: center;
}

