:root {
  --header-start: #0d3159;
  --header-end: #092545;
  --header-text: #f6f9fc;
  --header-muted: #c5d5e3;
  --header-border: rgba(127, 198, 255, 0.28);
  --blue: #0d6fc2;
  --blue-dark: #095a9f;
  --focus: #1f8fff;
  --amber: #d98200;
  --page: #f6f8fa;
  --surface: #fff;
  --surface-soft: #eef3f7;
  --ink: #172533;
  --muted: #4e6172;
  --line: #d8e1e8;
  --max: 1200px;
  --reading: 70ch;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--blue-dark);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 0.5rem;
  transform: translateY(-200%);
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 56px;
  color: var(--header-text);
  border-bottom: 1px solid var(--header-border);
  background: linear-gradient(135deg, var(--header-start), var(--header-end));
  box-shadow: 0 8px 24px rgba(6, 24, 40, 0.2);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand span {
  color: #7fc6ff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a,
.menu-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.72rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--header-muted);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"],
.menu-button:hover {
  background: rgba(127, 198, 255, 0.13);
  color: #fff;
}

.nav .cartells-link {
  margin-left: 0.35rem;
  background: #0d6fc2;
  color: #fff;
  font-weight: 700;
}

.menu-button {
  display: none;
  cursor: pointer;
}

.language-list {
  display: flex;
  gap: 0.1rem;
  margin-left: 0.4rem;
  padding-left: 0.45rem;
  border-left: 1px solid var(--header-border);
}

.language-list a {
  padding-inline: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 61ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  border-color: #a9bdcc;
  color: var(--blue-dark);
}

.button-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.hero-mark {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-mark::before {
  width: min(32vw, 330px);
  aspect-ratio: 1;
  background: #e2edf5;
}

.hero-mark::after {
  width: min(20vw, 190px);
  aspect-ratio: 1;
  border: 24px solid #c6deef;
}

.mark-type {
  position: relative;
  z-index: 1;
  color: var(--header-end);
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.mark-type span {
  color: var(--blue);
}

.agenda-section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

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

.agenda-frame {
  padding: clamp(0.6rem, 2vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(14, 56, 86, 0.09);
}

.widget-status {
  margin: 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--amber);
  background: #fff8e8;
  color: #684700;
}

.widget-note {
  max-width: 70ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.widget-request {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.widget-request h2 {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
}

.widget-request p {
  max-width: 65ch;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 2.5rem 0;
  background: var(--header-end);
  color: var(--header-muted);
}

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

.site-footer a {
  color: #e4f1fa;
}

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

.legal-main {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.legal-header,
.legal-content {
  max-width: var(--reading);
}

.legal-header {
  margin-bottom: 3rem;
}

.legal-header h1 {
  max-width: none;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.draft-note {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--amber);
  background: #fff7e5;
  color: #604500;
}

.legal-nav {
  margin: 2rem 0 3rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.legal-nav ul {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-content section {
  margin: 0 0 3rem;
  scroll-margin-top: 80px;
}

.legal-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.legal-content h3 {
  margin-top: 2rem;
  font-size: 1.16rem;
}

.legal-content li + li {
  margin-top: 0.45rem;
}

.not-found {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 3rem 20px;
  text-align: center;
}

.not-found h1 {
  max-width: none;
}

@media (max-width: 760px) {
  .menu-button {
    display: inline-flex;
  }

  .js .nav {
    position: absolute;
    top: 56px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 0.7rem;
    border: 1px solid var(--header-border);
    border-radius: 0 0 10px 10px;
    background: var(--header-end);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  }

  .js .nav[data-open] {
    display: grid;
  }

  .nav .cartells-link {
    margin-left: 0;
  }

  .language-list {
    margin: 0.4rem 0 0;
    padding: 0.5rem 0 0;
    border-top: 1px solid var(--header-border);
    border-left: 0;
  }

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

  .hero-mark {
    min-height: 240px;
  }

  .hero-mark::before {
    width: 230px;
  }

  .hero-mark::after {
    width: 140px;
  }

  .widget-request,
  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-inner {
    display: grid;
  }
}

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

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