:root {
  --light-lavender: #d9d6e8;
  --primary-indigo: #1a1177;
  --dark-navy: #0e0a4d;
  --accent-blue: #4b47c6;
  --white: #ffffff;

  --bg: var(--light-lavender);
  --surface: var(--white);
  --surface-strong: var(--light-lavender);
  --ink: var(--dark-navy);
  --muted: color-mix(in srgb, var(--dark-navy) 72%, var(--accent-blue));
  --line: rgba(26, 17, 119, 0.14);
  --logo-gray: var(--light-lavender);
  --logo-blue-dark: var(--primary-indigo);
  --amber: var(--accent-blue);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgba(14, 10, 77, 0.14);
  --shadow-soft: 0 14px 34px rgba(14, 10, 77, 0.1);
  --fast: 180ms ease;
  --header-height: 78px;
}

html[data-theme="dark"] {
  --bg: var(--dark-navy);
  --surface: var(--primary-indigo);
  --surface-strong: var(--accent-blue);
  --ink: var(--white);
  --muted: var(--light-lavender);
  --line: rgba(217, 214, 232, 0.2);
  --logo-gray: var(--light-lavender);
  --logo-blue-dark: var(--light-lavender);
  --amber: var(--accent-blue);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(26, 17, 119, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(75, 71, 198, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(75, 71, 198, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--logo-blue-dark);
  color: var(--white);
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
  transition: transform var(--fast);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(14, 10, 77, 0.12);
  background: rgba(217, 214, 232, 0.92);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(15, 20, 32, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  width: 105px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
  transition:
    background var(--fast),
    color var(--fast);
}

.nav a:hover {
  background: rgba(75, 71, 198, 0.08);
  color: var(--logo-blue-dark);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--logo-blue-dark);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    background var(--fast),
    border-color var(--fast),
    color var(--fast),
    transform var(--fast);
}

.language-switcher a:hover {
  border-color: rgba(75, 71, 198, 0.34);
  background: rgba(75, 71, 198, 0.08);
  transform: translateY(-1px);
}

.language-switcher a[aria-current="true"] {
  border-color: var(--logo-blue-dark);
  background: var(--logo-blue-dark);
  color: var(--white);
  cursor: default;
}

html[data-theme="dark"] .language-switcher a[aria-current="true"] {
  color: var(--dark-navy);
}

.language-switcher a[aria-current="true"]:hover {
  transform: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 68px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--logo-blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background var(--fast),
    border-color var(--fast),
    color var(--fast),
    transform var(--fast);
}

.theme-toggle:hover {
  border-color: rgba(75, 71, 198, 0.34);
  background: rgba(75, 71, 198, 0.08);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--logo-blue-dark);
  box-shadow: inset -4px -3px 0 var(--surface);
}

html[data-theme="dark"] .theme-toggle-icon {
  box-shadow: 0 0 0 3px rgba(75, 71, 198, 0.24);
  background: var(--amber);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform var(--fast),
    opacity var(--fast);
}

.nav-toggle.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

main section {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(75, 71, 198, 0.08), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(217, 214, 232, 0.7));
  padding: 88px 0 76px;
}

html[data-theme="dark"] .hero {
  background:
    linear-gradient(135deg, rgba(75, 71, 198, 0.22), transparent 42%),
    linear-gradient(90deg, rgba(14, 10, 77, 0.92), rgba(26, 17, 119, 0.72));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--logo-blue-dark);
  font-size: 3.4rem;
  line-height: 1.06;
}

h2 {
  margin-bottom: 16px;
  color: var(--logo-blue-dark);
  font-size: 2.15rem;
  line-height: 1.16;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.96rem;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
  transition:
    background var(--fast),
    border-color var(--fast),
    color var(--fast),
    transform var(--fast);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--logo-blue-dark);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--dark-navy);
}

html[data-theme="dark"] .btn.primary {
  color: var(--dark-navy);
}

html[data-theme="dark"] .btn.primary:hover {
  background: var(--light-lavender);
}

.btn.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--logo-blue-dark);
}

.btn.ghost:hover {
  border-color: rgba(75, 71, 198, 0.34);
  background: rgba(75, 71, 198, 0.08);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(14, 10, 77, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-stat {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border-left: 4px solid var(--amber);
}

.hero-stat.wide {
  grid-column: 1 / -1;
  min-height: 96px;
  border-left-color: var(--amber);
}

.stat-value {
  color: var(--logo-blue-dark);
  font-size: 1.48rem;
  font-weight: 850;
  line-height: 1.1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 76px 0;
}

.section-light {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .section-light {
  background: rgba(14, 10, 77, 0.72);
}

.section-header {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-header p,
.copy-block p,
.team-layout > div > p,
.contact-grid > div > p {
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
}

.copy-block p:last-child {
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.reference-card,
.contact-card,
.legal-card,
.team-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(14, 10, 77, 0.08);
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 22px;
}

.service-card p,
.reference-card p {
  color: var(--muted);
  font-size: 1rem;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.92rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.team-layout {
  display: block;
}

.team-layout > div:first-child {
  max-width: 680px;
  margin-bottom: 34px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.team-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100%;
  padding: 22px;
  border-top: 4px solid var(--logo-gray);
}

.team-card-open {
  border-top-color: var(--amber);
}

.team-avatar {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--logo-blue-dark);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.team-role {
  margin-bottom: 4px;
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 800;
}

.team-diploma {
  margin-bottom: 6px;
  color: var(--logo-blue-dark);
  font-size: 0.9rem;
  font-weight: 750;
}

.team-card p:not(.team-role):not(.team-diploma) {
  margin: 0;
  color: var(--muted);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reference-card {
  padding: 22px;
}

.reference-card span {
  display: inline-flex;
  margin-top: 4px;
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-section {
  background: var(--logo-blue-dark);
  color: var(--white);
}

html[data-theme="dark"] .contact-section {
  background: var(--dark-navy);
}

.contact-section h2,
.contact-section .section-kicker {
  color: var(--white);
}

.contact-section .section-kicker {
  opacity: 0.78;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: 44px;
  align-items: start;
}

.contact-grid > div > p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-card {
  display: grid;
  gap: 6px;
  padding: 24px;
  color: var(--ink);
  font-style: normal;
}

.contact-card strong {
  margin-bottom: 8px;
  color: var(--logo-blue-dark);
}

.contact-card a {
  width: fit-content;
  color: var(--logo-blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a,
.back-to-top {
  color: var(--logo-blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.back-to-top:hover {
  text-decoration: underline;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(75, 71, 198, 0.08), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(217, 214, 232, 0.7));
  padding: 76px 0 58px;
}

.page-hero h1 {
  margin-bottom: 18px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: 20px;
  align-items: start;
}

.legal-card {
  padding: 28px;
}

.legal-card h2 {
  margin-bottom: 26px;
}

.legal-card h3 {
  margin-top: 24px;
  margin-bottom: 6px;
  color: var(--logo-blue-dark);
}

.legal-card p {
  color: var(--muted);
}

.legal-note {
  margin-top: 28px;
  font-size: 0.92rem;
  font-weight: 800;
}

.legal-address {
  display: grid;
  gap: 6px;
  margin: 0 0 26px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  font-style: normal;
}

.legal-address strong {
  color: var(--logo-blue-dark);
}

.legal-address a {
  width: fit-content;
  color: var(--logo-blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.legal-address a:hover {
  text-decoration: underline;
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 64px 0;
}

.redirect-page .container {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.redirect-theme-toggle {
  margin-top: 24px;
}

.profile-points {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 750;
}

.profile-points li {
  position: relative;
  padding-left: 20px;
}

.profile-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(75, 71, 198, 0.08);
  color: var(--logo-blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 4px 10px;
}

.key-terms,
.reference-meta {
  margin-bottom: 12px;
  color: var(--logo-blue-dark) !important;
  font-size: 0.9rem !important;
  font-weight: 800;
}

.reference-meta {
  margin-bottom: 6px;
}

.reference-meta strong {
  color: var(--ink);
}

.competence-tags {
  color: var(--logo-blue-dark) !important;
  font-size: 0.88rem;
  font-weight: 850;
}

.text-link {
  width: fit-content;
  color: var(--logo-blue-dark);
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

/* Design refresh: polished palette, stronger hierarchy and softer surfaces. */
body {
  background:
    radial-gradient(circle at top left, rgba(75, 71, 198, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(217, 214, 232, 0.72), transparent 28rem),
    linear-gradient(180deg, var(--bg), var(--white) 55%, var(--bg));
  color: var(--ink);
  font-size: 16px;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(75, 71, 198, 0.34), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(217, 214, 232, 0.1), transparent 26rem),
    linear-gradient(180deg, var(--bg), var(--dark-navy) 58%, var(--dark-navy));
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline-color: rgba(75, 71, 198, 0.58);
}

.skip-link,
.language-switcher a[aria-current="true"],
.btn.primary {
  color: var(--white);
}

.header {
  border-bottom-color: rgba(26, 17, 119, 0.1);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 30px rgba(14, 10, 77, 0.06);
}

html[data-theme="dark"] .header {
  border-bottom-color: rgba(217, 214, 232, 0.12);
  background: rgba(14, 10, 77, 0.78);
}

.logo-image {
  width: 132px;
}

.nav a,
.language-switcher a,
.theme-toggle,
.nav-toggle,
.btn {
  border-radius: 999px;
}

.nav a:hover,
.language-switcher a:hover,
.theme-toggle:hover,
.btn.ghost:hover {
  border-color: rgba(75, 71, 198, 0.34);
  background: rgba(75, 71, 198, 0.1);
}

.language-switcher a[aria-current="true"] {
  border-color: var(--primary-indigo);
  background: var(--primary-indigo);
}

html[data-theme="dark"] .language-switcher a[aria-current="true"],
html[data-theme="dark"] .btn.primary {
  color: var(--dark-navy);
}

.theme-toggle-icon {
  background: var(--primary-indigo);
}

html[data-theme="dark"] .theme-toggle-icon {
  background: var(--light-lavender);
  box-shadow: 0 0 0 3px rgba(217, 214, 232, 0.18);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(75, 71, 198, 0.14), transparent 48%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(217, 214, 232, 0.7));
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  right: max(-120px, -8vw);
  top: -150px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: rgba(75, 71, 198, 0.16);
  filter: blur(2px);
  pointer-events: none;
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero {
  background:
    linear-gradient(135deg, rgba(75, 71, 198, 0.3), transparent 48%),
    linear-gradient(90deg, rgba(14, 10, 77, 0.98), rgba(26, 17, 119, 0.8));
}

.hero-grid,
.page-hero .container {
  position: relative;
  z-index: 1;
}

h1 {
  max-width: 820px;
  letter-spacing: -0.045em;
}

h2 {
  letter-spacing: -0.03em;
}

.eyebrow,
.section-kicker,
.card-label {
  color: var(--accent-blue);
  letter-spacing: 0.08em;
}

.hero-subtitle,
.section-header p,
.copy-block p,
.team-layout > div > p,
.contact-grid > div > p,
.service-card p,
.reference-card p,
.team-card p:not(.team-role):not(.team-diploma),
.legal-card p {
  color: var(--muted);
  font-size: 1rem;
}

.btn {
  min-height: 48px;
  padding: 11px 20px;
  box-shadow: 0 8px 22px rgba(14, 10, 77, 0.08);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary-indigo), var(--accent-blue));
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--dark-navy), var(--primary-indigo));
}

html[data-theme="dark"] .btn.primary:hover {
  background: var(--white);
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.hero-panel,
.service-card,
.reference-card,
.contact-card,
.legal-card,
.team-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 16px rgba(14, 10, 77, 0.06);
}

.hero-panel {
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .reference-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .legal-card,
html[data-theme="dark"] .team-card {
  background: rgba(21, 16, 91, 0.84);
}

.team-card-open {
  background: linear-gradient(180deg, rgba(217, 214, 232, 0.5), rgba(255, 255, 255, 0.86));
}

html[data-theme="dark"] .team-card-open {
  background: rgba(75, 71, 198, 0.24);
}

.service-card,
.reference-card,
.team-card,
.contact-card,
.legal-card,
.hero-panel {
  transition: transform var(--fast), box-shadow var(--fast), border-color var(--fast);
}

.service-card:hover,
.reference-card:hover,
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 71, 198, 0.34);
  box-shadow: var(--shadow);
}

.hero-stat,
.legal-address {
  background: linear-gradient(180deg, rgba(217, 214, 232, 0.72), rgba(255, 255, 255, 0.64));
}

html[data-theme="dark"] .hero-stat,
html[data-theme="dark"] .legal-address {
  background: rgba(75, 71, 198, 0.22);
}

.section-light {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .section-light {
  background: rgba(14, 10, 77, 0.52);
}

.team-avatar {
  background: linear-gradient(135deg, var(--light-lavender), var(--white));
  box-shadow: inset 0 0 0 1px rgba(26, 17, 119, 0.08);
}

html[data-theme="dark"] .team-avatar {
  background: rgba(217, 214, 232, 0.12);
}

.contact-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(217, 214, 232, 0.18), transparent 24rem),
    linear-gradient(135deg, var(--dark-navy), var(--primary-indigo));
  padding: 92px 0;
}

.contact-grid > div > p {
  color: rgba(255, 255, 255, 0.78);
}

.footer {
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .footer {
  background: rgba(14, 10, 77, 0.82);
}

.redirect-page .container {
  justify-items: center;
  text-align: center;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] .redirect-page .container {
  background: rgba(21, 16, 91, 0.78);
}

/* Final readability and rhythm refinements from backlog 6. */
body {
  font-size: 17px;
  line-height: 1.65;
}

.logo-image {
  width: 145px;
}

.nav {
  gap: 8px;
}

.nav a {
  font-size: 1rem;
  padding-inline: 16px;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary-indigo);
  background: rgba(75, 71, 198, 0.14);
}

.hero-subtitle {
  color: color-mix(in srgb, var(--dark-navy) 82%, var(--accent-blue));
  font-size: clamp(1.12rem, 1vw + 0.9rem, 1.28rem);
  line-height: 1.6;
}

html[data-theme="dark"] .hero-subtitle {
  color: var(--light-lavender);
}

html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .nav a:focus-visible {
  color: var(--light-lavender);
}

.section-header p,
.copy-block p,
.team-layout > div > p,
.service-card p,
.reference-card p,
.team-card p:not(.team-role):not(.team-diploma),
.legal-card p {
  font-size: 1.04rem;
  line-height: 1.65;
}

.service-card li {
  font-size: 0.98rem;
  line-height: 1.55;
}

.service-card,
.reference-card,
.team-card {
  padding: 24px;
}

.reference-card h3 {
  margin-bottom: 12px;
}

.reference-card .tag-list {
  margin: 0 0 16px;
}

.reference-card > p:not(.tag-list):not(.reference-meta) {
  margin-bottom: 16px;
}

.reference-meta {
  margin: 0 0 7px;
  line-height: 1.5;
}

.reference-meta + .reference-meta {
  margin-top: 2px;
}

.reference-customer {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 11px;
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: rgba(248, 183, 37, 0.12);
}

.reference-customer strong {
  color: var(--logo-blue-dark);
}

.contact-grid > div > p {
  font-size: 1.08rem;
  line-height: 1.68;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .hero-grid,
  .split-layout,
  .team-layout,
  .contact-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .logo-image {
    width: 128px;
  }

  .theme-toggle {
    min-width: 42px;
    width: 42px;
    height: 34px;
    padding: 0;
  }

  .theme-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero {
    padding: 56px 0 52px;
  }

  .section {
    padding: 56px 0;
  }

  h1 {
    font-size: 2.08rem;
  }

  h2 {
    font-size: 1.62rem;
  }

  .hero-panel,
  .services-grid,
  .team-grid,
  .references-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .redirect-page .container {
    padding: 30px 20px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 12px;
  }

  .language-switcher {
    gap: 4px;
  }

  .logo-image {
    width: 96px;
  }

  .language-switcher a {
    min-width: 32px;
    height: 34px;
    font-size: 0.76rem;
  }

  .theme-toggle {
    min-width: 42px;
    width: 42px;
    height: 34px;
    padding: 0;
  }

  .theme-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
