#zasady-przy-stole {
  padding-block: var(--space-7);
}

#zasady-przy-stole .table-rules-page__group {
  display: grid;
  min-width: 0;
  gap: 0;
  margin-bottom: var(--space-8);
}

#zasady-przy-stole .table-rules-page__group > * {
  min-width: 0;
  margin: 0;
}

#zasady-przy-stole .table-rules-page__group > *:not(:first-child) {
  margin-top: -1px;
}

#zasady-przy-stole .cell h2,
#zasady-przy-stole .cell h3,
#zasady-przy-stole .cell p {
  overflow-wrap: anywhere;
}

#zasady-przy-stole .table-rules-page__hero {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

#zasady-przy-stole .table-rules-page__hero > *:not(:first-child),
#zasady-przy-stole .table-rules-page__principles > *:not(:first-child),
#zasady-przy-stole .table-rules-page__arrival > *:not(:first-child),
#zasady-przy-stole .table-rules-page__hand > *:not(:first-child),
#zasady-przy-stole .table-rules-page__conversation > *:not(:first-child),
#zasady-przy-stole .table-rules-page__privacy > *:not(:first-child),
#zasady-przy-stole .table-rules-page__restaurant > *:not(:first-child),
#zasady-przy-stole .table-rules-page__help > *:not(:first-child),
#zasady-przy-stole .table-rules-page__checklist > *:not(:first-child) {
  margin-top: -1px;
}

#zasady-przy-stole .table-rules-page__hero-copy {
  grid-column: 1;
  grid-row: 1;
}

#zasady-przy-stole .table-rules-page__hero-copy .lead {
  max-width: 52ch;
}

#zasady-przy-stole .table-rules-page__visit-status {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--space-4);
  background: var(--color-signal-yellow);
}

#zasady-przy-stole .table-rules-page__visit-status strong {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  line-height: var(--line-heading);
  letter-spacing: -0.035em;
}

#zasady-przy-stole .table-rules-page__visit-status p {
  max-width: 27ch;
  margin: 0;
}

#zasady-przy-stole .table-rules-page__anchor-link {
  display: inline-block;
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

#zasady-przy-stole .table-rules-page__principles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#zasady-przy-stole .table-rules-page__section-heading {
  grid-column: 1 / -1;
}

#zasady-przy-stole .table-rules-page__section-heading h2 {
  max-width: 44ch;
}

#zasady-przy-stole .table-rules-page__section-heading p {
  max-width: 54ch;
}

#zasady-przy-stole .table-rules-page__principle {
  min-height: 15rem;
}

#zasady-przy-stole .table-rules-page__principle h3,
#zasady-przy-stole .table-rules-page__principle p {
  max-width: 34ch;
}

#zasady-przy-stole .table-rules-page__principle--accent .cell__tag {
  background: var(--color-signal-yellow);
  padding: var(--space-1) var(--space-2);
}

#zasady-przy-stole .table-rules-page__arrival {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

#zasady-przy-stole .table-rules-page__arrival-heading {
  grid-column: 1;
}

#zasady-przy-stole .table-rules-page__arrival-heading h2,
#zasady-przy-stole .table-rules-page__arrival-heading p {
  max-width: 45ch;
}

#zasady-przy-stole .table-rules-page__ask-panel {
  display: flex;
  grid-column: 2;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-4);
  background: var(--color-signal-yellow);
}

#zasady-przy-stole .table-rules-page__ask-panel h3,
#zasady-przy-stole .table-rules-page__ask-panel p {
  max-width: 25ch;
  margin: 0;
}

#zasady-przy-stole .table-rules-page__arrival-steps {
  display: grid;
  grid-column: 1;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0;
}

#zasady-przy-stole .table-rules-page__arrival-steps > * {
  min-width: 0;
  margin: -1px 0 0;
}

#zasady-przy-stole .table-rules-page__arrival-steps > *:first-child {
  margin-top: -1px;
}

#zasady-przy-stole .table-rules-page__arrival-step h3,
#zasady-przy-stole .table-rules-page__arrival-step p,
#zasady-przy-stole .table-rules-page__arrival-final h3,
#zasady-przy-stole .table-rules-page__arrival-final p {
  max-width: 45ch;
}

#zasady-przy-stole .table-rules-page__arrival-media {
  display: grid;
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-width: 0;
}

#zasady-przy-stole .table-rules-page__arrival-media > * {
  min-width: 0;
  margin: 0;
}

#zasady-przy-stole .table-rules-page__arrival-media figcaption {
  margin-top: -1px;
}

#zasady-przy-stole .table-rules-page__arrival-media figcaption p {
  max-width: 32ch;
  margin-top: var(--space-2);
}

#zasady-przy-stole .table-rules-page__arrival-final {
  grid-column: 1 / -1;
}

#zasady-przy-stole .table-rules-page__hand {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

#zasady-przy-stole .table-rules-page__hand-heading {
  grid-column: 1 / -1;
}

#zasady-przy-stole .table-rules-page__hand-heading p {
  max-width: 50ch;
}

#zasady-przy-stole .table-rules-page__hand-main {
  grid-column: 1;
}

#zasady-przy-stole .table-rules-page__hand-main h3,
#zasady-przy-stole .table-rules-page__hand-main p {
  max-width: 42ch;
}

#zasady-przy-stole .table-rules-page__hand-side {
  display: grid;
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0;
}

#zasady-przy-stole .table-rules-page__hand-side > * {
  min-width: 0;
  margin: -1px 0 0;
}

#zasady-przy-stole .table-rules-page__hand-item h3,
#zasady-przy-stole .table-rules-page__hand-item p {
  max-width: 34ch;
}

#zasady-przy-stole .table-rules-page__conversation {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

#zasady-przy-stole .table-rules-page__conversation-heading,
#zasady-przy-stole .table-rules-page__support-panel {
  grid-column: 1 / -1;
}

#zasady-przy-stole .table-rules-page__language-card {
  grid-column: 1;
}

#zasady-przy-stole .table-rules-page__emotion-card {
  grid-column: 2;
}

#zasady-przy-stole .table-rules-page__language-card h3,
#zasady-przy-stole .table-rules-page__language-card p,
#zasady-przy-stole .table-rules-page__emotion-card h3,
#zasady-przy-stole .table-rules-page__emotion-card p {
  max-width: 44ch;
}

#zasady-przy-stole .table-rules-page__support-panel {
  background: var(--color-signal-yellow);
}

#zasady-przy-stole .table-rules-page__support-panel h3,
#zasady-przy-stole .table-rules-page__support-panel p {
  max-width: 56ch;
}

#zasady-przy-stole .table-rules-page__privacy {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

#zasady-przy-stole .table-rules-page__privacy-heading {
  grid-column: 1;
}

#zasady-przy-stole .table-rules-page__privacy-heading h2 {
  max-width: 42ch;
}

#zasady-przy-stole .table-rules-page__phone-card {
  grid-column: 1;
}

#zasady-przy-stole .table-rules-page__phone-card h3,
#zasady-przy-stole .table-rules-page__phone-card p,
#zasady-przy-stole .table-rules-page__after-card h3,
#zasady-przy-stole .table-rules-page__after-card p {
  max-width: 42ch;
}

#zasady-przy-stole .table-rules-page__privacy-media {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-width: 0;
}

#zasady-przy-stole .table-rules-page__privacy-media > * {
  min-width: 0;
  margin: 0;
}

#zasady-przy-stole .table-rules-page__privacy-media figcaption {
  margin-top: -1px;
}

#zasady-przy-stole .table-rules-page__privacy-media figcaption p {
  max-width: 30ch;
  margin-top: var(--space-2);
}

#zasady-przy-stole .table-rules-page__image-card {
  grid-column: 1;
}

#zasady-przy-stole .table-rules-page__image-card h3,
#zasady-przy-stole .table-rules-page__image-card p {
  max-width: 42ch;
}

#zasady-przy-stole .table-rules-page__after-card {
  grid-column: 2;
}

#zasady-przy-stole .table-rules-page__restaurant,
#zasady-przy-stole .table-rules-page__checklist-items,
#zasady-przy-stole .table-rules-page__help-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#zasady-przy-stole .table-rules-page__restaurant-heading,
#zasady-przy-stole .table-rules-page__checklist-heading,
#zasady-przy-stole .table-rules-page__checklist-close {
  grid-column: 1 / -1;
}

#zasady-przy-stole .table-rules-page__restaurant-heading h2,
#zasady-przy-stole .table-rules-page__restaurant-heading p {
  max-width: 54ch;
}

#zasady-przy-stole .table-rules-page__restaurant-card h3,
#zasady-przy-stole .table-rules-page__restaurant-card p {
  max-width: 31ch;
}

#zasady-przy-stole .table-rules-page__help {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

#zasady-przy-stole .table-rules-page__help-heading {
  grid-column: 1 / -1;
}

#zasady-przy-stole .table-rules-page__help-main {
  grid-column: 1;
}

#zasady-przy-stole .table-rules-page__help-main h3,
#zasady-przy-stole .table-rules-page__help-main p {
  max-width: 46ch;
}

#zasady-przy-stole .table-rules-page__help-side {
  grid-column: 2;
}

#zasady-przy-stole .table-rules-page__help-side h3,
#zasady-przy-stole .table-rules-page__help-side p {
  max-width: 28ch;
}

#zasady-przy-stole .table-rules-page__help-steps {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  gap: 0;
}

#zasady-przy-stole .table-rules-page__help-steps > * {
  min-width: 0;
  margin: -1px 0 0 -1px;
}

#zasady-przy-stole .table-rules-page__help-steps > *:first-child {
  margin-left: 0;
}

#zasady-przy-stole .table-rules-page__help-steps h3,
#zasady-przy-stole .table-rules-page__help-steps p {
  max-width: 22ch;
}

#zasady-przy-stole .table-rules-page__checklist {
  grid-template-columns: minmax(0, 1fr);
}

#zasady-przy-stole .table-rules-page__checklist-heading h2,
#zasady-przy-stole .table-rules-page__checklist-heading p {
  max-width: 46ch;
}

#zasady-przy-stole .table-rules-page__checklist-items {
  display: grid;
  min-width: 0;
  gap: 0;
}

#zasady-przy-stole .table-rules-page__checklist-items > * {
  min-width: 0;
  margin: -1px 0 0 -1px;
}

#zasady-przy-stole .table-rules-page__checklist-items > *:nth-child(3n + 1) {
  margin-left: 0;
}

#zasady-przy-stole .table-rules-page__checklist-items h3,
#zasady-przy-stole .table-rules-page__checklist-items p {
  max-width: 24ch;
}

#zasady-przy-stole .table-rules-page__checklist-close p {
  max-width: 52ch;
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-size: var(--text-lead);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
}

#zasady-przy-stole .table-rules-page__final {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 0;
}

#zasady-przy-stole .table-rules-page__final-cell {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  min-width: 0;
  gap: var(--space-5);
}

#zasady-przy-stole .table-rules-page__final-copy,
#zasady-przy-stole .table-rules-page__final-links {
  min-width: 0;
}

#zasady-przy-stole .table-rules-page__final-copy p {
  max-width: 52ch;
}

#zasady-przy-stole .table-rules-page__final-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: var(--space-3);
}

#zasady-przy-stole .table-rules-page__final-links > * {
  width: 100%;
  min-width: 0;
}

#zasady-przy-stole .table-rules-page__anchor-link:hover,
#zasady-przy-stole .table-rules-page__anchor-link:focus-visible {
  text-decoration-thickness: 2px;
}

#zasady-przy-stole .table-rules-page__final-links .button:hover,
#zasady-przy-stole .table-rules-page__final-links .button:focus-visible {
  background: var(--color-signal-yellow);
  color: var(--color-ink);
}

@media (max-width: 899px) {
  #zasady-przy-stole {
    padding-block: var(--space-6);
  }

  #zasady-przy-stole .table-rules-page__group {
    margin-bottom: var(--space-7);
  }

  #zasady-przy-stole .table-rules-page__hero,
  #zasady-przy-stole .table-rules-page__arrival,
  #zasady-przy-stole .table-rules-page__hand,
  #zasady-przy-stole .table-rules-page__privacy {
    grid-template-columns: minmax(0, 1fr);
  }

  #zasady-przy-stole .table-rules-page__hero-copy,
  #zasady-przy-stole .table-rules-page__visit-status,
  #zasady-przy-stole .table-rules-page__arrival-heading,
  #zasady-przy-stole .table-rules-page__ask-panel,
  #zasady-przy-stole .table-rules-page__arrival-steps,
  #zasady-przy-stole .table-rules-page__arrival-media,
  #zasady-przy-stole .table-rules-page__arrival-final,
  #zasady-przy-stole .table-rules-page__hand-heading,
  #zasady-przy-stole .table-rules-page__hand-main,
  #zasady-przy-stole .table-rules-page__hand-side,
  #zasady-przy-stole .table-rules-page__privacy-heading,
  #zasady-przy-stole .table-rules-page__phone-card,
  #zasady-przy-stole .table-rules-page__privacy-media,
  #zasady-przy-stole .table-rules-page__image-card,
  #zasady-przy-stole .table-rules-page__after-card {
    grid-column: 1;
    grid-row: auto;
  }

  #zasady-przy-stole .table-rules-page__hero-copy {
    order: 2;
  }

  #zasady-przy-stole .table-rules-page__visit-status {
    order: 1;
  }

  #zasady-przy-stole .table-rules-page__arrival-heading { order: 2; }
  #zasady-przy-stole .table-rules-page__ask-panel { order: 1; }
  #zasady-przy-stole .table-rules-page__arrival-steps { order: 3; }
  #zasady-przy-stole .table-rules-page__arrival-media { order: 4; }
  #zasady-przy-stole .table-rules-page__arrival-final { order: 5; }

  #zasady-przy-stole .table-rules-page__privacy-heading { order: 1; }
  #zasady-przy-stole .table-rules-page__image-card { order: 2; }
  #zasady-przy-stole .table-rules-page__privacy-media { order: 3; }
  #zasady-przy-stole .table-rules-page__phone-card { order: 4; }
  #zasady-przy-stole .table-rules-page__after-card { order: 5; }

  #zasady-przy-stole .table-rules-page__privacy-media {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 839px) {
  #zasady-przy-stole .table-rules-page__restaurant,
  #zasady-przy-stole .table-rules-page__checklist-items {
    grid-template-columns: minmax(0, 1fr);
  }

  #zasady-przy-stole .table-rules-page__checklist-items > *,
  #zasady-przy-stole .table-rules-page__checklist-items > *:nth-child(3n + 1) {
    margin-left: 0;
  }
}

@media (max-width: 819px) {
  #zasady-przy-stole .table-rules-page__hand {
    grid-template-columns: minmax(0, 1fr);
  }

  #zasady-przy-stole .table-rules-page__hand-heading,
  #zasady-przy-stole .table-rules-page__hand-main,
  #zasady-przy-stole .table-rules-page__hand-side {
    grid-column: 1;
  }
}

@media (max-width: 779px) {
  #zasady-przy-stole .table-rules-page__conversation,
  #zasady-przy-stole .table-rules-page__help {
    grid-template-columns: minmax(0, 1fr);
  }

  #zasady-przy-stole .table-rules-page__conversation-heading,
  #zasady-przy-stole .table-rules-page__language-card,
  #zasady-przy-stole .table-rules-page__emotion-card,
  #zasady-przy-stole .table-rules-page__support-panel,
  #zasady-przy-stole .table-rules-page__help-heading,
  #zasady-przy-stole .table-rules-page__help-main,
  #zasady-przy-stole .table-rules-page__help-side,
  #zasady-przy-stole .table-rules-page__help-steps {
    grid-column: 1;
  }

  #zasady-przy-stole .table-rules-page__emotion-card { order: 2; }
  #zasady-przy-stole .table-rules-page__language-card { order: 3; }
  #zasady-przy-stole .table-rules-page__support-panel { order: 4; }

  #zasady-przy-stole .table-rules-page__help-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  #zasady-przy-stole .table-rules-page__help-steps > *,
  #zasady-przy-stole .table-rules-page__help-steps > *:first-child {
    margin-left: 0;
  }
}

@media (max-width: 759px) {
  #zasady-przy-stole .table-rules-page__principles {
    grid-template-columns: minmax(0, 1fr);
  }

  #zasady-przy-stole .table-rules-page__section-heading {
    grid-column: 1;
  }

  #zasady-przy-stole .table-rules-page__final-cell {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
}

@media (max-width: 599px) {
  #zasady-przy-stole .table-rules-page__group {
    margin-bottom: var(--space-6);
  }

  #zasady-przy-stole .table-rules-page__hero-copy .display-title {
    font-size: clamp(2.5rem, 12vw, 4.25rem);
  }

  #zasady-przy-stole .table-rules-page__hero-copy .lead {
    max-width: 34ch;
    font-size: clamp(1.125rem, 4.8vw, 1.25rem);
  }

  #zasady-przy-stole .table-rules-page__final-links {
    grid-template-columns: minmax(0, 1fr);
  }
}
