:root {
  --rzd-red: #E21A1A;
  --rzd-red-dark: #BA1212;
  --rzd-red-light: #FF4D4D;
  --rzd-red-bg: rgba(226, 26, 26, 0.08);
  --dark-bg: #14191E;
  --dark-card: #1E252D;
  --text-primary: #1A202C;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --bg-light: #F8FAFC;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Навигация */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(20, 25, 30, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--rzd-red);
  color: #FFFFFF;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  background: var(--rzd-red);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.brand-role {
  font-size: 11px;
  color: #A0AEC0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #CBD5E0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rzd-red);
}

.nav-btn {
  background: var(--rzd-red);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--rzd-red-dark);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #14191E 0%, #1E252D 100%);
  color: #FFFFFF;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(226, 26, 26, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}

.red-dot {
  width: 8px;
  height: 8px;
  background: var(--rzd-red);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: #FFFFFF;
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--rzd-red);
  margin-top: 10px;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: #CBD5E0;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #E2E8F0;
}

.icon-check {
  color: var(--rzd-red);
  font-weight: bold;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--rzd-red);
  color: #FFFFFF;
  border: 1px solid var(--rzd-red);
}

.btn-primary:hover {
  background: var(--rzd-red-dark);
  border-color: var(--rzd-red-dark);
  box-shadow: 0 4px 12px rgba(226, 26, 26, 0.4);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait-wrapper {
  position: relative;
  max-width: 440px;
  width: 100%;
}

.portrait-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
}

.portrait-card {
  position: absolute;
  bottom: -18px;
  left: 20px;
  right: 20px;
  background: #FFFFFF;
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--rzd-red);
  display: flex;
  align-items: center;
  gap: 12px;
}

.portrait-card .card-icon {
  font-size: 24px;
}

.portrait-card strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.portrait-card span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Stats Section */
.stats-section {
  background: #FFFFFF;
  padding: 50px 0;
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat-card {
  border-left: 3px solid var(--rzd-red);
  padding-left: 20px;
}

.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--rzd-red);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Общие заголовки секций */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--rzd-red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.section-desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--text-secondary);
}

.header-divider {
  width: 50px;
  height: 3px;
  background: var(--rzd-red);
  margin: 14px auto 0;
}

/* Компетенции */
.competencies-section {
  padding: 90px 0;
  background: var(--bg-light);
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.comp-card {
  background: #FFFFFF;
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.comp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E0;
}

.comp-icon {
  font-size: 32px;
  margin-bottom: 18px;
}

.comp-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.comp-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Опыт работы */
.experience-section {
  padding: 90px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 4px;
  left: -36px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--rzd-red);
  box-shadow: 0 0 0 4px rgba(226, 26, 26, 0.15);
}

.timeline-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--rzd-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.timeline-content {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 26px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-company-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-company-row h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.company-tag {
  background: rgba(226, 26, 26, 0.08);
  color: var(--rzd-red);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

.timeline-summary {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 14px;
}

.timeline-bullets {
  list-style: none;
}

.timeline-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-bullets li:last-child {
  margin-bottom: 0;
}

.timeline-bullets li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--rzd-red);
  font-size: 16px;
  line-height: 1.2;
}

/* Проекты и Экспорт */
.projects-section {
  padding: 90px 0;
  background: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: #FFFFFF;
  padding: 30px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E0;
}

.project-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(20, 25, 30, 0.06);
  color: var(--dark-bg);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.project-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--rzd-red);
  margin-bottom: 14px;
}

.project-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-meta {
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Публикации */
.publications-section {
  padding: 90px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.publications-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 26px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.pub-card:hover {
  background: #FFFFFF;
  border-color: var(--rzd-red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pub-source {
  font-size: 12px;
  font-weight: 700;
  color: var(--rzd-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.pub-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.pub-snippet {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.pub-link-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--rzd-red);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pub-link-action .arrow {
  transition: transform 0.2s;
}

.pub-card:hover .pub-link-action .arrow {
  transform: translateX(4px);
}

/* Фотохроника и галерея */
.gallery-section {
  padding: 90px 0;
  background: var(--bg-light);
}

.gallery-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-bottom: 40px;
}

.filter-group, .year-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.filter-btn, .year-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.filter-btn:hover, .year-btn:hover {
  border-color: #CBD5E0;
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--dark-bg);
  color: #FFFFFF;
  border-color: var(--dark-bg);
}

.year-btn.active {
  background: var(--rzd-red);
  color: #FFFFFF;
  border-color: var(--rzd-red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-item.hidden {
  display: none;
}

.gallery-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--rzd-red);
}

.img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #EDF2F7;
}


.img-wrap picture,
.slideshow-wrap .slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover 
.img-wrap picture,
.slideshow-wrap .slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.img-wrap img {
  transform: scale(1.05);
}

.item-date-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(20, 25, 30, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* Card Slideshow */
.slideshow-wrap {
  position: relative;
  overflow: hidden;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-wrap .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease;
  z-index: 1;
}

.slideshow-wrap .slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slideshow-wrap .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .slideshow-wrap .slide.active img {
  transform: scale(1.05);
}

.slideshow-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(226, 26, 26, 0.9);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.slideshow-badge::before {
  content: "⧉";
  font-size: 12px;
}

.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(20, 25, 30, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  font-size: 13px;
  line-height: 1;
  transition: all 0.2s ease;
  opacity: 0;
}

.slideshow-wrap:hover .slide-nav-btn {
  opacity: 1;
}

.slide-nav-btn:hover {
  background: var(--rzd-red, #E21A1A);
  border-color: var(--rzd-red, #E21A1A);
  transform: translateY(-50%) scale(1.08);
}

.slide-prev {
  left: 8px;
}

.slide-next {
  right: 8px;
}

.slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 6;
}

.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.slide-dot.active {
  background: #FFFFFF;
  width: 18px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .slide-nav-btn {
    opacity: 0.85;
  }
}


.card-caption {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Образование */
.education-section {
  padding: 90px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.edu-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 26px 22px;
  border-radius: var(--radius-md);
  border-top: 3px solid var(--rzd-red);
}

.edu-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--rzd-red);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.edu-school {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.edu-degree {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.edu-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Контакты */
.contacts-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.contact-box {
  background: linear-gradient(135deg, #14191E 0%, #1E252D 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.contact-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-kicker-white {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--rzd-red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-subtitle {
  font-size: 15px;
  color: #CBD5E0;
  line-height: 1.6;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--rzd-red);
}

.ci-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.ci-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #A0AEC0;
  margin-bottom: 6px;
}

.ci-val {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  word-break: break-word;
}

.ci-val:hover {
  color: var(--rzd-red-light);
}

/* Подвал */
.site-footer {
  background: #0E1216;
  color: #718096;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left strong {
  color: #CBD5E0;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 13, 16, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative;
  z-index: 2001;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #1A202C;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #FFFFFF;
  font-size: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2005;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--rzd-red);
}

.lightbox-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #FFFFFF;
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2004;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--rzd-red);
}

.lightbox-nav.prev {
  left: 16px;
}

.lightbox-nav.next {
  right: 16px;
}

.lightbox-media {
  width: 100%;
  height: 60vh;
  background: #0D1117;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-info {
  padding: 20px 28px;
  background: #14191E;
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.lightbox-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--rzd-red);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.lightbox-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.lightbox-desc {
  font-size: 14px;
  color: #A0AEC0;
  line-height: 1.5;
  max-width: 800px;
}

.lightbox-counter {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 13px;
  font-weight: 600;
  color: #718096;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
  }
  .portrait-wrapper {
    max-width: 380px;
  }
  .portrait-img {
    height: 400px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .competencies-grid, .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #14191E;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    border-bottom: 2px solid var(--rzd-red);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 34px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .competencies-grid, .projects-grid, .publications-list {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .edu-grid {
    grid-template-columns: 1fr;
  }
  .contact-details-grid {
    grid-template-columns: 1fr;
  }
  .contact-box {
    padding: 36px 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
}
