/* Резюме — каталог и карточка кандидата */

.resume-national-cities {
  margin-bottom: 20px;
  padding: 16px 18px;
}

.resume-national-cities__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.city-page--national.resume-page .archive-head__extra a {
  font-weight: 600;
}

/* --- Список / карточки в ленте --- */
.resume-list-grid {
  display: grid;
  gap: 12px;
}

/* --- Главная: карусель резюме --- */
.section--home-resumes {
  padding-top: 48px;
  padding-bottom: 56px;
}

.home-resume__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.home-resume__head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.home-resume__all {
  font-size: 14px;
  font-weight: 700;
  color: var(--p24-primary, #16a34a);
  text-decoration: none;
  white-space: nowrap;
}

.home-resume__all:hover {
  text-decoration: underline;
}

.home-resume__carousel {
  overflow: hidden;
  margin: 0 -6px;
  padding: 6px;
}

.home-resume__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 10px;
  scrollbar-width: none;
  cursor: grab;
}

.home-resume__track::-webkit-scrollbar {
  display: none;
}

.home-resume__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.home-resume__slide {
  flex: 0 0 calc((100% - 12px) / 1.5);
  scroll-snap-align: start;
  min-width: 0;
}

.home-resume__slide .resume-card {
  height: 100%;
}

.home-resume__slide .resume-card__link {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 16px;
  height: 100%;
}

.home-resume__slide .resume-card__photo {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.home-resume__slide .resume-card__body {
  min-width: 0;
}

.home-resume__slide .resume-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .home-resume__slide {
    flex: 0 0 calc((100% - 12px) / 2);
  }

  .home-resume__slide .resume-card__link {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
  }

  .home-resume__slide .resume-card__photo {
    width: 88px;
    height: 88px;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .section--home-resumes {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .home-resume__head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-resume__head-actions {
    justify-content: space-between;
  }
}

.resume-card {
  background: #fff;
  border: 1px solid var(--p24-border, #e2e8f0);
  border-radius: 14px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.resume-card:hover {
  border-color: #86efac;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.1);
}

.resume-card--vip {
  border-color: #86efac;
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.08);
}

.resume-card__link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}

.resume-card__photo {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.resume-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2.25rem;
}

.resume-card__photo--placeholder .oklad-icon svg {
  width: 40px;
  height: 40px;
}

@media (max-width: 480px) {
  .resume-card__photo {
    width: 72px;
    height: 72px;
  }

  .resume-card__photo--placeholder .oklad-icon svg {
    width: 32px;
    height: 32px;
  }
}

.resume-card__badge {
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 6px;
}

.resume-card__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--p24-text, #0f172a);
}

.resume-card__name {
  margin: 0 0 4px;
  font-size: 14px;
  color: #475569;
}

.resume-card__salary {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--p24-primary, #16a34a);
}

.resume-card__meta {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

.resume-card__city {
  font-size: 12px;
  color: #64748b;
}

.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-chip {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  color: #334155;
}

.city-chip:hover {
  border-color: var(--p24-primary, #16a34a);
  color: var(--p24-primary, #16a34a);
}

/* --- Карточка резюме (CV-макет) --- */
.resume-page__cv {
  overflow: hidden;
  padding: 0;
  position: relative;
}

.resume-page__cv--vip {
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.15);
  border: 2px solid #86efac;
}

.resume-page__cv-vip-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: #dcfce7;
  color: #15803d;
  padding: 4px 10px;
  border-radius: 6px;
}

.resume-page__cv-grid {
  display: grid;
  gap: 0;
}

@media (min-width: 900px) {
  .resume-page__cv-grid {
    grid-template-columns: 1fr 300px;
    align-items: stretch;
  }
}

.resume-page__cv-main {
  padding: 28px 32px 32px;
}

.resume-page__cv-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #cbd5e1;
}

.resume-page__cv-name {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.resume-page__cv-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  color: #64748b;
}

.resume-page__cv-meta-line {
  margin: 0 0 16px;
  font-size: 13px;
  color: #94a3b8;
}

.resume-page__cv-meta-line a {
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
}

.resume-page__cv-side {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
}

.resume-page__cv-photo-wrap {
  line-height: 0;
  background: #e2e8f0;
}

.resume-page__cv-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.resume-page__cv-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  color: #94a3b8;
  font-size: 3rem;
}

.resume-page__cv-panel {
  background: linear-gradient(180deg, #166534 0%, #14532d 100%);
  color: #fff;
  padding: 22px 20px;
  flex: 1;
}

.resume-page__cv-panel-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.resume-page__cv-meta {
  margin: 0 0 8px;
}

.resume-page__cv-meta-row {
  margin-bottom: 10px;
}

.resume-page__cv-meta-row dt {
  margin: 0 0 2px;
  font-size: 12px;
  color: #bbf7d0;
  font-weight: 500;
}

.resume-page__cv-meta-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.resume-page__cv-contacts-title {
  margin: 16px 0 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.resume-page__cv-contacts,
.resume-page__cv-social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-page__cv-contact {
  margin-bottom: 10px;
  font-size: 14px;
}

.resume-page__cv-contact-label {
  display: block;
  font-size: 12px;
  color: #bbf7d0;
  margin-bottom: 2px;
}

.resume-page__cv-contact a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.resume-page__cv-contact a:hover {
  text-decoration: underline;
}

.resume-page__cv-messenger-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.resume-page__cv-messenger {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
}

.resume-page__cv-messenger--telegram { background: #229ed9; }
.resume-page__cv-messenger--viber { background: #7360f2; }
.resume-page__cv-messenger--whatsapp { background: #25d366; }

.resume-page__cv-social a {
  color: #ecfdf5;
  font-weight: 600;
}

.resume-page__cv-respond {
  margin: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid #e2e8f0;
  box-shadow: none;
  padding: 18px 16px;
  background: #fff;
}

.resume-page__cv-respond .resume-contact__title {
  font-size: 1rem;
}

@media (max-width: 899px) {
  .resume-page__cv-side {
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }
  .resume-page__cv-main {
    padding: 20px 16px;
  }
}

/* --- Старый макет (совместимость) --- */
.resume-page__layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .resume-page__layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

.resume-page__layout--vip .resume-page__main {
  border: 2px solid #86efac;
  box-shadow: 0 8px 28px rgba(22, 163, 74, 0.1);
}

.resume-page__head {
  margin-bottom: 8px;
}

.resume-page__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.resume-page__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.resume-page__badge--vip {
  background: #dcfce7;
  color: #15803d;
  text-transform: uppercase;
}

.resume-page__badge--city {
  background: #f1f5f9;
  color: #475569;
  text-transform: none;
  font-weight: 600;
}

.resume-page__hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.resume-page__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.resume-page__photo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: #f1f5f9;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.resume-page__photo--main {
  width: 120px;
  height: 120px;
  border: 2px solid var(--p24-primary, #16a34a);
}

.resume-page__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  color: #94a3b8;
  font-size: 2.5rem;
}

.resume-page__intro {
  flex: 1;
  min-width: 220px;
}

.resume-page__title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
  font-weight: 800;
  color: var(--p24-text, #0f172a);
}

.resume-page__name {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #475569;
}

.resume-page__salary {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #059669;
}

.resume-page__meta {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

.resume-page__meta a {
  color: var(--p24-primary, #16a34a);
  font-weight: 600;
  text-decoration: none;
}

.resume-page__meta a:hover {
  text-decoration: underline;
}

.resume-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume-page__body {
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  margin-top: 20px;
}

.resume-page__section {
  margin-bottom: 28px;
}

.resume-page__section:last-child {
  margin-bottom: 0;
}

.resume-page__section-title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--p24-text, #0f172a);
}

.resume-page__text {
  font-size: 16px;
  line-height: 1.65;
  color: #334155;
}

.resume-page__fact {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 14px;
  color: #475569;
}

.resume-page__aside {
  padding: 20px;
}

.resume-page__aside .resume-contact {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.resume-page__facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-page__facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.resume-page__facts li:last-child {
  border-bottom: none;
}

.resume-page__facts li span {
  color: #64748b;
}

.resume-page__facts li strong {
  text-align: right;
  color: #0f172a;
}

/* Таймлайн опыта / образования */
.resume-show__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-show__timeline-item {
  position: relative;
  padding: 0 0 18px 18px;
  border-left: 2px solid #bbf7d0;
  margin-left: 4px;
}

.resume-show__timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.resume-show__timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--p24-primary, #16a34a);
}

.resume-show__timeline-title {
  margin: 0 0 4px;
  font-size: 15px;
}

.resume-show__timeline-meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: #64748b;
}

.resume-show__timeline-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

/* Форма отклика */
.resume-contact__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.resume-contact__lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

.resume-contact__form .btn-block {
  width: 100%;
}

.resume-contact__alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.resume-contact__alert[hidden] {
  display: none;
}

/* Иконки и кнопки без site.css / oklad-icons.css */
.resume-page .oklad-icon svg,
.resume-page__pdf-btn .oklad-icon svg,
.resume-page__actions .btn .oklad-icon svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
}

.resume-page__pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.resume-page__photo--placeholder .oklad-icon svg {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
}

/* Совместимость со старой разметкой resume-show__* */
.resume-show__hero,
.resume-page__hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.resume-show__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 24px;
}

@media (max-width: 900px) {
  .resume-show__grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Профиль резюме (современный макет) ========== */
.rs-profile {
  --rs-radius: 20px;
  --rs-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --rs-shadow-hover: 0 20px 50px rgba(15, 23, 42, 0.12);
  --rs-accent: var(--p24-primary, #16a34a);
  --rs-accent-soft: #ecfdf5;
  margin-bottom: 32px;
}

.rs-profile--vip {
  --rs-accent: #059669;
}

/* Hero */
.rs-hero {
  position: relative;
  border-radius: var(--rs-radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: #fff;
  box-shadow: var(--rs-shadow);
}

.rs-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(59, 130, 246, 0.1), transparent 50%),
    linear-gradient(165deg, #f8fafc 0%, #fff 45%, #f0fdf4 100%);
  animation: rs-mesh-shift 12s ease-in-out infinite alternate;
}

@keyframes rs-mesh-shift {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.92; transform: scale(1.03); }
}

.rs-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding: 28px 24px 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .rs-hero__inner {
    grid-template-columns: auto 1fr;
    padding: 32px 36px 40px;
    gap: 36px;
  }
}

.rs-hero__photo-frame {
  width: min(100%, 200px);
  margin: 0 auto;
  padding: 4px;
  border-radius: 24px;
  background: linear-gradient(135deg, #86efac, #22c55e, #bbf7d0);
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.rs-hero__photo-frame:hover {
  transform: translateY(-4px) scale(1.02);
}

.rs-hero__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  background: #e2e8f0;
}

.rs-hero__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: #94a3b8;
  font-size: 3rem;
}

.rs-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rs-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rs-pill--vip {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.rs-pill--seek {
  background: var(--rs-accent-soft);
  color: #15803d;
}

.rs-pill--muted {
  background: rgba(255, 255, 255, 0.75);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-weight: 600;
}

.rs-hero__name {
  margin: 0 0 6px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}

.rs-hero__role {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.rs-hero__role a {
  color: var(--rs-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.rs-hero__role a:hover {
  color: #15803d;
  text-decoration: underline;
}

.rs-hero__salary {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #059669;
  letter-spacing: -0.02em;
}

.rs-hero__facts {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: #64748b;
}

.rs-hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.rs-btn:hover {
  transform: translateY(-2px);
}

.rs-btn--primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
}

.rs-btn--primary:hover {
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.45);
  color: #fff;
}

.rs-btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
}

.rs-btn--ghost:hover {
  border-color: var(--rs-accent);
  color: var(--rs-accent);
}

/* Layout */
.rs-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 960px) {
  .rs-layout {
    grid-template-columns: 1fr 340px;
    gap: 24px;
  }

  .rs-aside {
    position: sticky;
    top: 88px;
  }
}

.rs-main__sections {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* Content blocks */
.rs-profile .rs-block {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rs-profile .rs-block:hover {
  box-shadow: var(--rs-shadow-hover);
}

.rs-profile .resume-page__section {
  margin-bottom: 16px;
}

.rs-profile .resume-page__section:last-child {
  margin-bottom: 0;
}

.rs-profile .resume-page__section-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rs-profile .resume-page__section-title::before {
  content: '';
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--rs-accent), #86efac);
  flex-shrink: 0;
}

.rs-profile .resume-page__text {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.rs-profile .resume-page__text--muted {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  color: #64748b;
}

.rs-profile .resume-page__fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

.rs-block__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--rs-accent-soft);
  font-size: 18px;
}

/* Tags */
.rs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rs-tags--inline {
  margin-top: 8px;
}

.rs-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--rs-accent-soft);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
  transition: transform 0.15s, background 0.15s;
}

.rs-tag:hover {
  transform: translateY(-1px);
  background: #dcfce7;
}

.rs-tag--soft {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.rs-tag--soft:hover {
  background: #f1f5f9;
  color: #334155;
}

.rs-tag--license {
  font-weight: 800;
  min-width: 2.2em;
  text-align: center;
}

/* Timeline (modern) */
.rs-profile .resume-show__timeline-item {
  border-left: 2px solid #e2e8f0;
  padding-left: 22px;
  margin-left: 6px;
}

.rs-profile .resume-show__timeline-item::before {
  width: 12px;
  height: 12px;
  left: -7px;
  top: 6px;
  background: #fff;
  border: 3px solid var(--rs-accent);
  box-shadow: 0 0 0 3px var(--rs-accent-soft);
}

.rs-profile .resume-show__timeline-company {
  display: block;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

@media (min-width: 640px) {
  .rs-profile .resume-show__timeline-company {
    display: inline;
  }

  .rs-profile .resume-show__timeline-company::before {
    content: ' — ';
  }
}

/* Aside */
.rs-aside__card {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: var(--rs-radius);
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: var(--rs-shadow);
}

.rs-aside__heading {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.rs-aside__subheading {
  margin: 18px 0 10px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.rs-facts__row {
  display: grid;
  grid-template-columns: minmax(0, 42%) 1fr;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.rs-facts__row:last-child {
  border-bottom: none;
}

.rs-facts__row dt {
  margin: 0;
  color: #94a3b8;
  font-weight: 500;
}

.rs-facts__row dd {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.rs-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rs-contacts__item {
  margin-bottom: 14px;
}

.rs-contacts__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.rs-contacts__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--rs-accent);
  text-decoration: none;
  word-break: break-all;
}

.rs-contacts__value:hover {
  text-decoration: underline;
}

.rs-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rs-messenger {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s;
}

.rs-messenger:hover {
  transform: scale(1.05);
  color: #fff;
}

.rs-messenger--telegram { background: #229ed9; }
.rs-messenger--viber { background: #7360f2; }
.rs-messenger--whatsapp { background: #25d366; }

.rs-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rs-social a {
  padding: 6px 12px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: background 0.2s, color 0.2s;
}

.rs-social a:hover {
  background: var(--rs-accent-soft);
  color: #15803d;
  border-color: #bbf7d0;
}

/* Contact form card */
.rs-aside__respond {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: var(--rs-radius);
  padding: 22px 20px;
  box-shadow: var(--rs-shadow);
}

.rs-contact .resume-contact__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.rs-contact .resume-contact__lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: #64748b;
}

.rs-contact .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.rs-contact .form-group input,
.rs-contact .form-group select,
.rs-contact .form-group textarea {
  border-radius: 10px;
  border-color: #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rs-contact .form-group input:focus,
.rs-contact .form-group select:focus,
.rs-contact .form-group textarea:focus {
  border-color: var(--rs-accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.rs-contact .btn-primary {
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
}

/* Animations */
.rs-animate {
  animation: rs-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rs-animate--1 { animation-delay: 0.04s; }
.rs-animate--2 { animation-delay: 0.08s; }
.rs-animate--3 { animation-delay: 0.12s; }
.rs-animate--4 { animation-delay: 0.16s; }
.rs-animate--5 { animation-delay: 0.2s; }
.rs-animate--6 { animation-delay: 0.24s; }
.rs-animate--7 { animation-delay: 0.28s; }
.rs-animate--8 { animation-delay: 0.32s; }

@keyframes rs-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rs-profile .rs-main .rs-animate {
  animation-delay: 0.35s;
}

.rs-profile .rs-main .rs-block:nth-child(2) { animation-delay: 0.4s; }
.rs-profile .rs-main .rs-block:nth-child(3) { animation-delay: 0.45s; }
.rs-profile .rs-main .rs-block:nth-child(4) { animation-delay: 0.5s; }
.rs-profile .rs-main .rs-block:nth-child(5) { animation-delay: 0.55s; }
.rs-profile .rs-main .rs-block:nth-child(n+6) { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .rs-animate,
  .rs-hero__mesh {
    animation: none !important;
  }

  .rs-hero__photo-frame:hover,
  .rs-btn:hover,
  .rs-tag:hover,
  .rs-profile .rs-block:hover {
    transform: none;
  }
}

/* VIP accent */
.rs-profile--vip .rs-hero__mesh {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(245, 158, 11, 0.15), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(34, 197, 94, 0.12), transparent 50%),
    linear-gradient(165deg, #fffbeb 0%, #fff 50%, #f0fdf4 100%);
}

.rs-profile--vip .rs-hero__photo-frame {
  background: linear-gradient(135deg, #fde68a, #fbbf24, #86efac);
}

.rs-profile .oklad-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.rs-hero__photo--empty .oklad-icon svg {
  width: 48px;
  height: 48px;
}

body.resume-page-view .site-main {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 120px, #f4f6f8 100%);
}

/* Contacts gate (sidebar) */
.rs-contacts-gate {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
  text-align: center;
}

.rs-contacts-gate__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #052e16;
}

.rs-contacts-gate__text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #065f46;
}

.rs-contacts-gate__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.rs-aside__hint {
  margin: 14px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.rs-hero__access-note {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  max-width: 420px;
}

/* Phone reveal in hero */
.rs-hero__phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rs-hero__phone-revealed:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rs-hero__phone .vac-page__phone-num {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.rs-hero__phone [data-rs-phone-link] {
  text-decoration: none;
}

.rs-hero__phone .vac-page__phone-error:not([hidden]) {
  display: block;
  width: 100%;
  flex-basis: 100%;
}

.rs-hero__phone .vac-page__phone-loading,
.rs-hero__phone .vac-page__phone-error {
  margin: 0;
  font-size: 13px;
}

.rs-hero__phone .vac-page__phone-error {
  color: #dc2626;
}

/* Guest auth modal */
.rs-auth-modal__dialog {
  max-width: 420px;
}

.rs-auth-modal__body {
  padding: 8px 24px 28px;
  text-align: center;
}

.rs-auth-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ecfdf5, #dcfce7);
  color: #16a34a;
}

.rs-auth-modal__icon svg {
  width: 28px;
  height: 28px;
}

.rs-auth-modal__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #052e16;
}

.rs-auth-modal__text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

.rs-auth-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.rs-auth-modal__actions .btn {
  width: 100%;
  padding: 12px 16px;
  font-weight: 700;
  border-radius: 12px;
}

.rs-auth-modal__dismiss {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
}

.rs-auth-modal__dismiss:hover {
  color: #64748b;
}

/* Contact modal — inline chat */
.rs-contact-modal__channels-label {
  margin: 0 0 10px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.rs-contact-modal__chat-actions {
  padding: 16px 20px 20px;
  border-top: 1px solid #f1f5f9;
}

.rs-contact-modal__chat-open {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
}

.rs-contact-modal__no-chat {
  margin: 16px 20px 20px;
}

.rs-contact-modal__chat-panel {
  padding: 0 16px 16px;
}

.rs-contact-modal__chat-layout {
  min-height: 280px;
  border: none;
  box-shadow: none;
}

.rs-contact-modal__chat-thread {
  max-height: 320px;
}

/* Chat-only modal */
.rs-chat-modal__dialog {
  display: flex;
  flex-direction: column;
  width: min(480px, calc(100vw - 24px));
  max-height: min(90vh, 720px);
  padding: 0;
  overflow: hidden;
}

.rs-chat-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 48px 12px 20px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.rs-chat-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.rs-chat-modal__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.rs-chat-modal__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.rs-chat-modal__layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.rs-chat-modal__thread {
  flex: 1;
  min-height: 240px;
  max-height: none;
  overflow-y: auto;
  padding: 16px;
}

.rs-chat-modal__compose {
  flex-shrink: 0;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px 16px;
  background: #f8fafc;
}
