* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f1e9;
  --paper: #fbfaf6;
  --ink: #172018;
  --muted: #6f776f;
  --line: rgba(23, 32, 24, 0.12);
  --green: #2e5038;
  --green-dark: #183222;
  --sand: #d7c19b;
  --white: #ffffff;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 24px 70px rgba(24, 36, 26, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 16px auto;
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 10px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 220px;
  height: 58px;
  object-fit: contain;
}

.language-switcher {
  display: flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-dark);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(24, 50, 34, .12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .2s ease, opacity .2s ease;
}

.social-pill:hover {
  transform: translateY(-2px);
  opacity: .92;
}

.social-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-weight: 800;
  line-height: 1;
}

.social-pill.facebook .social-icon {
  font-family: Arial, sans-serif;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 46px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: .2s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.active {
  color: white;
  background: var(--green-dark);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: flex-end;
  padding: clamp(32px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(11, 24, 15, .82) 0%, rgba(11, 24, 15, .60) 42%, rgba(11, 24, 15, .15) 75%),
    url("https://madagascar.vihod.net/images/TwoLemurs.jpg")
    center center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.22), transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(800px, 100%);
  color: white;
}

.eyebrow,
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255,255,255,.72);
  margin-bottom: 26px;
}

.hero h1,
.section h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: -.03em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 104px);
  line-height: .96;
}

.hero h1 span {
  color: #eadbbc;
}

.hero-lead {
  max-width: 690px;
  margin: 28px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}

.status-card {
  margin-top: 34px;
  max-width: 650px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.17);
  backdrop-filter: blur(15px);
}

.status-card strong {
  font-size: 15px;
}

.status-card p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.5;
}

.status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  background: #d9c28f;
  box-shadow: 0 0 0 6px rgba(217,194,143,.14);
}

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

.btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: white;
  color: var(--green-dark);
}

.btn-secondary {
  color: white;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.06);
}

.btn-dark {
  background: var(--green-dark);
  color: white;
  width: 100%;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 26px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section {
  padding: clamp(70px, 8vw, 120px) clamp(10px, 4vw, 56px);
}

.section-label {
  color: var(--green);
  margin-bottom: 24px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.intro h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
}

.intro h2 span {
  color: var(--green);
}

.intro-copy {
  padding-top: 10px;
}

.intro-copy p {
  margin: 0 0 20px;
  color: #59615a;
  font-size: 17px;
  line-height: 1.75;
}

.experiences {
  background: var(--paper);
  border-radius: var(--radius-xl);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(40px, 4.5vw, 68px);
  line-height: 1.05;
}

.section-heading > p {
  margin: 0;
  max-width: 430px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.experience-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.experience-card > span {
  margin-bottom: auto;
  color: #9b9f99;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.experience-card h3 {
  margin: 50px 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 27px;
  font-weight: 600;
}

.experience-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.accent-card {
  color: white;
  background: var(--green);
  border-color: transparent;
}

.accent-card p,
.accent-card > span {
  color: rgba(255,255,255,.7);
}

.about {
  padding-top: 20px;
}

.about-panel {
  min-height: 520px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(23,50,34,.96), rgba(23,50,34,.88)),
    url("https://madagascar.vihod.net/images/TwoLemurs.jpg")
    center 42% / cover no-repeat;
  color: white;
  padding: clamp(35px, 6vw, 78px);
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 60px;
  align-items: end;
}

.about-number {
  font-family: "Playfair Display", serif;
  font-size: clamp(90px, 13vw, 190px);
  line-height: .75;
  color: rgba(255,255,255,.14);
}

.section-label.light {
  color: #dbc79e;
}

.about-content {
  max-width: 650px;
}

.about-content p {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.7;
}

.contact {
  padding-bottom: 90px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(60px, 9vw, 140px);
  align-items: center;
}

.contact-wrap > div:first-child > p {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-item {
  padding: 6px 0 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.contact-item small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 700;
}

.contact-item a {
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  gap: 10px;
  margin: 4px 0 22px;
}

.social-links a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.social-links a:hover,
.footer-social a:hover {
  transform: translateY(-2px);
  background: #fff;
}

.footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

footer {
  min-height: 110px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 12px;
}

footer > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

footer strong {
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: 18px;
}

@media (max-width: 980px) {
  .hero {
    min-height: 700px;
  }

  .intro-grid,
  .contact-wrap,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .about-number {
    margin-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, 1500px);
    margin-top: 8px;
  }

  .topbar {
    min-height: 72px;
  }

  .brand-text {
    display: none;
  }

  .topbar {
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .top-actions {
    margin-left: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .top-social {
    gap: 6px;
  }

  .social-pill {
    min-height: 36px;
    padding: 0 11px;
    font-size: 11px;
  }

  .social-pill .social-icon {
    width: 18px;
    height: 18px;
  }

  .language-switcher {
    overflow-x: auto;
  }

  .lang-btn {
    min-width: 39px;
    height: 35px;
  }

  .hero {
    min-height: 720px;
    padding: 34px 24px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .hero-caption {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 68px 16px;
  }

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

  .experience-card {
    min-height: 220px;
  }

  .about {
    padding: 8px 0;
  }

  .about-panel {
    min-height: 560px;
    border-radius: 24px;
    padding: 35px 24px;
  }

  .brand-logo {
    max-width: 185px;
    height: 50px;
  }

  .social-links {
    flex-direction: column;
  }

  .social-links a {
    width: 100%;
  }

  footer {
    padding: 28px 8px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .brand-logo {
    max-width: 135px;
    height: 44px;
  }

  .social-pill span:last-child {
    display: none;
  }

  .social-pill {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .top-actions {
    gap: 6px;
  }
}
