:root {
  color-scheme: light;
  --bg-start: #eef4f8;
  --bg-end: #f8efe9;
  --surface: rgba(255, 255, 255, 0.9);
  --text: #152033;
  --muted: #64748b;
  --line: rgba(21, 32, 51, 0.12);
  --shadow: 0 24px 58px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 14px 28px rgba(15, 23, 42, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(33, 155, 131, 0.12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(240, 160, 102, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-start), #f5f8fb 48%, var(--bg-end));
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.page {
  width: min(1080px, calc(100vw - 32px));
  margin: 18px auto 28px;
}

.page-header {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #1c2737;
}

.back-home-button {
  display: inline-grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 64px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(21, 32, 51, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 251, 0.92)),
    radial-gradient(circle at top left, rgba(33, 155, 131, 0.14), transparent 44%);
  box-shadow: var(--shadow-soft);
  color: #172136;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.back-home-button:hover,
.back-home-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(21, 32, 51, 0.2);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.back-home-button:focus-visible {
  outline: 3px solid rgba(33, 155, 131, 0.25);
  outline-offset: 3px;
}

.back-home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1f8b7b, #0f766e);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.22);
}

.back-home-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.back-home-text {
  color: #172136;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.15;
}

.back-home-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(21, 32, 51, 0.06);
  color: #0f766e;
  font-size: 1rem;
  font-weight: 900;
}

.cooperations {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  gap: 16px;
  align-items: start;
}

.coop-card {
  color: inherit;
}

.coop-card-featured {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.coop-card-featured:hover,
.coop-card-featured:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(21, 32, 51, 0.2);
  box-shadow: 0 30px 72px rgba(15, 23, 42, 0.14);
  outline: none;
}

.coop-media {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #e9edf2;
  aspect-ratio: 300 / 250;
}

.coop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coop-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-right: 8px;
}

.card-kicker {
  margin: 0;
  color: #697587;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.coop-copy h2 {
  margin: 0;
  max-width: 14.5ch;
  font-size: clamp(1.45rem, 2.2vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: #172136;
}

.coop-copy p {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1rem);
}

.coop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(21, 32, 51, 0.14);
  background: #fff;
  color: #172136;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.coop-card-featured:hover .coop-cta,
.coop-card-featured:focus-visible .coop-cta {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
}

.coop-card-featured:focus-visible {
  outline: 3px solid rgba(33, 155, 131, 0.28);
  outline-offset: 3px;
}

.coop-stack {
  display: grid;
  gap: 16px;
}

.coop-card-placeholder {
  min-height: 178px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 253, 0.94));
  border: 1px dashed rgba(21, 32, 51, 0.16);
  box-shadow: var(--shadow-soft);
  display: grid;
  align-content: start;
  gap: 10px;
}

.coop-card-placeholder h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #172136;
}

.coop-card-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.coop-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(21, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: #516072;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .page {
    width: min(100vw - 24px, 1240px);
    margin-top: 12px;
  }

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

  .coop-card-featured {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 16px;
  }

  .coop-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coop-copy {
    padding-right: 0;
  }

  .coop-copy h2 {
    max-width: none;
  }

  .back-home-button {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .coop-card-featured,
  .coop-stack {
    grid-template-columns: 1fr;
  }

  .coop-media {
    border-radius: 22px;
  }

  .coop-card-featured {
    gap: 14px;
    padding: 12px;
  }

  .coop-copy p,
  .coop-card-placeholder p {
    font-size: 0.94rem;
  }

  .coop-cta {
    width: 100%;
    min-height: 54px;
    font-size: 1rem;
  }

  .coop-stack {
    grid-template-columns: 1fr;
  }

  .coop-card-placeholder {
    min-height: auto;
  }

  .back-home-button {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-right: 12px;
  }

  .back-home-arrow {
    display: none;
  }
}
