@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:wght@500;600;700&display=swap');

:root {
  --green-900: #1f5a3b;
  --green-700: #2f8f5b;
  --green-600: #3ea86d;
  --green-500: #53bf7c;
  --green-300: #a3e8bc;
  --mint-100: #eefbf2;
  --mint-200: #def8e7;
  --cream: #fafffd;
  --text: #1f3e2e;
  --text-soft: #4f705f;
  --border: #c8ecd4;
  --shadow: 0 14px 34px rgba(46, 133, 87, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(600px 320px at 4% -8%, rgba(83,191,124,0.28), transparent 60%),
    radial-gradient(760px 380px at 98% -6%, rgba(163,232,188,0.35), transparent 64%),
    linear-gradient(170deg, var(--mint-100) 0%, #e5f7ed 45%, var(--mint-200) 100%);
  min-height: 100vh;
}

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-900);
}

ul {
  list-style: none;
}

.cv-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 20px 82px;
}

.lang-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 28px;
}

.lang-bar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 5px 14px rgba(72, 166, 108, 0.1);
  transition: all var(--transition);
}

.lang-bar a:hover,
.lang-bar a.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  padding: 42px 48px;
  margin-bottom: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(150deg, #ffffff 0%, #f3fff7 45%, #e8fbe9 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: -110px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83,191,124,0.26) 0%, rgba(83,191,124,0) 70%);
  pointer-events: none;
}

.hero-photo,
.hero-photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

.hero-photo {
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow:
    0 0 0 4px rgba(83,191,124,0.46),
    0 14px 26px rgba(66, 154, 100, 0.28);
}

.hero-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  box-shadow:
    0 0 0 4px rgba(83,191,124,0.46),
    0 14px 26px rgba(66, 154, 100, 0.28);
}

.hero-info h1 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--green-900);
}

.title-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #c6edd5;
  background: #ecfdf2;
  color: #2f8f5b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.contact-item i {
  color: var(--green-700);
  width: 16px;
  text-align: center;
}

.contact-item a {
  color: var(--text-soft);
}

.contact-item a:hover {
  color: var(--green-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--green-600), var(--green-700));
  box-shadow: 0 8px 20px rgba(66,154,100,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(66,154,100,0.38);
}

.btn-outline {
  color: var(--green-900);
  background: #f3fff7;
  border: 1px solid #bde9cb;
}

.btn-outline:hover {
  transform: translateY(-1px);
  background: #e9faef;
}

.quote-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid #cdeed9;
  background: linear-gradient(140deg, #2f8f5b 0%, #3ea86d 52%, #53bf7c 100%);
  color: #f3fff8;
  text-align: center;
  margin-bottom: 26px;
  padding: 34px 48px;
  box-shadow: var(--shadow);
}

.quote-card::before {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.quote-card blockquote {
  position: relative;
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.17rem;
  line-height: 1.65;
  font-weight: 500;
}

.quote-card cite {
  position: relative;
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}

.section-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.87);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 34px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(163,232,188,0.34), rgba(255,255,255,0.65));
}

.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  box-shadow: 0 8px 16px rgba(62, 168, 109, 0.3);
}

.section-header h2 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2b724c;
}

.section-body {
  padding: 26px 34px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px 28px;
}

.data-group {
  margin-bottom: 22px;
}

.data-group:last-child {
  margin-bottom: 0;
}

.data-group h3 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #2f8f5b;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #d4f2de;
}

.data-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.data-item .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6c907c;
}

.data-item .value {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.lang-table {
  width: 100%;
  border-collapse: collapse;
}

.lang-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6c907c;
  padding: 0 16px 12px 0;
  border-bottom: 1px solid #d8f1df;
}

.lang-table td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid #e1f4e7;
  font-size: 14px;
}

.lang-table tr:last-child td {
  border-bottom: none;
}

.lang-name {
  font-weight: 700;
  color: #2f8f5b;
}

.lang-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.lang-badge.native { background: #eaf9d9; color: #617c2b; }
.lang-badge.c1 { background: #ddf7ed; color: #2f8f5b; }
.lang-badge.b2 { background: #e6f6ff; color: #3a7ea4; }
.lang-badge.b1 { background: #edf3f8; color: #66717d; }

.timeline {
  position: relative;
  padding-left: 29px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #53bf7c, #a3e8bc);
}

.timeline-item {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px dashed #d4efd9;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green-600);
  box-shadow: 0 0 0 3px rgba(83,191,124,0.2);
}

.timeline-date {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #3b9661;
  margin-bottom: 4px;
}

.timeline-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.timeline-content strong {
  color: #276f49;
}

.back-to-top {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.back-to-top a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  border: 1px solid #cdecd8;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  transition: all var(--transition);
}

.back-to-top a:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 24px;
  }

  .hero-photo,
  .hero-photo-placeholder {
    margin: 0 auto;
  }

  .hero-contacts,
  .hero-actions {
    justify-content: center;
  }

  .quote-card {
    padding: 24px;
  }

  .section-header {
    padding: 17px 20px;
  }

  .section-body {
    padding: 20px;
  }

  .data-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .cv-wrapper {
    padding: 20px 12px 60px;
  }

  .hero-info h1 {
    font-size: 1.9rem;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }
}
