/* ─── Base ───────────────────────────────────────────────────────────────────── */

.cs-page {
  background: var(--bg);
  color: var(--color);
  min-height: 100vh;
  padding-bottom: 130px;
  position: relative;
  overflow-x: clip;
  padding-inline: 95px;
}

.cs-page > div {
  position: relative;
  z-index: 1;
}

.cs-page::after {
  content: '';
  position: absolute;
  width: 3128px;
  height: 1027px;
  border-radius: 3128px;
  opacity: 0.4;
  background: #A7DDDF;
  filter: blur(250px);
  /* z-index: -1; */
  pointer-events: none;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

@media (prefers-color-scheme: dark) {
  .cs-page::after {
    background: #4B67AF;
  }
}

/* ─── Fixed back link ────────────────────────────────────────────────────────── */

.cs-back {
  position: fixed;
  left: 16px;
  top: 50%;
  font-family: var(--font-manrope);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 110%;
  color: var(--color);
  text-decoration: underline solid 4%;
  text-decoration-skip-ink: auto;
  text-underline-offset: 12%;
  text-underline-position: from-font;
  z-index: 100;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cs-back__icon {
  position: absolute;
  top: 50%;
  left: 77%;
  width: 131px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.cs-back__icon img {
  display: block;
  width: 100%;
}

.cs-back:hover { opacity: 1; }

/* ─── Hero / Title ───────────────────────────────────────────────────────────── */

.cs-hero {
  padding: 130px 0 32px;
  max-width: 1144px;
  margin-inline: auto;
}

.cs-title {
  margin-bottom: 0;
}

.cs-title--serif {
  font-family: var(--font-abhaya);
  font-size: 76px;
  font-weight: 400;
  line-height: 90%;
}

.cs-title--bold {
  font-family: var(--font-manrope);
  font-size: 60px;
  font-weight: 500;
  line-height: 90%;
}

.cs-title--sans {
  font-family: var(--font-manrope);
  font-size: 60px;
  font-weight: 500;
  line-height: 90%;
}

@media (max-width: 768px) {
  .cs-title--serif {
    font-size: 55px;
  }

  .cs-title--bold,
  .cs-title--sans {
    font-size: 46px;
  }

  .cs-body--grupa-time .cs-hero,
  .cs-body--ekosystem .cs-hero {
    padding-bottom: 0;
  }
}

@media (max-width: 400px) {
  .cs-title--serif {
    font-size: 59px;
  }

  .cs-title--bold,
  .cs-title--sans {
    font-size: 43px;
  }
}

/* ─── Two-column content ─────────────────────────────────────────────────────── */

.cs-content {
  max-width: 1144px;
  display: flex;
  margin-inline: auto;
  gap: 16px;
  align-items: center;
}

.cs-content--wide {
  grid-template-columns: 1fr 2fr;
}

.cs-text {
  font-family: var(--font-work-sans);
  font-size: var(--fs-body);
  font-style: normal;
  font-weight: 400;
  line-height: 135%;
  color: var(--color);
}

.cs-text p + p {
  margin-top: 16px;
}

/* ─── Bullet list with separators ───────────────────────────────────────────── */

.cs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.cs-list--intro {
  width: 100%;
  align-items: flex-end;
}

.cs-list--intro li {
  max-width: 445px;
}

.cs-list--stats {
  padding-left: 32px;
}

.cs-body--grupa-time .cs-list--stats {
  max-width: 477px;
}

.cs-list li {
  font-family: var(--font-work-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 135%;
  color: var(--color);
  padding: 16px 0;
  border-bottom: 1px solid var(--color);
  display: flex;
  gap: 8px;
}

.cs-list li::before {
  content: "•";
  flex-shrink: 0;
  color: var(--color);
}

/* ─── Image placeholder ──────────────────────────────────────────────────────── */

.cs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-img--tall { min-height: 560px; }
.cs-img--phones {
  max-width: 430px;
  flex-shrink: 0;
}

/* ─── Full-width text block ──────────────────────────────────────────────────── */

.cs-wide-text {
  padding: 32px 0 57px;
  max-width: 1144px;
  margin-inline: auto;
}

.cs-wide-text p {
  max-width: 877px;
  margin-left: auto;
}

.cs-body--ekosystem .cs-wide-text,
.cs-body--grupa-time .cs-wide-text {
  justify-content: flex-end;
}

@media (max-width: 991px) {
  .cs-hero {
    padding: 96px 0 32px;
  }

  .cs-content {
    flex-direction: column;
  }

  .cs-list--intro {
    align-items: center;
    margin-top: 16px;
  }

  .cs-list--intro li {
    max-width: 100%;
  }

  .cs-list--stats {
    padding-left: 0;
  }

  .cs-wide-text {
    padding: 32px 0 16px;
  }
}

@media (max-width: 575px) {
  .cs-page {
    padding-inline: 16px;
  }

  .cs-back {
    position: fixed;
    top: auto;
    bottom: 14px;
    z-index: 2;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
  }

  .cs-back__icon {
    top: -180%;
    transform: translate(-50%, -50%) rotate(270deg);
    z-index: 0;
    left: 50%;
  }

  .cs-back span {
    position: relative;
  }

  .cs-back::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100vw;
    height: 157px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #D6F2F0 48.08%, #D6F2F0 100%);
    z-index: -1;
    pointer-events: none;
  }
}

@media (max-width: 575px) and (prefers-color-scheme: dark) {
  .cs-back::after {
    background: linear-gradient(180deg, rgba(19, 26, 44, 0.00) 0%, #131A2C 48.08%, #1D2844 100%);
  }
}
