:root {
  --bg: #f4f1ec;
  --paper: #fffdfa;
  --ink: #121212;
  --muted: #55524d;
  --line: rgba(18, 18, 18, 0.10);
  --gold: #c99a43;
  --gold-soft: #fff4dc;
  --button: #111111;
  --button-soft: #f7ead1;
  --radius: 28px;
  --shadow: 0 22px 70px rgba(22, 18, 12, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f8f5ef 0%, #eee8dc 100%);
  line-height: 1.45;
}

.cv-page {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
  padding: 34px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.language-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.78rem;
}

.language-label {
  color: var(--muted);
  margin-right: 4px;
}

.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-btn:hover,
.lang-btn.is-active {
  background: var(--button);
  color: #fff;
  border-color: var(--button);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
  align-items: start;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.hero-text h1 {
  margin: 4px 0 10px;
  font-size: clamp(2.25rem, 4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.qualities {
  margin: 0 0 20px;
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  font-weight: 800;
}

.headline {
  margin: 0 0 16px;
  font-weight: 800;
  font-size: 1.05rem;
}

.star {
  color: var(--gold);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  margin-top: 12px;
  font-size: 1rem;
}

.contact-line a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 18, 18, 0.25);
}

.contact-line a:hover {
  border-bottom-color: var(--gold);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.cta-button,
.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-button:hover,
.footer-whatsapp:hover {
  transform: translateY(-1px);
}

.cta-button.primary,
.footer-whatsapp {
  background: var(--button);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.cta-button.secondary {
  background: var(--button-soft);
  color: var(--ink);
  border: 1px solid rgba(201, 154, 67, 0.35);
}

.safety-note {
  max-width: 760px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 14px;
  color: #4c3c1c;
  font-size: 0.93rem;
}

.hero-photo {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.profile-photo {
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid #eee9df;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.13);
}

.desktop-photo {
  width: 215px;
}

.mobile-photo-wrap {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.85fr);
  gap: 60px;
  padding-top: 54px;
}

.cv-section {
  margin-bottom: 42px;
}

.cv-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cv-section h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.2;
  font-weight: 900;
}

.cv-section p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1rem;
}

.experience-item {
  margin-bottom: 44px;
}

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

.meta,
.small-card p,
#education p {
  font-weight: 800;
  font-size: 0.9rem !important;
  color: var(--ink) !important;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin: 2px 0;
}

.clean-list,
.language-list {
  list-style: none;
  padding-left: 0;
}

.clean-list li {
  position: relative;
  padding-left: 15px;
}

.clean-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ink);
}

.side-column {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}

.compact {
  margin-bottom: 38px;
}

.small-card {
  margin-bottom: 24px;
}

.language-list li {
  font-size: 1rem;
  margin: 3px 0;
}

.cv-footer {
  margin-top: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cv-footer p {
  margin: 0 0 18px;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

@media (max-width: 920px) {
  .cv-page {
    width: min(100% - 24px, 760px);
    padding: 24px;
    margin: 18px auto;
  }

  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 34px;
  }

  .desktop-photo-wrap {
    display: none;
  }

  .mobile-photo-wrap {
    display: flex;
    justify-content: center;
    margin: 4px 0 18px;
  }

  .mobile-photo {
    width: min(42vw, 170px);
  }

  .contact-line,
  .cta-row {
    justify-content: center;
  }

  .safety-note {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 36px;
  }

  .side-column {
    border-left: 0;
    padding-left: 0;
  }

  .cv-section {
    margin-bottom: 34px;
  }
}

@media (max-width: 560px) {
  .cv-page {
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 18px;
  }

  .language-bar {
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }

  .hero-text h1 {
    font-size: 2.05rem;
  }

  .qualities {
    font-size: 1.08rem;
  }

  .headline {
    font-size: 0.98rem;
  }

  .contact-line {
    flex-direction: column;
    gap: 8px;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cta-button,
  .footer-whatsapp {
    width: 100%;
  }

  .cv-section h2 {
    font-size: 1.48rem;
  }

  .experience-item {
    margin-bottom: 34px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .cv-page {
    box-shadow: none;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }

  .language-bar,
  .cta-row,
  .footer-whatsapp,
  .safety-note {
    display: none;
  }
}
