:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #f0f4ff;
  --text: #111827;
  --muted: #526075;
  --accent: #1d4ed8;
  --accent-soft: rgba(29, 78, 216, 0.1);
  --border: #d8deea;
  --success: #0f766e;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.12), transparent 34%),
    linear-gradient(180deg, #fcfcff 0%, var(--bg) 36%, var(--bg) 100%);
}

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

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding-left: 1.2rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 222, 234, 0.7);
  background: rgba(246, 247, 251, 0.84);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand-mark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.84rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a,
.lang-toggle,
.back-link {
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a:hover,
.lang-toggle:hover,
.back-link:hover {
  color: var(--text);
}

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
}

.hero,
.section {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(216, 222, 234, 0.55);
  border-bottom: 1px solid rgba(216, 222, 234, 0.55);
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: start;
}

.eyebrow,
.section-kicker,
.profile-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h1,
.section h2,
.profile-panel h2 {
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1,
.section h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  max-width: 13.5ch;
}

.section h2,
.profile-panel h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
}

.lead,
.section-copy,
.section-heading p,
.profile-panel p,
.card p,
.case-card p,
.service-card p,
.legal-section p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  margin-top: 1.25rem;
  font-size: 1.04rem;
  max-width: 58ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.contact-chip:hover,
.service-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.26);
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-list,
.check-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-list,
.check-list {
  padding-left: 1.15rem;
}

.profile-panel,
.list-card,
.contact-panel,
.card,
.case-card,
.service-card,
.expert-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile-panel,
.list-card,
.contact-panel,
.expert-details {
  padding: 1.5rem;
}

.profile-panel {
  width: min(100%, 410px);
  justify-self: end;
  padding: 1.25rem;
}

.portrait-frame {
  width: min(100%, 280px);
  margin-bottom: 0.8rem;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.12), rgba(29, 78, 216, 0.03));
  border: 1px solid rgba(29, 78, 216, 0.12);
  aspect-ratio: 4 / 5;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-panel .profile-label {
  margin-bottom: 0.55rem;
}

.profile-panel h2 {
  margin-bottom: 0.55rem;
  line-height: 1.12;
}

.profile-panel p {
  font-size: 0.96rem;
  line-height: 1.6;
}

.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.fact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-grid,
.case-grid,
.service-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

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

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid-secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.case-card,
.service-card {
  padding: 1.35rem;
}

.card h3,
.case-card h3,
.service-card h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 0.7rem;
}

.case-card p + p {
  margin-top: 0.7rem;
}

.case-card strong {
  color: var(--text);
}

.section-heading {
  max-width: 72ch;
}

.section-heading h2,
.section-heading h1 {
  margin-bottom: 0.9rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
}

.contact-actions {
  display: grid;
  gap: 0.8rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.8rem 1rem;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid rgba(216, 222, 234, 0.7);
  background: rgba(255, 255, 255, 0.66);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0 2.2rem;
}

.footer-inner p,
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-body {
  background: linear-gradient(180deg, #fbfcff 0%, #f4f6fb 100%);
}

.legal-main {
  padding: 4rem 0 5rem;
}

.legal-container {
  width: min(860px, calc(100% - 2rem));
}

.legal-container h1 {
  margin: 1rem 0 1.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-section + .legal-section {
  margin-top: 2rem;
}

.legal-section h2 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.updated-label {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.internal-main {
  min-height: calc(100vh - 90px);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(82, 96, 117, 0.08);
  color: var(--muted);
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-scope {
  background: var(--accent-soft);
  color: var(--accent);
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  color: var(--accent);
  font-weight: 700;
}

.expert-details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.expert-details summary::-webkit-details-marker {
  display: none;
}

.expert-details[open] summary {
  margin-bottom: 1rem;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .split-grid,
  .contact-panel,
  .card-grid,
  .case-grid,
  .service-grid,
  .service-grid-secondary {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    align-items: flex-start;
  }

  .profile-panel {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .hero,
  .section {
    padding: 3.5rem 0;
  }

  .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .hero h1,
  .section h1 {
    max-width: none;
  }

  .footer-inner,
  .service-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .badge-row {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
