:root {
  --bg: #f2eadf;
  --surface: #fffaf3;
  --ink: #202124;
  --muted: #666b73;
  --line: #ded2c4;
  --brand: #25334a;
  --brand-soft: #eee6da;
  --accent: #8a6543;
  --shadow: 0 18px 45px rgba(32, 33, 36, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f2ea 0%, var(--bg) 100%);
  line-height: 1.65;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255,250,243,0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(32,33,36,0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  min-width: max-content;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.main-nav,
.language-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav { margin-left: auto; }

.main-nav a,
.language-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.language-nav a.active,
.main-nav a:hover,
.language-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 30px auto 56px;
}

.hero,
.cv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 34px;
  align-items: center;
  padding: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cv-hero {
  grid-template-columns: minmax(0, 1fr) 170px;
  padding: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  color: var(--brand);
}

h2 {
  margin-bottom: 18px;
  color: var(--brand);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 19px;
  line-height: 1.3;
}

.subtitle {
  margin-bottom: 22px;
  font-size: clamp(19px, 2.2vw, 27px);
  color: var(--muted);
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--brand);
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  color: var(--brand);
  background: #fffaf3;
}

.hero-photo,
.cv-photo {
  margin: 0;
  justify-self: center;
}

.hero-photo img {
  display: block;
  width: min(360px, 100%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cv-photo img {
  display: block;
  width: 150px;
  height: 188px;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.content-section {
  margin-top: 28px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(32,33,36,0.05);
}

.grid-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.experience-card,
.education-card,
.contact-card,
.cv-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8ef;
}

.role,
.period,
.education-card p {
  color: var(--muted);
  font-weight: 700;
}

.role span,
.education-card span { color: var(--accent); }

.check-list,
.bullet-list,
.plain-list,
.skill-list {
  margin: 0;
  padding-left: 20px;
}

.check-list li,
.bullet-list li,
.plain-list li,
.skill-list li {
  margin: 7px 0;
}

.skill-list {
  columns: 2;
  column-gap: 34px;
}

.cv-item + .cv-item { margin-top: 18px; }

.cv-item-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .main-nav { margin-left: 0; }

  .hero,
  .cv-hero,
  .grid-section {
    grid-template-columns: 1fr;
  }

  .hero,
  .cv-hero,
  .content-section {
    padding: 24px;
  }

  .card-grid,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .cv-photo { justify-self: start; }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 20px, 1160px);
  }

  .brand { width: 100%; }
  .main-nav, .language-nav { flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .skill-list { columns: 1; }
}
