@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap");

:root {
  --color-primary: #064a7a;
  --color-text: #0f1d2b;
  --color-background: #ffffff;
  --color-panel: #e8f0f5;
  --font-size-body: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --font-size-footer: 0.875rem;
  --line-height-body: 1.85;
  --line-height-title: 0.9;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  color: var(--color-text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  transform: translateZ(0);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-content {
  flex: 1 0 auto;
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, var(--space-xl)) clamp(1.25rem, 7vw, 8rem)
    clamp(4rem, 10vw, 10rem);
}

.site-header {
  width: 100%;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 7vw, 8rem);
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo-link {
  display: block;
  width: min(100%, 28rem);
}

.header-logo-link img {
  width: 100%;
  margin: 0 auto;
}

#audio-container {
  display: grid;
  gap: clamp(var(--space-2xl), 8vw, 8rem);
}

.audio-item {
  position: relative;
  max-width: min(100%, 70rem);
  padding-block: clamp(var(--space-md), 2vw, var(--space-xl));
}

.audio-item:nth-child(odd) {
  margin-right: auto;
}

.audio-item:nth-child(even) {
  margin-left: auto;
}

.audio-item::before {
  content: "";
  position: absolute;
  inset: -1rem -4vw;
  z-index: -1;
  pointer-events: none;
}

.audio-item:nth-child(odd)::before {
  background: linear-gradient(
    90deg,
    rgba(232, 240, 245, 0.72) 0%,
    rgba(232, 240, 245, 0) 75%
  );
}

.audio-item:nth-child(even)::before {
  background: linear-gradient(
    270deg,
    rgba(232, 240, 245, 0.72) 0%,
    rgba(232, 240, 245, 0) 75%
  );
}

.audio-item h3 {
  margin: 0 0 clamp(var(--space-sm), 1.8vw, var(--space-lg));
  color: var(--color-primary);
  font-size: clamp(2rem, 5.6vw, 5.25rem);
  font-weight: 800;
  line-height: var(--line-height-title);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.audio-item:first-child h3 {
  font-size: clamp(3rem, 10vw, 9rem);
}

.audio-item:nth-child(even) h3 {
  text-align: right;
}

audio {
  display: block;
  width: min(100%, 34rem);
  margin: 0 0 clamp(var(--space-md), 2.2vw, 1.75rem);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.audio-item:nth-child(even) audio {
  margin-left: auto;
}

.description {
  max-width: 60ch;
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  text-align: justify;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.audio-item:nth-child(even) .description {
  margin-left: auto;
}

.site-footer {
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: var(--font-size-footer);
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 7vw, 8rem);
}

.partner-logos {
  background: #ffffff;
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1.25rem, 7vw, 8rem)
    clamp(1.25rem, 3vw, 2rem);
}

.footer-logos {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}

.footer-logo {
  width: min(100%, 18rem);
  padding: 0;
  background: transparent;
  border-radius: 0;
  object-fit: contain;
}

.site-footer p {
  max-width: 1600px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: left;
}

.site-footer a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

a:focus-visible,
audio:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

@media (hover: hover) {
  .header-logo-link img:hover,
  .footer-logo:hover {
    transform: scale(1.015) translateY(-2px);
    filter: saturate(1.05);
  }

  .site-footer a:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 1023px) {
  .site-header {
    padding-inline: clamp(var(--space-md), 4vw, 2.25rem);
  }

  .header-logo-link {
    width: min(100%, 22rem);
  }

  .site-content {
    padding-inline: clamp(var(--space-md), 4vw, 2.25rem);
    padding-bottom: clamp(var(--space-2xl), 12vw, 6rem);
  }

  .audio-item {
    max-width: 100%;
  }

  .audio-item h3 {
    font-size: clamp(1.8rem, 8vw, 3.8rem);
  }

  .audio-item:first-child h3 {
    font-size: clamp(2.4rem, 12vw, 5.5rem);
  }

  .audio-item:nth-child(even) h3 {
    text-align: left;
  }

  .audio-item:nth-child(even) audio,
  .audio-item:nth-child(even) .description {
    margin-left: 0;
  }

  .audio-item::before {
    inset: -0.75rem -1rem;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: var(--space-md);
  }

  .header-logo-link {
    width: min(100%, 18rem);
  }

  .site-content {
    padding: var(--space-md) var(--space-md) 3.5rem;
  }

  .footer-logo {
    width: min(100%, 15rem);
  }

  #audio-container {
    gap: 2.5rem;
  }

  .audio-item::before {
    display: none;
  }

  .audio-item h3 {
    font-size: clamp(1.65rem, 10vw, 2.6rem);
    letter-spacing: -0.03em;
  }

  .audio-item:first-child h3 {
    font-size: clamp(2.2rem, 14vw, 3.8rem);
  }

  audio {
    width: 100%;
  }

  .description {
    text-align: left;
  }

  .site-footer p {
    text-align: center;
  }
}
