/*
 * Real client case studies: /realizacje/, /realizacje/<slug>/ and the
 * featured-project teaser reused on the homepage and /strony-internetowe/.
 * Built on the site tokens (black, white, gray, red accent). No glow: depth
 * comes from neutral shadows on the device frames only.
 */

:root {
  --cs-line: rgba(255, 255, 255, 0.12);
  --cs-line-strong: rgba(255, 255, 255, 0.22);
  --cs-text-soft: #c8c8c5;
  --cs-muted: #9a9a96;
  --cs-device: #151515;
  --cs-device-edge: rgba(255, 255, 255, 0.16);
  --cs-screen-bg: #f3f5f7;
  --cs-section-y: clamp(72px, 10vw, 150px);
}

/* ---------- Devices: laptop + phone with real screenshots ---------- */

.cs-devices {
  position: relative;
  display: block;
  padding: 0 8% 7% 0;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
}

.cs-devices:focus-visible {
  outline: 2px solid var(--color-white-pure);
  outline-offset: 10px;
  border-radius: 12px;
}

.cs-laptop,
.cs-laptop__lid,
.cs-laptop__screen,
.cs-laptop__base,
.cs-phone,
.cs-phone__screen {
  display: block;
}

.cs-laptop {
  position: relative;
  z-index: 1;
}

.cs-laptop__lid {
  margin: 0 6.5%;
  padding: 2.1% 2.1% 2.9%;
  border: 1px solid var(--cs-device-edge);
  border-bottom: 0;
  border-radius: clamp(10px, 1.5vw, 20px) clamp(10px, 1.5vw, 20px) 0 0;
  background: var(--cs-device);
}

.cs-laptop__screen,
.cs-phone__screen,
.cs-browser__screen {
  position: relative;
  overflow: hidden;
  background: var(--cs-screen-bg);
}

.cs-laptop__screen {
  aspect-ratio: 16 / 10;
  border-radius: 3px;
}

.cs-laptop__screen img,
.cs-phone__screen img,
.cs-browser__screen img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cs-laptop__base {
  position: relative;
  height: clamp(7px, 1.1vw, 15px);
  border-radius: 0 0 clamp(8px, 1.3vw, 18px) clamp(8px, 1.3vw, 18px);
  background: linear-gradient(180deg, #3b3b3b 0%, #232323 45%, #121212 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

.cs-laptop__base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 13%;
  height: 42%;
  border-radius: 0 0 8px 8px;
  background: #0d0d0d;
  transform: translateX(-50%);
}

.cs-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 22%;
  padding: clamp(4px, 0.55vw, 8px);
  border: 1px solid var(--cs-device-edge);
  border-radius: clamp(18px, 2.6vw, 38px);
  background: var(--cs-device);
  box-shadow: -18px 26px 60px rgba(0, 0, 0, 0.6);
}

.cs-phone__screen {
  aspect-ratio: 390 / 844;
  border-radius: clamp(14px, 2.1vw, 31px);
}

.cs-phone__screen::after {
  content: "";
  position: absolute;
  top: 1.6%;
  left: 50%;
  z-index: 1;
  width: 30%;
  height: 2.9%;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
}

/* Standalone phone (mobile slide, decisions). Doubled specificity so the
   hero phone's mobile width (36%) below does not apply. */
.cs-phone.cs-phone--static {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .cs-devices {
    padding: 0 0 44% 0;
  }

  .cs-laptop__lid {
    margin: 0 5%;
  }

  .cs-phone {
    right: 5%;
    width: 36%;
  }
}

/* ---------- Browser frame for single desktop screenshots ---------- */

.cs-browser {
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: clamp(10px, 1.2vw, 16px);
  background: #111111;
}

.cs-browser__bar {
  display: flex;
  align-items: center;
  height: clamp(26px, 2.4vw, 36px);
  padding: 0 clamp(10px, 1.2vw, 16px);
  border-bottom: 1px solid var(--cs-line);
}

.cs-browser__dots {
  display: flex;
  gap: 6px;
}

.cs-browser__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3a;
}

.cs-browser__url {
  margin: 0 auto;
  padding: 2px 14px;
  border-radius: 999px;
  background: #1c1c1c;
  color: var(--cs-muted);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  transform: translateX(-11px);
}

.cs-browser__screen {
  aspect-ratio: 16 / 10;
}

/* ---------- Typography and layout primitives ---------- */

/* main is the curtain over the sticky footer injected by bootstrap.js. */
.cs-page main {
  overflow-x: clip;
  background: var(--color-black);
}

.cs-section {
  padding: var(--cs-section-y) 0;
  border-top: 1px solid var(--cs-line);
}

/* Doubled class: the global "h1:not(.hero-title)" rule would otherwise set
   a smaller size. 4.5rem keeps "Zakład Hydrauliczny" on one line on desktop. */
.cs-title.cs-title {
  max-width: none;
  margin: 0;
  color: var(--color-white-pure);
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

/* Line spans in case-study headings are plain text, not the global
   "h1 span:not(.hero-title-line)" gradient accent (doubled class beats it). */
.cs-title.cs-title span,
.cs-h2.cs-h2 span,
.cs-feature__name.cs-feature__name span {
  display: block;
  background: none;
  color: inherit;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.cs-h2 {
  margin: 0;
  color: var(--color-white-pure);
  font-size: clamp(1.85rem, 4.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}


.cs-lead {
  max-width: 34ch;
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  color: var(--cs-text-soft);
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.5;
}

.cs-text p,
.cs-text li {
  color: var(--cs-text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.cs-text p {
  max-width: 62ch;
  margin: 0 0 1.1em;
}

.cs-text strong {
  color: var(--color-white-pure);
  font-weight: 700;
}

.cs-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: start;
}

.cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 36px);
}

.cs-actions .btn {
  padding-inline: 24px;
}

.cs-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white-pure);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--cs-line-strong);
  padding-bottom: 4px;
  transition: border-color 180ms ease, color 180ms ease;
}

.cs-link:hover {
  color: var(--color-white-pure);
  border-color: var(--color-red);
}

.cs-link span[aria-hidden="true"] {
  color: var(--color-red);
}

@media (max-width: 860px) {
  .cs-split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Case study hero ---------- */

.cs-hero {
  padding: clamp(36px, 5vw, 64px) 0 var(--cs-section-y);
}

.cs-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 clamp(40px, 6vw, 80px);
  padding: 0;
  list-style: none;
  color: var(--cs-muted);
  font-size: 0.8rem;
}

.cs-breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: #555555;
}

.cs-breadcrumb a {
  color: var(--cs-muted);
  text-decoration: none;
}

.cs-breadcrumb a:hover {
  color: var(--color-white-pure);
}

.cs-breadcrumb [aria-current="page"] {
  color: var(--cs-text-soft);
}

.cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.cs-meta {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--cs-line);
}

.cs-meta div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--cs-line);
}

.cs-meta dt {
  color: var(--cs-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.cs-meta dd {
  margin: 0;
  color: var(--color-white-pure);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Stacked full-width buttons: their height does not depend on whether the
   web font has loaded, so the devices below never shift (CLS). */
.cs-hero__grid .cs-actions {
  flex-direction: column;
  align-items: stretch;
}

.cs-hero__devices {
  max-width: 1180px;
  margin-inline: auto;
}

@media (max-width: 860px) {
  .cs-hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- Story chapters ---------- */

.cs-chapter {
  padding: clamp(56px, 8vw, 120px) 0;
}

.cs-chapter--rule {
  border-top: 1px solid var(--cs-line);
}

.cs-h3 {
  margin: 0;
  color: var(--color-white-pure);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cs-body {
  max-width: 52ch;
  margin: 22px 0 0;
  color: var(--cs-text-soft);
  font-size: 1.04rem;
  line-height: 1.75;
}

.cs-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.cs-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white-pure);
  font-size: 0.95rem;
  font-weight: 600;
}

.cs-points li::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--color-red);
}

/* Rounded frame for crops; the image keeps its own aspect ratio. */
.cs-frame {
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: clamp(10px, 1.2vw, 16px);
  background: var(--cs-screen-bg);
}

.cs-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* O projekcie: the copy on top, the 1997 crop centred below it at about
   three quarters of the container (full container width on phones). */
.cs-about__copy {
  max-width: 820px;
}

.cs-about .cs-text {
  margin-top: 24px;
}

.cs-about__year {
  width: 76%;
  margin: clamp(48px, 6vw, 88px) auto 0;
}

.cs-motif {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: center;
}

.cs-motif__media {
  width: 100%;
  max-width: 520px;
  margin: 0;
  justify-self: end;
}

.cs-scene-frame {
  overflow: hidden;
  aspect-ratio: 1718 / 678;
  border: 1px solid var(--cs-line);
  border-radius: clamp(10px, 1.2vw, 16px);
  background: var(--cs-screen-bg);
}

.cs-scene-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile chapter: a desktop fragment with the phone version over its corner. */
.cs-mobile__copy {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.cs-mobile__visual {
  position: relative;
  padding: 0 20% 16% 0;
}

.cs-mobile__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 23%;
}

.cs-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: center;
}

.cs-contact__visual {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 40px);
}

.cs-contact__phone {
  width: 38%;
  max-width: 220px;
}

.cs-contact__form {
  width: 52%;
  max-width: 340px;
}

/* Closing: compact scope list, then the result in one row, then the CTA. */
.cs-closing {
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
}

.cs-closing__scope {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 2.3fr);
  gap: 16px clamp(24px, 4vw, 64px);
  align-items: start;
}

.cs-closing .cs-scope {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(16px, 2.4vw, 32px);
}

.cs-closing .cs-scope li {
  padding: 11px 0;
  font-size: 0.98rem;
}

.cs-closing__effect {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-top: clamp(44px, 5.5vw, 72px);
  padding-top: clamp(36px, 4.5vw, 56px);
  border-top: 1px solid var(--cs-line);
}

.cs-closing__effect .cs-actions {
  margin-top: 20px;
}

.cs-effect__name {
  max-width: none;
  margin: 0;
  color: var(--color-white-pure);
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.cs-effect__domain {
  margin: 12px 0 0;
  color: var(--color-white-pure);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cs-effect__text {
  max-width: 40ch;
  margin: 0;
  color: var(--cs-text-soft);
  font-size: 1.04rem;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .cs-motif,
  .cs-contact,
  .cs-closing__scope,
  .cs-closing__effect {
    grid-template-columns: 1fr;
  }

  .cs-closing .cs-scope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-about__year {
    width: 100%;
  }

  .cs-motif__media {
    justify-self: start;
  }

  .cs-contact__visual {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .cs-mobile__visual {
    padding: 0 0 56% 0;
  }

  .cs-mobile__phone {
    right: 6%;
    width: 42%;
  }

  .cs-contact__phone {
    width: 42%;
  }

  .cs-contact__form {
    width: 58%;
  }
}

/* ---------- Gallery slider ---------- */

.cs-gallery__top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}

.cs-gallery__intro {
  max-width: 640px;
}

.cs-gallery__intro .cs-body {
  margin-top: 20px;
}

.cs-gallery__controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cs-gallery__count {
  min-width: 4.5em;
  margin: 0;
  color: var(--cs-text-soft);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cs-gallery__count strong {
  color: var(--color-white-pure);
}

.cs-gallery__nav {
  display: flex;
  gap: 10px;
}

.cs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cs-gallery__btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--cs-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--color-white-pure);
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.cs-gallery__btn:hover:not(:disabled) {
  border-color: var(--color-white-pure);
  background: var(--color-white-pure);
  color: var(--color-black);
}

.cs-gallery__btn:focus-visible {
  outline: 2px solid var(--color-white-pure);
  outline-offset: 3px;
}

.cs-gallery__btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.cs-gallery__progress {
  position: relative;
  height: 1px;
  margin-bottom: clamp(22px, 3vw, 32px);
  background: var(--cs-line);
}

.cs-gallery__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  background: var(--color-white-pure);
  transition: width 320ms ease;
}

.cs-gallery__track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  cursor: grab;
}

.cs-gallery__track::-webkit-scrollbar {
  display: none;
}

.cs-gallery__track:focus-visible {
  outline: 2px solid var(--color-white-pure);
  outline-offset: 6px;
  border-radius: 12px;
}

.cs-gallery__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.cs-gallery__track.is-dragging img {
  pointer-events: none;
}

.cs-slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
}

.cs-slide__media {
  -webkit-user-drag: none;
}

.cs-slide__media img {
  -webkit-user-drag: none;
}

.cs-slide__label {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 18px 0 0;
  color: var(--color-white-pure);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cs-slide__label span {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--cs-muted);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
}

/* Main gallery: the next slide peeks in from the right. */
.cs-gallery__track--peek {
  grid-auto-columns: 86%;
}

.cs-gallery__after {
  margin: clamp(28px, 3vw, 40px) 0 0;
}

/* Mobile slide: three phones on one 16:10 stage. */
.cs-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 44px);
  align-content: center;
  aspect-ratio: 16 / 10;
  padding: 3% 15%;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: clamp(10px, 1.2vw, 16px);
  background: #0d0d0d;
}

.cs-phones .cs-phone {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.cs-phones .cs-phone:nth-child(2) {
  transform: translateY(5%);
}

@media (max-width: 640px) {
  .cs-gallery__track--peek {
    grid-auto-columns: 90%;
  }

  .cs-gallery__controls {
    width: 100%;
    justify-content: space-between;
  }

  /* Phones larger than the stage: two and a part of the third stay visible. */
  .cs-phones {
    grid-template-columns: repeat(3, 42%);
    aspect-ratio: 4 / 5;
    padding: 6% 0 6% 6%;
    gap: 5%;
  }

  .cs-phones .cs-phone:nth-child(2) {
    transform: translateY(4%);
  }
}

/* ---------- Scope ---------- */

.cs-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-scope li {
  padding: 15px 0;
  border-bottom: 1px solid var(--cs-line);
  color: var(--color-white-pure);
  font-size: 1.02rem;
  font-weight: 600;
}

/* ---------- Closing CTA ---------- */

.cs-cta {
  padding: var(--cs-section-y) 0;
  border-top: 1px solid var(--cs-line);
}

.cs-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}

.cs-cta__inner .cs-text p {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .cs-cta__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- Featured project (/realizacje/, homepage, service page) ---------- */

.cs-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.8fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.cs-feature__meta {
  margin: 0 0 18px;
  color: var(--cs-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cs-feature__name {
  margin: 0;
  color: var(--color-white-pure);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}


.cs-feature__desc {
  max-width: 44ch;
  margin: 20px 0 0;
  color: var(--cs-text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.cs-feature__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 30px;
}

@media (max-width: 960px) {
  .cs-feature {
    grid-template-columns: 1fr;
  }
}

/* /realizacje/ intro */
.cs-index-hero {
  padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 4vw, 56px);
}

/* First project shows up sooner after the /realizacje/ intro. */
.cs-section--feature {
  padding-top: clamp(44px, 5.5vw, 80px);
}

/* The device visual on /realizacje/ links to the case study: a small lift on hover
   (skipped when the visitor chose reduced motion). */
.cs-page .cs-feature .cs-laptop,
.cs-page .cs-feature .cs-phone {
  transition: transform 260ms ease;
}

html:not([data-motion="reduced"]) .cs-page .cs-feature .cs-devices:hover .cs-laptop,
html:not([data-motion="reduced"]) .cs-page .cs-feature .cs-devices:focus-visible .cs-laptop {
  transform: translateY(-4px);
}

html:not([data-motion="reduced"]) .cs-page .cs-feature .cs-devices:hover .cs-phone,
html:not([data-motion="reduced"]) .cs-page .cs-feature .cs-devices:focus-visible .cs-phone {
  transform: translateY(-8px);
}

.cs-index-hero .cs-lead {
  max-width: 52ch;
}

/* Reduced motion: the slider jumps instead of gliding. */
html[data-motion="reduced"] .cs-gallery__track {
  scroll-behavior: auto;
}

html[data-motion="reduced"] .cs-gallery__progress span {
  transition: none;
}

.cs-cta__more {
  margin-top: 30px;
}

/* Homepage teaser (#realizacje): heading row, large devices, links. Opaque like
   the other homepage sections, so the sticky footer stays hidden behind it. */
.cs-home {
  background: var(--color-black);
}

.cs-home__devices {
  max-width: 1120px;
  margin: clamp(12px, 3vw, 40px) auto 0;
}

.cs-home__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: clamp(36px, 5vw, 64px);
}

/* Buttons are inline-flex, so the space before the arrow collapses. */
.cs-actions .btn,
.cs-feature__links .btn,
.cs-home__links .btn {
  gap: 8px;
}
