/* =========================================
ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ
========================================= */
:root {
    --bg-color: #F9F9F9;
    --text-color: #111111;
    --font-main: 'Onest', sans-serif;
    --accent-red: #EE4238;
    --container-padding: 24px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: clip;
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

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

.container {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.text-center { text-align: center; }

.text-regular { font-weight: 600 !important; }
.text-black { font-weight: 900 !important; }

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-red);
    color: #FFFFFF;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-accent:hover {
    background-color: #d8342a;
    transform: translateY(-2px);
}

/* =========================================
2. ШАПКА (NAVBAR)
========================================= */
.navbar {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    position: relative;
    top: 0;
    left: 0;
    background-color: var(--bg-color);
    z-index: 1000;
}

.navbar-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 100px;
    padding-right: 100px;
}

.navbar-logo { display: flex; align-items: center; }

.navbar-link {
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .navbar-content {
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }
}

@media (max-width: 480px) {
    .navbar { height: 60px; }
    .navbar-logo svg { width: 78px; height: auto; }
    :root { --container-padding: 16px; }
}

/* =========================================
3. HERO
========================================= */
.career-hero {
    padding-top: 80px;
    padding-bottom: 0px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.career-hero-title {
    font-size: clamp(28px, 4.2vw, 48px);
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.career-hero-sub {
    font-size: 14px;
    line-height: 1.25;
    color: #444444;
    margin-bottom: 32px;
}

.demo-alert-box {
    background-color: var(--accent-red);
    color: #FFFFFF;
    border-radius: 16px;
    padding: 16px 24px;
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    box-shadow: 0 6px 20px rgba(238, 66, 56, 0.2);
}

.demo-alert-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
}

.btn-demo {
    background-color: #FFFFFF;
    color: #111111;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.career-hero-email {
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 12px;
    transition: opacity 0.2s ease;
}

.career-hero-email:hover { opacity: 0.75; }

/* 150px от почты до заголовка */
.career-hero-email-desc {
    max-width: 520px;
    font-size: 14px;
    line-height: 1.25;
    color: #666666;
    margin-bottom: 150px;
}

/* =========================================
4. ИНТЕРАКТИВНЫЙ БЛОК
Заголовок в потоке → липнет по центру → карточки
поверх → после последней карточки +100px заголовок
уезжает, сразу под ним блок "Ищешь работу".
========================================= */
.career-team-interactive {
    position: relative;
    /* 2345 (верх 5-й) + 380 (карточка) + 100 (пауза) + ~125 (заголовок) */
    height: 2950px;
    width: 100%;
    margin-top: 0;
}

/* Обёртка не занимает место в потоке */
.team-sticky-viewport {
    display: contents;
}

/* Заголовок: в потоке сразу после почты,
   при скролле фиксируется по центру экрана */
.team-header {
    position: sticky;
    top: calc(50vh - 90px);
    width: 100%;
    text-align: center;
    padding: 0;
    background: none;
    backdrop-filter: none;
    pointer-events: auto;
}

.team-title {
    font-size: clamp(28px, 4.2vw, 48px);
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.team-subtitle {
    font-size: 14px;
    line-height: 1.25;
    color: #666666;
}

/* Слои пролетающих карточек */
.team-cards-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.team-card {
    position: absolute;
    width: 240px;
    height: 300px;
    color: #FFFFFF;
    border-radius: 20px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
    transform: none !important;
    overflow: hidden;
}

.card-bg-1 {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%),
                url('/img/1card.png') center/cover no-repeat;
}
.card-bg-2 {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%),
                url('/img/2card.png') center/cover no-repeat;
}
.card-bg-3 {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%),
                url('/img/3card.png') center/cover no-repeat;
}
.card-bg-4 {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%),
                url('/img/4card.jpeg') center/cover no-repeat;
}
.card-bg-5 {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%),
                url('/img/5card.jpeg') center/cover no-repeat;
}

/* Карточки поверх заголовка */
.card-over  { z-index: 2; }

/* ИСПРАВЛЕНО: заголовок (~125px) + 100px отступ до 1-й карточки,
   шаг = 380 + 150 = 530px */
.card-pos-1 { top: 225px;  left: calc(50% - 500px); }
.card-pos-2 { top: 755px;  left: calc(50% + 50px); }
.card-pos-3 { top: 1285px; left: calc(50% - 240px); }
.card-pos-4 { top: 1815px; left: calc(50% + 260px); }
.card-pos-5 { top: 2345px; left: calc(50% - 390px); }

.team-card-star {
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.team-card-text {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #FFFFFF;
}

/* ИСПРАВЛЕНО: 100px вместо 150px до "Ищешь работу в лейбле?" */
.team-cta-section {
    padding-top: 60px;
    padding-bottom: 80px;
    position: relative;
    z-index: 5;
}

.team-cta-text {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    color: #111111;
    margin-bottom: 16px;
}

/* =========================================
5. ФОРМА ЗАЯВКИ
========================================= */
.career-form-section { padding-bottom: 100px; }

.form-wrapper {
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 44px 40px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.form-title {
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-subtitle {
    font-size: 14px;
    line-height: 1.25;
    color: #666666;
    text-align: center;
    margin-bottom: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.form-field { display: flex; flex-direction: column; }
.form-field--full { grid-column: span 2; }

.form-field label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222222;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #E2E2E2;
    background-color: #FBFBFB;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-color);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #111111;
    background-color: #FFFFFF;
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666666;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #111111;
    cursor: pointer;
}

.form-checkbox a {
    text-decoration: underline;
    color: #111111;
}

.form-submit-btn { width: 100%; max-width: 280px; }

/* =========================================
6. ПОДВАЛ (FOOTER)
========================================= */
.footer {
    margin-top: 80px;
    background-color: #EFEFEF;
    min-height: 370px;
    padding-top: 38px;
    padding-bottom: 40px;
    display: flex;
}

.footer .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.footer-main { display: flex; justify-content: flex-start; gap: 40px; }
.footer-column-left { max-width: 480px; }

.footer-description {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

.social-icons { margin-top: 60px; display: flex; gap: 6px; }
.social-icons a { display: block; }

.footer-column-right {
    margin-left: auto;
    margin-right: clamp(0px, 20vw, 280px);
    flex-shrink: 0;
}

.footer-title { font-size: 18px; font-weight: 800; }

.footer-link {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    text-decoration: none;
}

.footer-link:hover { text-decoration: underline; }

.bot { margin-top: 0px; }
.bot, .mail { font-size: 14px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-legal, .footer-copy {
    font-size: 12px;
    font-weight: 400;
    color: #666666;
}

.footer-copy .footer-link { display: inline; margin-top: 0; }

/* =========================================
7. АДАПТИВНОСТЬ
========================================= */
@media (max-width: 900px) {
    .career-hero-email-desc { margin-bottom: 100px; }

    /* мобильная математика: карточки 320px, шаг 470,
       высота = 2080 + 320 + 100 + ~100 */
    .career-team-interactive { height: 2600px; }

    .team-card {
        width: 220px;
        height: 320px;
        padding: 20px 18px;
    }

    .card-pos-1 { top: 200px;  left: 2%; }
    .card-pos-2 { top: 670px;  left: 32%; }
    .card-pos-3 { top: 1140px; left: 10%; }
    .card-pos-4 { top: 1610px; left: 28%; }
    .card-pos-5 { top: 2080px; left: 5%; }

    .team-cta-section { padding-top: 80px; }

    .form-wrapper { padding: 32px 20px; }

    .footer { min-height: auto; }
    .footer-main { flex-direction: column; gap: 40px; }
    .footer-column-left { max-width: 100%; }
    .footer-column-right { margin-left: 0; margin-right: 0; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer .container { gap: 32px; }
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-field--full { grid-column: span 1; }
    .demo-alert-box { padding: 16px; }
    .footer { margin-top: 50px; padding-top: 28px; padding-bottom: 28px; }
    .footer-legal, .footer-copy { font-size: 11px; line-height: 1.5; }
}
