/* payze.ru — style.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #f0f4f8;
  color: #1c2b3a;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── STICKY SHELL ──────────────────────────────────────── */
.sticky-shell {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid #dce8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.hero-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid #1d6fa4;
  background: #deedf7;
  position: relative;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-initials {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d6fa4;
}

.hero-body {
  flex: 1;
  min-width: 0;
}

.hero-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d6fa4;
  margin-bottom: 1px;
}

.hero-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0e1f2e;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-exp {
  font-size: 0.72rem;
  color: #7a8fa0;
  margin-top: 1px;
}

/* ── LANG BUTTON ───────────────────────────────────────── */
.lang-toggle {
  flex-shrink: 0;
  background: #1d6fa4;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  cursor: pointer;
  min-height: 36px;
  min-width: 52px;
  line-height: 1;
  transition: background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.lang-toggle:hover  { background: #155a87; }
.lang-toggle:active { background: #0f4265; }
.lang-toggle:focus-visible { outline: 2px solid #1d6fa4; outline-offset: 3px; }

/* ── PILL NAV ──────────────────────────────────────────── */
.pill-nav {
  background: #f7fafd;
  border-top: 1px solid #e4edf5;
  padding: 0 8px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pill-nav::-webkit-scrollbar { display: none; }

.pill-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 10px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a6070;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  min-height: 40px;
  transition: color 0.15s, border-color 0.15s;
}

.pill-link:hover,
.pill-link:focus {
  color: #1d6fa4;
  border-bottom-color: #1d6fa4;
  text-decoration: none;
}

/* ── CONTENT ────────────────────────────────────────────── */
.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 14px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 18px;
  border: 1px solid #dce8f0;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0e1f2e;
  margin-bottom: 16px;
}

.card-title svg { color: #1d6fa4; flex-shrink: 0; }

/* ── TIMELINE ───────────────────────────────────────────── */
.timeline { list-style: none; }

.tl-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  position: relative;
}

.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: #cde0ee;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-year {
  flex-shrink: 0;
  width: 42px;
  height: 22px;
  background: #e3f0fa;
  color: #1d6fa4;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 1px;
}

.tl-body { flex: 1; min-width: 0; }

.tl-degree {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1c2b3a;
  margin-bottom: 2px;
  line-height: 1.4;
}

.tl-org { font-size: 0.78rem; color: #7a8fa0; }

/* ── WORKPLACE ──────────────────────────────────────────── */
.workplace-block { display: flex; flex-direction: column; gap: 10px; }

.wp-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1c2b3a;
  line-height: 1.45;
}

.wp-badge {
  display: inline-block;
  background: #e3f0fa;
  color: #1d6fa4;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  width: fit-content;
}

.wp-addr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #7a8fa0;
}
.wp-addr svg { color: #1d6fa4; flex-shrink: 0; }

/* ── PUBLICATION ────────────────────────────────────────── */
.pub-card {
  background: #f5f9fd;
  border-left: 3px solid #1d6fa4;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
}

.pub-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1c2b3a;
  margin-bottom: 5px;
  line-height: 1.5;
}

.pub-meta { font-size: 0.76rem; color: #7a8fa0; font-style: italic; }

/* ── PRODOCTOROV ────────────────────────────────────────── */
.pd-desc {
  font-size: 0.86rem;
  color: #4a6070;
  margin-bottom: 14px;
  line-height: 1.55;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1d6fa4;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 8px;
  min-height: 44px;
  transition: background 0.15s;
}

.cta-btn:hover, .cta-btn:focus { background: #155a87; color: #fff; text-decoration: none; }

/* ── DISCLAIMER ─────────────────────────────────────────── */
.disclaimer {
  font-size: 0.76rem;
  color: #7a8fa0;
  background: #eef4f9;
  border: 1px solid #d4e5f0;
  border-radius: 8px;
  padding: 13px 15px;
  line-height: 1.65;
  font-style: italic;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: #ffffff; border-top: 1px solid #dce8f0; padding: 24px 16px; }

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.f-copy  { font-size: 0.8rem; font-weight: 700; color: #1c2b3a; }
.f-email { font-size: 0.8rem; color: #7a8fa0; }
.f-email a { color: #1d6fa4; }
.f-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.76rem; }
.f-links a { color: #1d6fa4; }
.f-links span { color: #c0cfd9; }
.f-note  { font-size: 0.73rem; color: #9aaab8; font-style: italic; margin-top: 4px; line-height: 1.5; }
.f-date  { font-size: 0.7rem; color: #bccad4; }

/* ── TABLET ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero { padding: 16px 24px; gap: 18px; }
  .hero-avatar { width: 68px; height: 68px; }
  .hero-name { font-size: 1.15rem; white-space: normal; }
  .hero-label { font-size: 0.75rem; }
  .hero-exp { font-size: 0.8rem; }
  .content { padding: 20px 20px 56px; gap: 16px; }
  .card { padding: 24px 22px; }
}

/* ── DESKTOP ─────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero { padding: 18px 32px; }
  .hero-avatar { width: 76px; height: 76px; }
  .hero-name { font-size: 1.25rem; }
  .content { padding: 28px 20px 64px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lang-toggle, .cta-btn, .pill-link { transition: none; }
}

/* ── ADDITIONS ──────────────────────────────────────────── */

/* Hero centering */
.hero {
  justify-content: center;
  text-align: left;
}
.hero-body { text-align: left; }

/* pill-nav sub links (privacy/terms) — smaller, muted */
.pill-link--sub {
  font-size: 0.72rem;
  color: #8a9faf;
  font-weight: 500;
}
.pill-link--sub:hover, .pill-link--sub:focus {
  color: #1d6fa4;
  border-bottom-color: #1d6fa4;
}

/* Workplace divider */
.wp-divider {
  height: 1px;
  background: #e4edf5;
  margin: 14px 0;
}

/* Publications */
.pub-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d6fa4;
  margin: 16px 0 8px;
}
.pub-section-label:first-of-type { margin-top: 0; }

.pub-card {
  background: #f5f9fd;
  border-left: 3px solid #1d6fa4;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.pub-card:last-of-type { margin-bottom: 0; }

.pub-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1c2b3a;
  margin-bottom: 4px;
  line-height: 1.45;
}

.pub-meta {
  font-size: 0.75rem;
  color: #7a8fa0;
  font-style: italic;
  margin-bottom: 8px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d6fa4;
  text-decoration: none;
  background: #e3f0fa;
  padding: 3px 10px;
  border-radius: 20px;
}
.pub-link:hover { background: #cde1f4; text-decoration: none; }

.pub-all-link-wrap { margin-top: 16px; text-align: right; }
.pub-all-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1d6fa4;
}
.pub-all-link:hover { text-decoration: underline; }

/* active nav link */
.pill-link--active {
  color: #1d6fa4 !important;
  border-bottom-color: #1d6fa4 !important;
}
