/* ============================================================
   company.css — страница компании (/company/<enc>)
   ============================================================ */

.company-section {
    color: black;
    padding: 0 150px;
    margin-top: 10px;
    font-size: 15px;
    min-height: 90vh;
}

/* .company-page {
    padding: 10px 0;
} */

/* ---------- Ссылка «назад» ---------- */
.company-back {
    display: inline-block;
    color: #0088cc;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
}

.company-back:hover {
    text-decoration: underline;
}

/* ---------- Карточка компании ---------- */
.company-card {
    display: flex;
    gap: 30px;
    border-radius: 10px;
    padding: 24px 30px;
    margin: 10px 0;
    background: #f9f9f9;
    align-items: flex-start;
}

.company-card__logo {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #e8e8e8;
}

.company-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    justify-content: space-between;
  padding: 5px 0;
}

.company-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* margin-bottom: 6px; */
    gap: 20px;
}

.company-card__name {
    font-size: 22px;
    font-weight: 800;
    color: #000;
}

.company-card__city {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

.company-card__industry {
    font-size: 14px;
    color: #555;
    /* margin: 0 0 20px; */
}

/* ---------- Вкладки компании ---------- */
.company-card__tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* margin-top: auto; */
}

.company-tab {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
}

.company-tab--active {
    background: #2e3238;
    color: #fff;
}

.company-tab--blue {
    background: #0088cc;
    color: #fff;
}

.company-tab--disabled {
    background: #0088cc;
    color: #fff;
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.company-tab:hover:not(.company-tab--disabled) {
    opacity: 0.82;
}

/* ---------- Описание компании ---------- */
.company-info {
    font-size: 16px;
    line-height: 1.85;
    color: #222;
    margin: 10px 0;
}

/* Сброс инлайн-стилей из стороннего редактора (Word, Google Docs и пр.):
   приводим шрифт, размер и цвет всех потомков к стилю сайта. */
.company-info,
.company-info * {
    font-family: 'Nunito', sans-serif !important;
    font-size: 16px !important;
    color: #222 !important;
    background-color: transparent !important;
    line-height: 1.85 !important;
}

.company-info b,
.company-info strong,
.company-info b *,
.company-info strong * {
    font-weight: 700 !important;
}

.company-info i,
.company-info em,
.company-info i *,
.company-info em * {
    font-style: italic !important;
}

.company-info p {
    margin-bottom: 14px;
}

/* ---------- Список вакансий компании ---------- */
.company-vac-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company-vac-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 22px;
    text-decoration: none;
    color: #000;
    display: block;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.company-vac-card:hover {
    border-color: #0088cc;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.13);
}

.company-vac-card__name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.company-vac-card__meta {
    font-size: 13px;
    color: #666;
}

.company-empty {
    font-size: 15px;
    color: #888;
    padding: 10px 0;
}

/* ---- Dropdown (кастомный селект) ---- */
.dropdown-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 0 10px;
}

.dropdown-input {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1.5px solid #d6d6d6;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.dropdown-input:focus {
    outline: none;
    border-color: #0088cc;
}

.dropdown-input::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

.dropdown-container.is-open .dropdown-input::after {
    border-top: none;
    border-bottom: 6px solid #666;
}

.dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
}

.dropdown-container.is-open .dropdown-list {
    display: block;
}

.dropdown-list li {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.dropdown-list li:hover {
    background: #f0f4f8;
}

.dropdown-list li.selected {
    background: #e6f3ff;
    color: #0088cc;
    font-weight: 600;
}

/* ---- Блок "Наши вакансии" ---- */
.co-vacancies {
    margin-top: 10px;
}

.co-vacancies__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    text-align: left;
}

.co-vacancies__filters {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    /*flex-wrap: wrap;*/
}

.co-vacancies__filters .dropdown-container {
    flex: 1 1 200px;
    max-width: 300px;
}

.co-vacancies__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Карточка вакансии */
.co-vac-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.co-vac-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #ccc;
}

.co-vac-card__img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.co-vac-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.co-vac-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.co-vac-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.co-vac-card__salary-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.co-vac-card__org-logo {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: contain;
    background: #f5f5f5;
    flex-shrink: 0;
}

.co-vac-card__salary {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.co-vac-card__city {
    font-size: 13px;
    color: #888;
}

/* Кнопка "Показать больше" */
.co-vacancies__more {
    text-align: center;
    margin-top: 10px;
}

.co-vac-more-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #2e3238;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.co-vac-more-btn:hover {
    background: #444;
}

.co-vac-more-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.co-vac-more-btn--disabled {
    background: #999;
}

/* ---- Dropdown (инлайн стили) ---- */
.dropdown-input {
    border-radius: 5px;
    width: 100%;
    background: transparent;
    border: 1px solid #163444 !important;
    font-size: 12px;
    text-align: center;
    padding: 5px 20px;
}

.hidden-select {
    display: none;
    margin: 0 0 7px;
    text-align: center;
    background: transparent;
    border: 1px solid #163444;
    border-radius: 10px;
    padding: 7px;
    width: 100%;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

.dropdown-list {
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-list li {
    cursor: pointer;
}

.dropdown-list li:hover {
    background-color: #ddd;
}

.vac-view-slider--bottom {
    margin: 10px 0;
}
.vac-view-video {
    margin: 10px 0;
}

@media (max-width: 1300px) {
    .company-section {
        padding: 0 80px;
    }
}

@media (max-width: 1100px) {
    .company-section {
        padding: 0 15px;
    }
}

@media (max-width: 1000px) {
    .co-vacancies__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .company-card {
        gap: 25px;
        padding: 20px 15px;
    }
}

@media (max-width: 600px) {
    .co-vacancies__grid {
        grid-template-columns: 1fr;
    }

    .company-card {
        flex-direction: column;
    }

    .company-card__logo {
        margin: 0 auto;
    }
}

@media (max-width: 400px) {
    .company-card__name {
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    .company-card {
        gap: 20px;
        padding: 20px 10px;
    }

    .company-card__header {
        flex-direction: column;
        gap: 5px;
    }

    .company-card__industry {
        margin: 0 0 20px;
    }
}
