:root {
  --navy: #082746;
  --navy-dark: #051a31;
  --blue: #00649c;
  --gold: #b18b4d;
  --gold-light: #d2ae6b;
  --ink: #102a43;
  --muted: #52606d;
  --surface: #f5f8fa;
  --white: #ffffff;
  --border: rgba(8, 39, 70, 0.14);
  --shadow: 0 18px 50px rgba(8, 39, 70, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.14;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 80px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 26px rgba(8, 39, 70, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 206px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav > a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav > a:hover {
  color: var(--gold);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 2px;
  padding: 6px 10px;
  color: #8b98a5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-button {
  padding: 0;
  color: #778594;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.lang-button.active {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: min(820px, 92vh);
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  padding-top: 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 28%, rgba(0, 100, 156, 0.09), transparent 25%),
    linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

.hero-copy {
  width: min(680px, calc(100% - 64px));
  margin-right: 0;
  padding-block: 90px;
  align-self: center;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.hero h1 {
  margin-bottom: 26px;
  color: var(--navy);
  font-size: clamp(2.65rem, 5.1vw, 5rem);
  letter-spacing: -0.045em;
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  color: var(--gold);
  font-weight: 750;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.6vw, 1.22rem);
}

.hero-visual {
  min-height: 580px;
  background:
    linear-gradient(90deg, #f8fafc 0%, rgba(248, 250, 252, 0) 22%),
    linear-gradient(180deg, rgba(8, 39, 70, 0.02), rgba(8, 39, 70, 0.2)),
    url("hero-lab.jpg") center / cover no-repeat;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(177, 139, 77, 0.24);
}

.button-primary:hover {
  background: #9d793f;
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--border);
}

.section {
  padding-block: 105px;
}

.pillars {
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2,
.contact-copy h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.035em;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.pillar-card {
  position: relative;
  min-height: 360px;
  padding: 38px 32px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(8, 39, 70, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(8, 39, 70, 0.07);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.pillar-card::after {
  content: "";
  position: absolute;
  inset: auto -35px -55px auto;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(177, 139, 77, 0.08);
  border-radius: 50%;
}

.card-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  color: var(--gold);
  background: var(--navy);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pillar-card h3 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 1.4rem;
}

.pillar-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 100, 156, 0.38), transparent 34%),
    radial-gradient(circle at 90% 95%, rgba(177, 139, 77, 0.19), transparent 28%),
    var(--navy);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle, var(--white) 1px, transparent 1px);
  background-size: 38px 38px;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 80px;
  align-items: start;
}

.contact-logo {
  width: 240px;
  height: auto;
  margin-bottom: 35px;
}

.contact-copy h2 {
  color: var(--white);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 42px;
  font-style: normal;
}

.contact-list a {
  display: flex;
  flex-direction: column;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-list a:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(210, 174, 107, 0.58);
}

.contact-list span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-list strong {
  color: var(--white);
  font-size: 1.02rem;
}

.form-card {
  padding: 38px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.form-card h3 {
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.form-card > p {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.66);
}

.form-card form {
  display: grid;
  gap: 9px;
}

.form-card label:not(.consent-row) {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 650;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card textarea {
  width: 100%;
  padding: 13px 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.form-card textarea {
  resize: vertical;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.form-card input:focus,
.form-card textarea:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-light);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block: 13px 6px;
  color: rgba(255, 255, 255, 0.69);
  font-size: 0.84rem;
}

.consent-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--gold);
}

.text-button {
  display: inline;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-row .text-button {
  color: var(--gold-light);
}

.submit-button {
  width: 100%;
  margin-top: 3px;
}

.form-note {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  text-align: center;
}

.form-note.success {
  color: #b8eccd;
}

.site-footer {
  padding-block: 28px;
  color: rgba(255, 255, 255, 0.55);
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.84rem;
}

.footer-links a,
.footer-links button {
  color: rgba(255, 255, 255, 0.63);
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--gold-light);
}

.cookie-banner {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 300;
  max-width: 1160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: auto;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(5, 26, 49, 0.24);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-actions .button {
  min-height: 42px;
  padding: 9px 15px;
  font-size: 0.84rem;
}

.privacy-dialog {
  width: min(820px, calc(100% - 28px));
  max-height: min(86vh, 850px);
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(5, 26, 49, 0.34);
}

.privacy-dialog::backdrop {
  background: rgba(5, 26, 49, 0.72);
  backdrop-filter: blur(5px);
}

.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: var(--white);
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--border);
}

.dialog-header .eyebrow {
  margin-bottom: 5px;
}

.dialog-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.65rem;
}

.dialog-close {
  cursor: pointer;
}

.dialog-header > .dialog-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
}

.dialog-content {
  padding: 28px;
  overflow-y: auto;
}

.dialog-content .updated {
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-note {
  padding: 14px 16px;
  color: #6c542e;
  background: #f8f0e2;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  font-size: 0.88rem;
}

.dialog-content section {
  padding-block: 12px;
}

.dialog-content h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.14rem;
}

.dialog-content section p {
  margin-bottom: 0;
  color: var(--muted);
}

.dialog-content a {
  color: var(--blue);
}

.dialog-footer {
  position: sticky;
  bottom: 0;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 80px 0 auto;
    display: grid;
    gap: 0;
    padding: 10px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 28px rgba(8, 39, 70, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-nav > a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--border);
  }

  .language-switcher {
    width: fit-content;
    margin-top: 15px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: min(100% - 40px, 720px);
    margin-inline: auto;
    padding-block: 75px 65px;
  }

  .hero-visual {
    min-height: 420px;
    background:
      linear-gradient(180deg, #f8fafc 0%, rgba(248, 250, 252, 0) 22%),
      linear-gradient(180deg, rgba(8, 39, 70, 0), rgba(8, 39, 70, 0.18)),
      url("hero-lab.jpg") center / cover no-repeat;
  }

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

  .pillar-card {
    min-height: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .contact-logo {
    width: 220px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    height: 72px;
  }

  .brand img {
    width: 180px;
  }

  .main-nav {
    top: 72px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-copy {
    width: min(100% - 28px, 720px);
    padding-block: 58px 50px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .hero-visual {
    min-height: 330px;
  }

  .section {
    padding-block: 76px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .pillar-card,
  .form-card {
    padding: 27px 22px;
    border-radius: 17px;
  }

  .contact-grid {
    gap: 42px;
  }

  .cookie-banner {
    inset: auto 10px 10px;
    display: block;
    padding: 18px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .dialog-header,
  .dialog-content,
  .dialog-footer {
    padding: 20px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
