/* ============================================================
   Portfolio — Natalia Starintseva
   Professional Light — Bank / Financial Press style
   ============================================================ */

:root {
  --bg:         #ffffff;
  --bg2:        #f4f6f9;
  --bg3:        #edf0f5;
  --card:       #ffffff;
  --nav-bg:     #0a1f44;       /* Тёмно-синяя шапка как у РБК/ВТБ */
  --border:     #dde3ed;
  --border2:    #c4cfe0;
  --accent:     #0a52a8;       /* Банковский синий */
  --accent-h:   #083d80;
  --green:      #00845a;       /* Тёмно-зелёный финансовый */
  --gold:       #b8760a;
  --text:       #0d1b2e;       /* Почти чёрный, как типографика РБК */
  --muted:      #4a5e75;
  --dim:        #8a9db8;
  --divider:    #e4eaf3;
  --shadow:     0 1px 4px rgba(0,30,70,0.08), 0 4px 16px rgba(0,30,70,0.05);
  --shadow-h:   0 2px 8px rgba(0,30,70,0.12), 0 8px 32px rgba(0,30,70,0.09);
  --radius:     8px;
  --max:        1100px;
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

/* ── Utility ─────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 24px;
}
a { color: inherit; text-decoration: none; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.nav-logo span { color: #6baee8; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-link {
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}
.nav-link:hover  { color: #fff; background: rgba(255,255,255,0.1); }
.nav-link.active { color: #fff; }
.btn-nav-cv {
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  margin-left: 8px;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-nav-cv:hover { background: var(--accent-h); }
.lang-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  margin-left: 6px;
  transition: all 0.15s;
}
.lang-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.burger {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 22px;
  padding: 4px;
}
@media (max-width: 700px) {
  .burger { display: block; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    padding: 12px 16px 20px;
    gap: 4px;
  }
  .nav-menu.open { display: flex; }
  .nav-link { width: 100%; padding: 10px 14px; }
}

/* ── HERO ────────────────────────────────────────────────────── */
#hero {
  background: var(--nav-bg);
  padding: 90px 0 52px;
}

.hero-card {
  display: flex;
  align-items: flex-start;
  gap: 52px;
}
@media (max-width: 720px) {
  .hero-card { flex-direction: column; align-items: center; gap: 28px; text-align: center; }
}

/* Photo column */
.hero-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.hero-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.15);
  position: relative;
  background: rgba(255,255,255,0.06);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero-photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
}
.hero-location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.hero-tag-dot {
  width: 7px; height: 7px;
  background: #4cd9a4;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(0.7); }
}

/* Info column */
.hero-info { flex: 1; padding-top: 8px; }
.hero-name {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  color: #fff;
}
.hero-name span { color: #6baee8; }
.hero-role {
  font-size: clamp(13px, 1.6vw, 15px);
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}
.hero-pitch {
  font-size: clamp(14px, 1.5vw, 15.5px);
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.btn-primary {
  background: #fff;
  border: none;
  border-radius: 5px;
  color: var(--nav-bg);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: #d9e8f8; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }

.hero-contacts-inline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-contacts-inline a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.hero-contacts-inline a:hover { color: rgba(255,255,255,0.9); }

/* ── STATS STRIP ─────────────────────────────────────────────── */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 0 40px;
  flex: 1;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
.stat-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-num.green { color: var(--green); }
.stat-num.gold  { color: var(--gold); }
.stat-label { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 600px) {
  .stats-row { flex-wrap: wrap; }
  .stat-item { padding: 14px 20px; flex: 0 0 50%; }
  .stat-sep  { display: none; }
}

/* ── ABOUT ───────────────────────────────────────────────────── */
#about { padding: 100px 0; background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p strong { color: var(--text); }
.edu-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.edu-block-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.edu-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}
.edu-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.edu-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.edu-name { font-size: 13px; font-weight: 600; color: var(--text); }
.edu-sub  { font-size: 12px; color: var(--muted); }

/* ── SKILLS ──────────────────────────────────────────────────── */
#skills { padding: 100px 0; background: var(--bg2); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.skill-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.skill-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  width: fit-content;
}
.skill-group:nth-child(2) .skill-group-title { color: var(--green);  border-bottom-color: var(--green); }
.skill-group:nth-child(3) .skill-group-title { color: var(--gold);   border-bottom-color: var(--gold); }
.skill-group:nth-child(4) .skill-group-title { color: #6245b8;       border-bottom-color: #6245b8; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  transition: all 0.15s;
}
.tag:hover { color: var(--accent); border-color: var(--accent); background: rgba(10,82,168,0.06); }

/* ── EXPERIENCE ──────────────────────────────────────────────── */
#experience { padding: 100px 0; background: var(--bg); }
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border2));
}
.job-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 20px;
}
.job-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 10px; height: 10px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.job-item.current::before { background: var(--accent); }
.job-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.job-company {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.job-period {
  font-size: 12px;
  color: var(--dim);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 8px;
}
.current-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(0,132,90,0.1);
  border: 1px solid rgba(0,132,90,0.25);
  color: var(--green);
  border-radius: 4px;
  padding: 1px 8px;
  letter-spacing: 0.5px;
}
.job-role       { font-size: 13.5px; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.job-desc-text  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── PROJECTS ────────────────────────────────────────────────── */
#projects { padding: 100px 0; background: var(--bg2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.project-card:hover:not(.wip) { box-shadow: var(--shadow-h); transform: translateY(-3px); border-color: var(--accent); }
.project-card.wip { opacity: 0.72; }
.project-card.wip:hover { box-shadow: var(--shadow); transform: none; border-color: var(--border); }
.project-icon { font-size: 28px; margin-bottom: 14px; }
.project-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.project-desc  { font-size: 13.5px; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 18px; }
.project-tags  { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.project-tag {
  background: rgba(10,82,168,0.07);
  border: 1px solid rgba(10,82,168,0.18);
  border-radius: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
}
.project-card.wip .project-tag {
  background: rgba(184,118,10,0.07);
  border-color: rgba(184,118,10,0.2);
  color: var(--gold);
}
.project-btn {
  display: inline-block;
  background: var(--accent);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
  text-decoration: none;
}
.project-btn:hover { background: var(--accent-h); }
.project-btn.disabled {
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--dim);
  cursor: default;
}
.project-btn.disabled:hover { background: var(--bg3); }

/* ── CONTACT ─────────────────────────────────────────────────── */
#contact { padding: 100px 0; background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-desc {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s;
}
.contact-link:hover { color: var(--accent); }
.contact-icon {
  width: 40px; height: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.contact-link:hover .contact-icon { border-color: var(--accent); background: rgba(10,82,168,0.06); }

.contact-cv-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-cv-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.btn-cv-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  width: 100%;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-cv-download:hover { background: var(--accent-h); }
.contact-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--dim);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}
footer a { color: rgba(255,255,255,0.5); transition: color 0.15s; }
footer a:hover { color: rgba(255,255,255,0.9); }
