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

:root {
  --accent: #1D4ED8;
  --text-primary: #111111;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --border: #D1D5DB;
  --bg: #FFFFFF;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-en: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --photo-size: 250px;
  --content-max: 900px;
  --content-pad: 32px;
  --edge-margin: 24px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 999;
}

.skip-link:focus {
  top: 8px;
}

.hero {
  position: relative;
}

.banner {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  background-color: #ffffff;
}

.lang-switch-wrap {
  position: absolute;
  top: 20px;
  right: max(var(--edge-margin), calc((100% - var(--content-max)) / 2 + var(--content-pad)));
  z-index: 10;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #1f2937;
  border: 2px solid rgba(255, 255, 255, 0.45);
  padding: 8px 18px;
  border-radius: 100px;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.15s;
}

.lang-switch:hover {
  background: #374151;
}

.lang-switch:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.lang-switch svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.hero-body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-top: calc(var(--photo-size) * 0.12);
  padding-bottom: 32px;
  padding-left: var(--content-pad);
  padding-right: calc(var(--photo-size) + 48px);
  position: relative;
  background: var(--bg);
}

.profile-photo-wrap {
  position: absolute;
  right: var(--content-pad);
  top: calc(var(--photo-size) * -0.5);
}

.profile-photo {
  width: var(--photo-size);
  height: var(--photo-size);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 5px solid #ffffff;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.22);
  display: block;
  background: #ddd;
}

h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 10px;
  margin-top: 6px;
  letter-spacing: normal;
}

.hero-sub-primary {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 5px;
  text-transform: none;
  letter-spacing: normal;
}

.hero-sub-secondary {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: normal;
}

.hero-sub-secondary .nowrap {
  white-space: nowrap;
}

.content-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad) 96px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 48px;
}

section {
  margin-bottom: 52px;
}

section h2 {
  font-size: 30px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.prose h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: normal;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  list-style-position: outside;
  padding-left: 2em;
  margin-top: 0;
  margin-bottom: 20px;
}

.prose ul:last-child {
  margin-bottom: 0;
}

.prose ul li {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 4px;
  padding-left: 0.3em;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.15s;
  overflow: hidden;
}

.contact-icon:hover {
  opacity: 0.85;
}

.contact-icon:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.contact-icon--line {
  background: #06C755;
}

.contact-icon--threads {
  background: #000000;
}

.contact-icon--email {
  background: var(--accent);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contact-service {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.contact-detail a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  font-size: 18px;
  transition: text-decoration-color 0.15s;
}

.contact-detail a:hover {
  text-decoration-color: var(--accent);
}

.contact-detail a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-lang {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-lang a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s, color 0.15s;
}

.footer-lang a:hover {
  color: var(--text-primary);
  text-decoration-color: var(--text-primary);
}

.footer-lang a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-lang [aria-current="page"] {
  color: var(--text-muted);
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}

.footer-lang .footer-lang-sep {
  margin: 0 6px;
  color: var(--border);
  user-select: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --photo-size: 230px;
    --content-pad: 64px;
  }

  .banner {
    height: 280px;
  }

  h1 {
    font-size: clamp(36px, 5vw, 52px);
  }

  .hero-sub-primary {
    font-size: clamp(18px, 2.4vw, 24px);
  }

  .hero-sub-secondary {
    font-size: 17px;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  :root {
    --photo-size: 160px;
    --content-pad: 32px;
  }

  .banner {
    height: 240px;
  }

  .hero-body {
    padding-right: 20px;
  }

  .profile-photo-wrap {
    right: 20px;
  }

  h1 {
    font-size: clamp(28px, 5vw, 38px);
    padding-right: calc(var(--photo-size) + 12px);
  }

  .hero-sub-primary,
  .hero-sub-secondary {
    padding-right: 0;
  }

  .hero-sub-primary {
    font-size: clamp(15px, 2.5vw, 18px);
  }

  .hero-sub-secondary {
    font-size: 14px;
  }
}

@media (max-width: 639px) {
  :root {
    --photo-size: 120px;
    --content-pad: 20px;
    --edge-margin: 20px;
  }

  .banner {
    height: 200px;
  }

  .hero-body {
    padding-right: 20px;
  }

  .profile-photo-wrap {
    right: 20px;
  }

  h1 {
    padding-right: calc(var(--photo-size) + 12px);
  }

  .hero-sub-primary,
  .hero-sub-secondary {
    padding-right: 0;
  }
}

@media (min-width: 414px) and (max-width: 639px) {
  :root {
    --photo-size: 120px;
  }

  h1 {
    font-size: clamp(28px, 7.5vw, 36px);
  }

  .hero-sub-primary {
    font-size: clamp(15px, 3.8vw, 18px);
  }

  .hero-sub-secondary {
    font-size: 14px;
  }
}

@media (min-width: 375px) and (max-width: 413px) {
  :root {
    --photo-size: 115px;
  }

  h1 {
    font-size: clamp(26px, 9vw, 36px);
  }

  .hero-sub-primary {
    font-size: clamp(14px, 3.8vw, 17px);
  }

  .hero-sub-secondary {
    font-size: 13px;
  }
}

@media (max-width: 374px) {
  :root {
    --photo-size: 100px;
  }

  h1 {
    font-size: clamp(22px, 8.5vw, 28px);
  }

  .hero-sub-primary {
    font-size: 13px;
  }

  .hero-sub-secondary {
    font-size: 12px;
  }

  .lang-switch {
    font-size: 13px;
    padding: 7px 14px;
  }
}