:root {
    --platform-primary: #1e3a8a;
    --platform-accent: #06b6d4;
    --platform-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #06b6d4 100%);
}

body.platform-body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f4f7fb;
}

.platform-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.platform-wrap > .container,
.platform-wrap > .container-fluid {
    flex: 1;
    padding-top: 5.5rem;
    padding-bottom: 2rem;
}

/* Заголовки страниц */
.platform-wrap h2 {
    font-size: calc(2rem - 1pt);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.platform-wrap .platform-page-title {
    font-size: calc(2rem - 1pt);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.platform-wrap .grid-view .summary,
.platform-wrap .summary.platform-grid-summary {
    text-align: right;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Хлебные крошки (Bootstrap 5) */
.platform-breadcrumb-wrap {
    margin-bottom: 1rem;
}

.platform-breadcrumb-wrap .breadcrumb {
    background: transparent;
    padding: 0.35rem 0;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.platform-breadcrumb-wrap .breadcrumb-item a {
    color: var(--platform-primary);
    text-decoration: none;
}

.platform-breadcrumb-wrap .breadcrumb-item a:hover {
    text-decoration: underline;
}

.platform-breadcrumb-wrap .breadcrumb-item.active {
    color: #64748b;
}

/* Админ-панель: 4 карточки в ряд на планшете и шире */
@media (min-width: 768px) {
    .admin-dashboard__cards > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.admin-dashboard__card .h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Компактные таблицы */
.platform-grid-table {
    font-size: 0.875rem;
}

.platform-grid-table th,
.platform-grid-table td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
}

.platform-grid-table th.platform-col-num,
.platform-grid-table td.platform-col-num {
    width: 2.25rem;
    max-width: 2.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    white-space: nowrap;
}

.platform-grid-table th.platform-col-actions,
.platform-grid-table td.platform-col-actions {
    width: 1%;
    white-space: nowrap;
}

.platform-grid-table .btn-xs,
.platform-grid-table .btn-sm {
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
}

.platform-navbar {
    background: var(--platform-gradient) !important;
    box-shadow: 0 4px 24px rgba(30, 58, 138, 0.25);
}

.platform-navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.platform-hero {
    background: var(--platform-gradient);
    color: #fff;
    border-radius: 1.25rem;
    padding: 3.5rem 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.platform-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.platform-hero h2 {
    font-size: clamp(calc(1.75rem - 1pt), 4vw, calc(2.75rem - 1pt));
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.platform-hero .lead {
    font-size: 1.125rem;
    opacity: 0.92;
    max-width: 42rem;
}

.platform-hero .btn-hero {
    background: #fff;
    color: var(--platform-primary);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin-right: 0.75rem;
    margin-top: 0.5rem;
}

.platform-hero .btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.platform-stat-card {
    background: #fff;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.platform-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.platform-stat-card .stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.platform-stat-card .stat-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.platform-skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.platform-skill-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.platform-skill-list li:last-child {
    border-bottom: none;
}

.platform-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 1.25rem 0;
    margin-top: auto;
    font-size: 0.875rem;
}

.platform-footer a {
    color: #cbd5e1;
}

.platform-footer__author {
    color: #cbd5e1;
}

.platform-form-actions {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.platform-form .form-group,
.platform-form .mb-3 {
    margin-bottom: 1rem;
}

.platform-global-search .form-group {
    margin-bottom: 0;
}

.platform-global-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    width: 100%;
}

.platform-global-search-form__field {
    flex: 1 1 12rem;
    min-width: 0;
}

.platform-global-search-form__field .form-control {
    width: 100%;
}

.platform-global-search-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.platform-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.75rem;
    position: relative;
    z-index: 1;
}

.platform-hero-actions__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.platform-hero-actions__about {
    margin-left: auto;
    flex-shrink: 0;
}

/* Страница «О проекте» */
.platform-about-hero {
    background: var(--platform-gradient);
    color: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.platform-about-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.platform-about-hero h2 {
    font-size: calc(2rem - 1pt);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.platform-about-hero .lead {
    opacity: 0.92;
}

.platform-about-hero__visual {
    position: relative;
    min-height: 160px;
}

.platform-about-icon {
    position: absolute;
    font-size: 4.5rem;
    opacity: 0.35;
}

.platform-about-icon--main {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    opacity: 0.5;
}

.platform-about-icon--secondary {
    right: 10%;
    top: 10%;
    font-size: 3rem;
}

.platform-about-icon--accent {
    left: 8%;
    bottom: 5%;
    font-size: 2.5rem;
}

.platform-about-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}

.platform-about-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.platform-about-panel {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
}

.platform-about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.platform-about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

.platform-grid-table thead a {
    color: var(--platform-primary);
    text-decoration: none;
}

.platform-grid-table thead a:hover {
    text-decoration: underline;
}

.resume-view.platform-detail-sections .detail-view {
    margin-bottom: 0;
}

.resume-view.platform-detail-sections h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.resume-view.platform-detail-sections h3:first-of-type {
    margin-top: 1.25rem;
}

.platform-stat-card--dashboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.platform-stat-card--dashboard .platform-stat-card__text {
    flex: 1 1 auto;
    min-width: 0;
}

.platform-stat-card--dashboard .platform-stat-card__metrics {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.platform-stat-card--dashboard .stat-icon {
    margin-bottom: 0;
}

.platform-stat-card--dashboard .stat-label {
    margin-top: 0;
    font-size: 0.95rem;
    line-height: 1.35;
}

.platform-stat-card--dashboard .stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.site-index.platform-home .container {
    max-width: 1140px;
}

/* Страницы входа / регистрации / сброса пароля */
body.platform-auth-page {
    margin: 0;
    min-height: 100vh;
    background: var(--platform-gradient);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.platform-auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.platform-auth-layout > .alert {
    width: 100%;
    max-width: 440px;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
}

.platform-auth {
    width: 100%;
    max-width: 440px;
}

.platform-auth-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    padding: 2rem 2rem 1.75rem;
}

.platform-auth-brand {
    text-align: center;
    margin-bottom: 1.25rem;
}

.platform-auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--platform-primary);
    text-decoration: none;
}

.platform-auth-brand-link:hover {
    color: #2563eb;
}

.platform-auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    text-align: center;
    color: #0f172a;
}

.platform-auth-sub {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.platform-auth-form .form-group,
.platform-auth-form .mb-3 {
    margin-bottom: 1rem;
}

.platform-auth-form .form-control {
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
}

.platform-auth-form .btn-primary {
    background: var(--platform-primary);
    border-color: var(--platform-primary);
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
}

.platform-auth-form .btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
}

.platform-auth-links {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.platform-auth-link {
    color: var(--platform-primary);
    text-decoration: none;
    font-weight: 500;
}

.platform-auth-link:hover {
    text-decoration: underline;
}

.platform-auth-dot {
    margin: 0 0.35rem;
    color: #94a3b8;
}

.platform-auth-layout--raised {
    justify-content: flex-start;
    padding-top: 150px;
}

table.detail-view.platform-detail-view th,
table.detail-view th {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    white-space: normal;
    vertical-align: top;
}

.admin-dashboard__open-btn {
    min-width: 10rem;
}

/* Серая кнопка «Назад» / «К списку» — всегда заметный фон, не только при наведении */
.btn.platform-btn-back {
    background-color: #e2e8f0;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.btn.platform-btn-back:hover,
.btn.platform-btn-back:focus {
    background-color: #cbd5e1;
    border-color: #94a3b8;
    color: #1e293b;
}

.application-view__summary {
    align-items: stretch;
}

.application-view__match {
    display: flex;
    align-items: center;
    min-height: 100%;
}

.application-view__match-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.application-view__match-label {
    flex: 0 0 auto;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    margin: 0;
}

.application-view__progress {
    flex: 1 1 auto;
    min-width: 0;
    height: 1.25rem;
    margin: 0;
}

.application-view__status-card {
    height: 100%;
}

.application-view__status-card .card-body {
    display: flex;
    align-items: center;
    min-height: 100%;
}

.application-view__status-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
}

.application-view__status-label {
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 0;
}

.application-view__status-form .form-select {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
}

.application-view__status-form .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.vacancy-view__actions .vacancy-view__withdraw-form {
    display: inline-flex;
    margin: 0;
}
