/* ==========================================================================
   GamepadManual — arkusz stylów
   Układ: mobile-first, siatka CSS, BEM
   ========================================================================== */

:root {
  /* Kolory */
  --color-ink: #171717;
  --color-paper: #ffffff;
  --color-line: #e5e7eb;
  --color-line-soft: #eeeff1;
  --color-vellum: #f3f3f3;
  --color-slate: #6f6f6f;
  --color-pewter: #5e5e5e;
  --color-ash: #a0a0a0;
  --color-carbon: #222222;
  --color-stone: #c7c7c7;
  --color-cream: #ffe9bf;
  --color-accent: #8a5a00;
  --color-accent-deep: #6d4700;

  /* Typografia */
  --font-sans:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mark:
    Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;

  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-subheading: 18px;

  /* Odstępy */
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;

  /* Układ */
  --page-max-width: 1200px;
  --page-gutter: 20px;
  --section-gap: 64px;
  --header-height: 66px;

  /* Promienie */
  --radius-sm: 8px;
  --radius-card: 20px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Cienie */
  --shadow-soft:
    rgba(207, 207, 207, 0.01) 0 132px 53px 0,
    rgba(207, 207, 207, 0.05) 0 74px 44px 0,
    rgba(207, 207, 207, 0.09) 0 33px 33px 0,
    rgba(207, 207, 207, 0.1) 0 8px 18px 0;
  --shadow-lift:
    rgba(0, 0, 0, 0.01) 0 128px 51px 0, rgba(0, 0, 0, 0.02) 0 72px 43px 0,
    rgba(0, 0, 0, 0.03) 0 32px 32px 0, rgba(0, 0, 0, 0.04) 0 8px 18px 0;
}

@media (min-width: 768px) {
  :root {
    --page-gutter: 32px;
    --section-gap: 80px;
    --header-height: 72px;
  }
}

/* --------------------------------------------------------------------------
   Reset i podstawy
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--color-stone);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--color-ink);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* --------------------------------------------------------------------------
   Kontener i typografia współdzielona
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section {
  padding-block: var(--section-gap);
}

.section--vellum {
  background-color: var(--color-vellum);
}

.section--cream {
  background-color: var(--color-cream);
}

.section--tight {
  padding-block: calc(var(--section-gap) * 0.75);
}

.section__head {
  max-width: 760px;
  margin-bottom: var(--space-40);
}

.section__title {
  font-size: clamp(28px, 5.2vw, 48px);
  line-height: 1.11;
  letter-spacing: -0.015em;
  font-weight: 400;
}

.section__lead {
  margin-top: var(--space-16);
  max-width: 62ch;
  color: var(--color-pewter);
  font-size: var(--text-subheading);
  line-height: 1.5;
}

/* Etykieta sekcji na cienkiej linii */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
  color: var(--color-slate);
  font-size: var(--text-body-sm);
  letter-spacing: 0.02em;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-line);
}

.eyebrow--center {
  justify-content: center;
}

.divider {
  height: 1px;
  border: 0;
  background-color: var(--color-line);
}

/* --------------------------------------------------------------------------
   Przyciski
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--text-body-sm);
  line-height: 1.43;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.btn--primary {
  background-color: var(--color-ink);
  color: var(--color-paper);
}

.btn--primary:hover {
  background-color: #000000;
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--color-line);
  color: var(--color-ink);
}

.btn--ghost:hover {
  background-color: var(--color-vellum);
  border-color: var(--color-stone);
}

.btn--wide {
  width: 100%;
}

.btn__icon {
  flex: none;
}

/* Odnośnik tekstowy w stylu typograficznym */
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-ink);
  font-size: var(--text-body-sm);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-stone);
}

.link:hover {
  text-decoration-color: var(--color-ink);
}

.link--accent {
  color: var(--color-accent);
}
.link--accent:hover {
  color: var(--color-accent-deep);
}

/* --------------------------------------------------------------------------
   Znaczniki i metadane
   -------------------------------------------------------------------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags__item {
  padding: 5px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-pewter);
  font-size: var(--text-caption);
  line-height: 1.5;
}

.tags__item--filled {
  background-color: var(--color-vellum);
  border-color: transparent;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--color-slate);
  font-size: var(--text-caption);
}

.meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   1. Nagłówek strony
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--color-paper);
}

.header--scrolled .header__bar {
  border-bottom-color: var(--color-line);
}

.header__notice {
  background-color: var(--color-cream);
  color: var(--color-ink);
}

.header__notice-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding-block: 7px;
  text-align: center;
  font-size: var(--text-caption);
  line-height: 1.5;
}

.header__notice-link {
  color: var(--color-accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.header__logo {
  font-family: var(--font-mark);
  font-size: 19px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.header__logo-accent {
  color: var(--color-accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__cta {
  display: none;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background-color: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.burger__line {
  display: block;
  height: 1px;
  background-color: var(--color-ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 5;
  padding: var(--space-8) var(--space-16) var(--space-16);
  background-color: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
}

.nav.is-open {
  display: block;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav__list > li + li {
  border-top: 1px solid var(--color-line-soft);
}

.nav__link {
  display: block;
  padding: 13px 2px;
  color: var(--color-ink);
  font-size: var(--text-body);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--color-accent);
}

.nav__cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-16);
}

@media (min-width: 1024px) {
  .header__bar {
    position: relative;
  }

  .burger {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }

  .nav {
    display: block;
    position: static;
    padding: 0;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .nav__list > li + li {
    border-top: 0;
  }

  .nav__link {
    padding: 4px 0;
    font-size: var(--text-body-sm);
  }

  .nav__cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--space-56) var(--space-64);
  border-bottom: 1px solid var(--color-line);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 45%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.93) 50%,
      rgba(255, 255, 255, 0.98) 100%
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0.5) 100%
    );
}

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-24);
}

.hero__eyebrow {
  color: var(--color-pewter);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 15ch;
  font-size: clamp(38px, 8.2vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.hero__title-accent {
  color: var(--color-accent);
}

.hero__lead {
  max-width: 54ch;
  color: var(--color-pewter);
  font-size: var(--text-subheading);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.hero__showcase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-16);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-line);
}

.hero__showcase-caption {
  width: 100%;
  color: var(--color-slate);
  font-size: var(--text-caption);
}

.hero__thumb {
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background-color: var(--color-paper);
}

@media (min-width: 768px) {
  .hero {
    padding-block: var(--space-80) var(--space-80);
  }
  .hero__thumb {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    max-width: 900px;
  }
  .hero__title {
    max-width: 16ch;
  }

  .hero__veil {
    background:
      linear-gradient(
        100deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.96) 38%,
        rgba(255, 255, 255, 0.8) 62%,
        rgba(255, 255, 255, 0.55) 100%
      ),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.75) 100%
      );
  }
}

/* --------------------------------------------------------------------------
   3. Rozszerzona prezentacja gry (featured)
   -------------------------------------------------------------------------- */

.feature__panel {
  display: grid;
  gap: var(--space-32);
  padding: var(--space-24);
  background-color: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.feature__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
}

.feature__icon {
  flex: none;
  width: 64px;
  height: 64px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
}

.feature__title {
  font-size: clamp(26px, 4.6vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 400;
}

.feature__dev {
  margin-top: 4px;
  color: var(--color-slate);
  font-size: var(--text-body-sm);
}

.feature__body {
  display: grid;
  gap: var(--space-16);
}

.feature__text {
  color: var(--color-pewter);
  line-height: 1.6;
}

.feature__quote {
  margin-top: var(--space-8);
  padding: var(--space-24);
  background-color: var(--color-vellum);
  border-radius: var(--radius-card);
  font-size: var(--text-subheading);
  line-height: 1.5;
}

.feature__quote-source {
  display: block;
  margin-top: var(--space-8);
  color: var(--color-slate);
  font-size: var(--text-caption);
}

.feature__specs {
  display: grid;
  gap: var(--space-16);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-line);
}

.feature__spec-label {
  color: var(--color-slate);
  font-size: var(--text-caption);
}

.feature__spec-value {
  margin-top: 2px;
  font-size: var(--text-body-sm);
}

.feature__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature__shot {
  width: 100%;
  aspect-ratio: 439 / 780;
  object-fit: cover;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background-color: var(--color-vellum);
}

.feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-line);
}

@media (min-width: 768px) {
  .feature__panel {
    padding: var(--space-40);
  }
  .feature__specs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: var(--space-48);
    padding: var(--space-48);
  }
  .feature__gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   4. Model redakcyjny
   -------------------------------------------------------------------------- */

.model__grid {
  display: grid;
  gap: var(--space-32);
}

.model__figure {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background-color: var(--color-paper);
}

.model__img {
  width: 100%;
  aspect-ratio: 1100 / 440;
  object-fit: cover;
}

.model__caption {
  padding: 12px var(--space-16);
  color: var(--color-slate);
  font-size: var(--text-caption);
  background-color: var(--color-paper);
}

.model__text {
  display: grid;
  gap: var(--space-16);
  color: var(--color-pewter);
  line-height: 1.6;
}

.model__pillars {
  display: grid;
  gap: var(--space-16);
  margin-top: var(--space-40);
}

.model__pillar {
  padding: var(--space-24);
  background-color: var(--color-paper);
  border-radius: var(--radius-card);
}

.model__pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-16);
  border-radius: var(--radius-pill);
  background-color: var(--color-vellum);
  color: var(--color-carbon);
}

.model__pillar-title {
  font-size: var(--text-subheading);
  line-height: 1.38;
  font-weight: 400;
}

.model__pillar-text {
  margin-top: var(--space-8);
  color: var(--color-slate);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.model__note {
  margin-top: var(--space-32);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-line);
  color: var(--color-pewter);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .model__pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .model__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-56);
  }
  .model__pillar {
    background-color: var(--color-paper);
  }
}

/* --------------------------------------------------------------------------
   5. Katalog gier — układ mieszany
   -------------------------------------------------------------------------- */

.catalog__row {
  display: grid;
  gap: var(--space-24);
  padding: var(--space-24);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
}

.catalog__row + .catalog__grid,
.catalog__grid + .catalog__row {
  margin-top: var(--space-24);
}

.catalog__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--color-vellum);
}

.catalog__shot {
  width: 100%;
  aspect-ratio: 390 / 560;
  object-fit: cover;
  object-position: 50% 22%;
}

.catalog__content {
  display: grid;
  align-content: start;
  gap: var(--space-16);
}

.catalog__name {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.catalog__dev {
  margin-top: 4px;
  color: var(--color-slate);
  font-size: var(--text-body-sm);
}

.catalog__text {
  color: var(--color-pewter);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.catalog__stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.catalog__grid {
  display: grid;
  gap: var(--space-24);
}

.card {
  display: grid;
  align-content: start;
  gap: var(--space-16);
  padding: var(--space-24);
  background-color: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
}

.card__media {
  margin: calc(var(--space-24) * -1) calc(var(--space-24) * -1) 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
  background-color: var(--color-vellum);
}

.card__shot {
  width: 100%;
  aspect-ratio: 900 / 470;
  object-fit: cover;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
}

.card__title {
  font-size: var(--text-subheading);
  line-height: 1.38;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.card__dev {
  margin-top: 2px;
  color: var(--color-slate);
  font-size: var(--text-caption);
}

.card__text {
  color: var(--color-pewter);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-line);
}

@media (min-width: 768px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .catalog__row {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    align-items: center;
    gap: var(--space-40);
    padding: var(--space-32);
  }
  .catalog__row--mirror .catalog__media {
    order: 2;
  }
  .catalog__shot {
    aspect-ratio: 390 / 480;
  }
}

/* --------------------------------------------------------------------------
   6–7. Recenzje rozszerzone — obraz obok tekstu
   -------------------------------------------------------------------------- */

.spotlight__grid {
  display: grid;
  gap: var(--space-32);
}

.spotlight__visual {
  display: grid;
  gap: 10px;
}

.spotlight__frame {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-vellum);
  box-shadow: var(--shadow-soft);
}

.spotlight__img {
  width: 100%;
  aspect-ratio: 900 / 506;
  object-fit: cover;
}

.spotlight__strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.spotlight__strip-img {
  width: 100%;
  aspect-ratio: 700 / 393;
  object-fit: cover;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background-color: var(--color-vellum);
}

.spotlight__content {
  display: grid;
  align-content: center;
  gap: var(--space-16);
}

.spotlight__title {
  font-size: clamp(26px, 4.4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 400;
}

.spotlight__dev {
  color: var(--color-slate);
  font-size: var(--text-body-sm);
}

.spotlight__text {
  color: var(--color-pewter);
  line-height: 1.6;
}

.spotlight__list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.spotlight__list-item {
  position: relative;
  padding-left: 22px;
  color: var(--color-pewter);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.spotlight__list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background-color: var(--color-ash);
}

.spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

@media (min-width: 1024px) {
  .spotlight__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-56);
  }
  .spotlight--mirror .spotlight__visual {
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   8. FAQ
   -------------------------------------------------------------------------- */

.faq__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.faq__item {
  border-bottom: 1px solid var(--color-line);
}

.faq__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-16);
  width: 100%;
  padding: 22px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: var(--text-subheading);
  line-height: 1.38;
  cursor: pointer;
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__sign {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.faq__sign::before {
  width: 14px;
  height: 1px;
}
.faq__sign::after {
  width: 1px;
  height: 14px;
}

.faq__item--open .faq__sign::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__answer {
  display: none;
  padding-bottom: 22px;
  max-width: 68ch;
  color: var(--color-pewter);
  line-height: 1.6;
}

.faq__item--open .faq__answer {
  display: block;
}

.faq__answer p + p {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   9. Opinie
   -------------------------------------------------------------------------- */

.reviews__grid {
  display: grid;
  gap: var(--space-24);
}

.reviews__card {
  display: grid;
  align-content: space-between;
  gap: var(--space-24);
  padding: var(--space-24);
  background-color: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
}

.reviews__quote {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-subheading);
  line-height: 1.5;
}

.reviews__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-line);
}

.reviews__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: var(--color-vellum);
  color: var(--color-pewter);
  font-size: var(--text-body-sm);
  letter-spacing: 0.04em;
}

.reviews__name {
  display: block;
  font-size: var(--text-body-sm);
}

.reviews__role {
  display: block;
  margin-top: 1px;
  color: var(--color-slate);
  font-size: var(--text-caption);
}

@media (min-width: 768px) {
  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   10. Zapis na powiadomienia
   -------------------------------------------------------------------------- */

.signup__grid {
  display: grid;
  gap: var(--space-40);
}

.signup__title {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.11;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.signup__lead {
  margin-top: var(--space-16);
  max-width: 46ch;
  color: var(--color-pewter);
  font-size: var(--text-subheading);
  line-height: 1.5;
}

.signup__points {
  display: grid;
  gap: 10px;
  margin-top: var(--space-24);
}

.signup__point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-pewter);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.signup__point-icon {
  flex: none;
  margin-top: 3px;
  color: var(--color-accent-deep);
}

.form {
  display: grid;
  gap: var(--space-16);
  padding: var(--space-24);
  background-color: var(--color-paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.form__row {
  display: grid;
  gap: 6px;
}

.form__label {
  color: var(--color-pewter);
  font-size: var(--text-caption);
}

.form__input {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-size: var(--text-body-sm);
}

.form__input:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 1px;
  border-color: transparent;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-pewter);
  font-size: var(--text-caption);
  line-height: 1.55;
}

.form__checkbox {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--color-ink);
}

.form__note {
  color: var(--color-slate);
  font-size: var(--text-caption);
  line-height: 1.55;
}

.form__message {
  display: none;
  padding: 12px 14px;
  background-color: var(--color-cream);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-size: var(--text-body-sm);
  line-height: 1.5;
}

.form__message.is-visible {
  display: block;
}

@media (min-width: 1024px) {
  .signup__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: center;
    gap: var(--space-64);
  }
  .form {
    padding: var(--space-32);
  }
}

/* --------------------------------------------------------------------------
   11. Stopka
   -------------------------------------------------------------------------- */

.footer {
  padding-block: var(--space-56) var(--space-32);
  border-top: 1px solid var(--color-line);
  background-color: var(--color-paper);
}

.footer__grid {
  display: grid;
  gap: var(--space-40);
}

.footer__logo {
  display: inline-block;
  font-family: var(--font-mark);
  font-size: 19px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer__logo-accent {
  color: var(--color-accent);
}

.footer__about {
  margin-top: var(--space-16);
  max-width: 40ch;
  color: var(--color-slate);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.footer__col-title {
  margin-bottom: var(--space-16);
  color: var(--color-slate);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

.footer__list {
  display: grid;
  gap: 10px;
}

.footer__link {
  color: var(--color-ink);
  font-size: var(--text-body-sm);
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__contact-text {
  color: var(--color-slate);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.footer__mail {
  display: inline-block;
  margin-top: 6px;
  color: var(--color-ink);
  font-size: var(--text-body-sm);
}

.footer__bottom {
  display: grid;
  gap: var(--space-16);
  margin-top: var(--space-48);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-line);
  color: var(--color-slate);
  font-size: var(--text-caption);
  line-height: 1.6;
}

.footer__disclaimer {
  max-width: 92ch;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--space-32);
  }
  .footer__bottom {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* --------------------------------------------------------------------------
   Elementy pływające: powrót na górę, baner cookie
   -------------------------------------------------------------------------- */

.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--color-ink);
  color: var(--color-paper);
  border: 0;
  border-radius: var(--radius-pill);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  cursor: pointer;
}

.totop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  display: none;
  padding: var(--space-24);
  background-color: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
}

.cookie.is-visible {
  display: block;
}

.cookie__text {
  color: var(--color-pewter);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

@media (min-width: 768px) {
  .cookie {
    left: auto;
    right: 20px;
    bottom: 20px;
    max-width: 420px;
  }
  .totop {
    right: 20px;
    bottom: 20px;
  }
}

/* --------------------------------------------------------------------------
   Strony prawne
   -------------------------------------------------------------------------- */

.legal {
  padding-block: var(--space-48) var(--section-gap);
}

.legal__head {
  max-width: 820px;
  padding-bottom: var(--space-32);
  border-bottom: 1px solid var(--color-line);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-24);
  color: var(--color-pewter);
  font-size: var(--text-body-sm);
  text-decoration: none;
}

.legal__back:hover {
  color: var(--color-ink);
}

.legal__title {
  font-size: clamp(30px, 5.6vw, 48px);
  line-height: 1.11;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.legal__updated {
  margin-top: var(--space-16);
  color: var(--color-slate);
  font-size: var(--text-body-sm);
}

.legal__body {
  max-width: 76ch;
  margin-top: var(--space-40);
  display: grid;
  gap: var(--space-32);
}

.legal__block {
  display: grid;
  gap: 12px;
}

.legal__h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.legal__h3 {
  margin-top: var(--space-8);
  font-size: var(--text-subheading);
  line-height: 1.38;
  font-weight: 400;
}

.legal__text {
  color: var(--color-pewter);
  line-height: 1.65;
}

.legal__list {
  display: grid;
  gap: 8px;
}

.legal__list-item {
  position: relative;
  padding-left: 22px;
  color: var(--color-pewter);
  line-height: 1.65;
}

.legal__list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background-color: var(--color-ash);
}

.legal__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body-sm);
}

.legal__table th,
.legal__table td {
  padding: 14px var(--space-16);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.legal__table th {
  color: var(--color-slate);
  font-weight: 400;
  white-space: nowrap;
}

.legal__table tr:last-child th,
.legal__table tr:last-child td {
  border-bottom: 0;
}

.legal__table td {
  color: var(--color-pewter);
}

/* --------------------------------------------------------------------------
   Ograniczenie animacji
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
