/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #ffffff;
    color: #1e1e2f;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal__header h2 {
    font-size: 24px;
    font-weight: 700;
}

.modal__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #5f6368;
    padding: 0 5px;
}

.modal__close:hover {
    color: #1e1e2f;
}

/* Табы */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.auth-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #5f6368;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
}

.auth-tab:hover {
    background-color: #f0f7ff;
    color: #1E88E5;
}

.auth-tab.active {
    background-color: #1E88E5;
    color: white;
}

/* Формы */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: #1e1e2f;
}

.form-group .hint {
    color: #5f6368;
    font-weight: normal;
    font-size: 12px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* Радио кнопки */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1E88E5;
}

/* Профессии */
.professions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
}

.profession-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 15px;
    cursor: pointer;
}

.profession-checkbox input[type="checkbox"] {
    accent-color: #1E88E5;
}

/* Кнопки */
.btn--full {
    width: 100%;
}

.btn--telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #27A7E7;
    border-color: #27A7E7;
    color: white;
}

.btn--telegram:hover {
    background-color: #1e96d4;
    color: white;
}

.auth__separator {
    text-align: center;
    margin: 20px 0;
    color: #5f6368;
    position: relative;
}

.auth__separator::before,
.auth__separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #f0f0f0;
}

.auth__separator::before {
    left: 0;
}

.auth__separator::after {
    right: 0;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 2000;
    animation: slideIn 0.3s;
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    padding: 15px 0 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.header__top {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
}

/* Текстовый логотип */
.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #1e1e2f;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    color: #1E88E5;
    font-weight: 900;
}

/* Обертка для поиска и кнопки "Все вакансии" */
.search-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
}

/* Поле поиска с лупой */
.search {
    flex-grow: 1;
    position: relative;
}

.search__input {
    width: 100%;
    padding: 12px 50px 12px 20px; /* Место для лупы справа */
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    font-size: 15px;
    background-color: #ffffff;
    transition: all 0.2s;
}

.search__input:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.search__button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
    transition: all 0.2s;
}

.search__button:hover {
    background-color: #f0f7ff;
    color: #1E88E5;
}

/* Кнопка "Все вакансии" */
.btn--all-vacancies {
    white-space: nowrap;
    padding: 10px 20px;
    border-color: #e0e0e0;
    color: #1e1e2f;
    background-color: white;
}

.btn--all-vacancies:hover {
    border-color: #1E88E5;
    background-color: #f0f7ff;
    color: #1E88E5;
    transform: none;
    box-shadow: none;
}

/* Авторизация */
.auth {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.auth__link {
    text-decoration: none;
    color: #1e1e2f;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.auth__link:hover {
    color: #1E88E5;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background-color: #1E88E5;
    color: white;
}

.btn--primary:hover {
    background-color: #1565C0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.btn--outline {
    background-color: transparent;
    border: 2px solid #1E88E5;
    color: #1E88E5;
}

.btn--outline:hover {
    background-color: #1E88E5;
    color: white;
}

.btn--large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Нижняя строка с городами */
.header__bottom {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.cities {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cities__label {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.cities__list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cities__item {
    text-decoration: none;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: #f8f9fa;
    transition: all 0.2s;
}

.cities__item:hover {
    background-color: #f0f7ff;
    color: #1E88E5;
}

.cities__item--active {
    background-color: #1E88E5;
    color: white !important;
}

.cities__item--active:hover {
    background-color: #1565C0;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    width: 26px;
    height: 3px;
    background-color: #1e1e2f;
    border-radius: 3px;
    transition: all 0.3s;
}

/* ========== АДАПТАЦИЯ ========== */
@media (max-width: 1100px) {
    .header__top {
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-wrapper {
        order: 3;
        flex-basis: 100%;
        min-width: 100%;
    }

    .auth {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .nav, .auth {
        display: none;
    }

    .burger {
        display: flex;
    }

    /* Мобильное меню */
    .header__top.menu-open .auth {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #f0f0f0;
        gap: 15px;
        z-index: 100;
    }

    .header__top.menu-open .auth .btn {
        width: 100%;
    }

    /* Анимация бургера */
    .header__top.menu-open .burger span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .header__top.menu-open .burger span:nth-child(2) {
        opacity: 0;
    }

    .header__top.menu-open .burger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Герой-секция */
.hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 18px;
    color: #5f6368;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 36px;
    }
}