/* ============================================
   FitJob.ru — Job Detail Page
   Header + two-column layout
   ============================================ */

/* ===== BREADCRUMBS ===== */
.jd-breadcrumbs-section {
  padding: 84px 0 0;
  background: var(--bg);
}

.jd-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.813rem;
  color: var(--text-3);
  padding: 12px 0;
}

.jd-breadcrumbs a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.jd-breadcrumbs a:hover { color: var(--accent); }
.jd-breadcrumbs svg { flex-shrink: 0; color: var(--text-3); }

/* ===== JOB HEADER ===== */
.jd-header {
  padding: 28px 0 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.jd-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.jd-header-left { flex: 1; }

.jd-company-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.jd-company-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.jd-company-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.jd-company-name:hover { color: var(--accent); }

.jd-company-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 3px;
}

.jd-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.813rem;
  color: var(--text-2);
}

.jd-posted {
  font-size: 0.813rem;
  color: var(--text-3);
}

.jd-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  line-height: 1.15;
}

.jd-salary {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.jd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jd-tag {
  padding: 6px 16px;
  background: var(--bg-3);
  border-radius: var(--radius);
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--text-2);
}

.jd-tag-hot {
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Header right — apply + save */
.jd-header-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.jd-apply-btn { min-width: 200px; }

.jd-save-btn {
  min-width: 200px;
  transition: all 0.2s;
}
.jd-save-btn.saved {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== TWO-COLUMN LAYOUT ===== */
.jd-content {
  padding: 36px 0 80px;
}

.jd-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: flex-start;
}

/* ===== MAIN CONTENT ===== */
.jd-main { min-width: 0; }

.jd-section {
  margin-bottom: 36px;
}

.jd-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.jd-section p {
  font-size: 0.938rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 10px;
}

.jd-list {
  list-style: none;
  padding: 0;
}

.jd-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.938rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 8px;
}

.jd-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--text-3);
  border-radius: 50%;
}

.jd-list-check li::before {
  content: '✓';
  width: auto;
  height: auto;
  background: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  top: 2px;
  left: 0;
}

/* Apply CTA block */
.jd-apply-block {
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 12px;
}

.jd-apply-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.jd-apply-block p {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 20px;
}

/* ===== SIDEBAR ===== */
.jd-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jd-sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.jd-sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.jd-sb-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.jd-sb-company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.jd-sb-type {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* Stats */
.jd-sb-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.jd-sb-stat {
  text-align: center;
  padding: 12px 4px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
}

.jd-sb-stat-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.jd-sb-stat-label {
  display: block;
  font-size: 0.688rem;
  color: var(--text-3);
  margin-top: 2px;
}

.jd-sb-link { font-size: 0.875rem; }

.btn-block { width: 100%; }

/* Details card */
.jd-sb-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.jd-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jd-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.jd-detail-row svg {
  flex-shrink: 0;
  color: var(--text-3);
  margin-top: 2px;
}

.jd-detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
}

.jd-detail-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1px;
}

.jd-detail-salary { color: var(--accent); }

/* Similar jobs */
.jd-similar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jd-similar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.jd-similar-item:hover {
  background: var(--bg-3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.jd-similar-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.jd-similar-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.jd-similar-company {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 2px;
}

.jd-similar-salary {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}

/* ===== MOBILE STICKY APPLY ===== */
.jd-mob-apply {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}

.jd-mob-apply.visible { transform: translateY(0); }

.jd-mob-apply-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jd-mob-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jd-mob-salary {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .jd-layout {
    grid-template-columns: 1fr 300px;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .jd-header-inner {
    flex-direction: column;
    gap: 20px;
  }
  .jd-header-right {
    flex-direction: row;
    width: 100%;
  }
  .jd-apply-btn, .jd-save-btn {
    flex: 1;
    min-width: 0;
  }
  .jd-title { font-size: 1.65rem; }
  .jd-salary { font-size: 1.15rem; }

  .jd-layout {
    grid-template-columns: 1fr;
  }

  .jd-sidebar {
    position: static;
  }

  .jd-mob-apply { display: flex; }
}

@media (max-width: 480px) {
  .jd-breadcrumbs-section { padding-top: 72px; }
  .jd-header { padding: 20px 0 24px; }
  .jd-title { font-size: 1.4rem; }
  .jd-company-logo { width: 44px; height: 44px; }
  .jd-section-title { font-size: 1.1rem; }
  .jd-header-right { flex-direction: column; }
  .jd-apply-btn, .jd-save-btn { width: 100%; min-width: 0; }
}
