/* Vibersi — katalog polskich projektów zbudowanych z AI
   Styl: młodsza siostra akademiaautomatyzacji.com */

:root {
  --paper: #FAF8F4;
  --paper-2: #F4F1EA;
  --card: #FFFFFF;
  --ink: #141414;
  --ink-soft: #3D3A34;
  --muted: #6E6A61;
  --line: #E5E1D8;
  --line-strong: #D8D3C6;
  --accent: #E8590C;
  --accent-soft: #FBEADF;
  --accent-deep: #C94B08;
  --green: #2F9E44;
  --green-soft: #E3F3E6;
  --amber-soft: #FBF1D6;
  --amber-ink: #8A5A00;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20,20,20,.05), 0 6px 18px rgba(20,20,20,.07);
  --shadow-up: 0 2px 4px rgba(20,20,20,.06), 0 14px 34px rgba(20,20,20,.12);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo Black", "Inter", sans-serif;
  --font-hand: "Caveat", cursive;

  --wrap: 1000px;
  --gutter: 16px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(20,20,20,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,20,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

/* ---------- Nawigacja ---------- */

.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 14px;
}
.nav__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-decoration: none;
}
.nav__logo img { height: 34px; width: auto; }
.nav__tagline {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
  margin-right: 2px;
}
.nav__actions { display: flex; align-items: center; gap: 8px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--card);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
}
.btn--sm { padding: 7px 12px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Pasek sterowania listą ---------- */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 19;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}
.toolbar .wrap {
  display: flex;
  align-items: stretch;
  gap: 20px;
  height: 50px;
}

/* Sortowanie: jeden przełącznik dwustanowy */
.seg {
  align-self: center;
  display: inline-flex;
  padding: 3px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  flex: none;
}
.seg button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-soft);
  transition: background-color .12s ease, color .12s ease;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button:focus-visible { outline-offset: -2px; }

/* Kategorie: zakładki podkreślone na linii paska */
.tabs { display: flex; gap: 2px; flex: none; }
.tabs button {
  border: 0;
  background: transparent;
  padding: 0 10px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .12s ease, border-color .12s ease;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.tabs button:focus-visible { outline-offset: -3px; border-radius: 6px; }

.toolbar__count {
  align-self: center;
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Lista projektów ---------- */

.feed { list-style: none; margin: 0; padding: 0 0 8px; }

.row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 60px;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.row:last-child { border-bottom: 0; }
.row.is-new { animation: rowIn .5s ease both; }
@keyframes rowIn {
  from { background: var(--accent-soft); }
  to { background: transparent; }
}

.thumb {
  width: 150px;
  height: 92px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  display: block;
  flex: none;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.thumb.is-portrait img { object-fit: contain; object-position: center; }

.row__body { min-width: 0; }
.row__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.row__title a { text-decoration: none; }
.row__title a::after { content: ""; position: absolute; inset: 0; }
.row__title a:hover { color: var(--accent); }
.row__desc {
  margin: 4px 0 8px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
}
.row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
  color: var(--muted);
}
.row__meta .sep { color: var(--line-strong); }

/* ---------- Tagi ---------- */

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.3;
  background: var(--paper-2);
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.tag--tool { background: var(--card); border-color: var(--line-strong); color: var(--ink-soft); }
.tag--live { background: var(--green-soft); color: var(--green); }
.tag--beta { background: var(--amber-soft); color: var(--amber-ink); }
.tag--building { background: var(--accent-soft); color: var(--accent); }

/* ---------- Przycisk głosu ---------- */

.vote {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.vote__arrow {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid currentColor;
  margin-bottom: 3px;
}
.vote:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vote[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.vote.is-bumping { animation: bump .3s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.vote--wide {
  width: auto;
  height: 46px;
  flex-direction: row;
  gap: 8px;
  padding: 0 18px;
  font-size: 16px;
}
.vote--wide .vote__arrow { margin: 0; }

/* Projekt bez zrzutu: sygnet jako zastępczy obrazek */
.thumb.is-placeholder img, .head__icon.is-placeholder img, .mini__thumb.is-placeholder img {
  object-fit: contain; padding: 14%; background: var(--paper-2);
}
.shot.is-placeholder .shot__img { padding: 48px 0; }
.shot.is-placeholder .shot__img img { width: 160px; height: 160px; border-radius: 28px; }

/* ---------- Pasek "Zbudowałeś coś?" ---------- */

.cta {
  margin: 28px 0 40px;
  background: var(--accent-soft);
  border: 1px solid #F4CDB0;
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.cta__title .hl {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.cta__title .hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4px; right: -4px;
  top: 55%; bottom: -2px;
  background: var(--accent);
  opacity: .28;
  transform: rotate(-2deg);
  border-radius: 3px;
}
.cta__note {
  margin: 6px 0 0;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  color: var(--accent);
}
.cta .btn { flex: none; }

/* ---------- Stopka ---------- */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { height: 18px; width: auto; }
.footer__links { display: flex; gap: 18px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Strona projektu ---------- */

.crumbs {
  padding-top: 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 20px;
}
.head__main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.head__icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  flex: none;
}
.head__icon img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.head__titleline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head__title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.head__desc { margin: 8px 0 0; font-size: 17px; color: var(--ink-soft); max-width: 60ch; }
.head__actions { display: flex; gap: 10px; align-items: center; flex: none; }

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot__bar {
  height: 34px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
  position: relative;
}
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.shot__bar i:nth-child(1) { background: #FF5F57; }
.shot__bar i:nth-child(2) { background: #FEBC2E; }
.shot__bar i:nth-child(3) { background: #28C840; }
.shot__url {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 12px; color: var(--muted); pointer-events: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 80px;
}
.shot__img {
  background: var(--paper-2);
  display: flex; justify-content: center;
}
.shot__img img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}
.shot.is-portrait .shot__img img { width: auto; max-height: 640px; }

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 32px 0 8px;
}
.section-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.prose { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.kv { margin: 0; }
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--muted); margin: 0; }
.kv dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv a { color: var(--accent); text-decoration: none; }
.kv a:hover { text-decoration: underline; }
.kv .is-live { color: var(--green); }
.kv .is-beta { color: var(--amber-ink); }
.kv .is-building { color: var(--accent); }

.links a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--line);
  text-decoration: none; font-size: 14px; font-weight: 500;
  min-width: 0;
}
.links a:first-of-type { border-top: 0; }
.links a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links a span:last-child { color: var(--accent); flex: none; }
.links a:hover span:first-child { text-decoration: underline; }
.links .is-muted { color: var(--muted); font-size: 14px; padding: 8px 0; }

/* Komentarze */

.comments { margin-top: 36px; }
.comment {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.comment:first-child { border-top: 0; }
.comment__head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.comment__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--ink-soft); flex: none;
}
.comment__name { font-weight: 600; }
.comment__date { color: var(--muted); }
.comment__text { margin: 8px 0 0 42px; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.comments__empty { color: var(--muted); font-size: 15px; margin: 0 0 6px; }

.form { display: grid; gap: 14px; }
.form--comment { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field label, .field__label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.input, .textarea, .select {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .12s ease;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink); outline: none; }
.textarea { resize: vertical; min-height: 96px; }
.input.is-invalid, .textarea.is-invalid { border-color: var(--accent); }
.field__error { font-size: 13px; color: var(--accent); display: none; }
.field.has-error .field__error { display: block; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--muted); }

/* Podobne projekty */

.similar { padding: 28px 0 40px; }
.similar__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mini {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.mini:hover { box-shadow: var(--shadow-up); transform: translateY(-2px); }
.mini__top { display: flex; gap: 12px; align-items: center; }
.mini__thumb {
  width: 48px; height: 48px; border-radius: 10px; flex: none;
  border: 1px solid var(--line); background: var(--paper-2); overflow: hidden;
}
.mini__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mini__name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.mini__votes { font-size: 13px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.mini__votes .vote__arrow { border-bottom-width: 6px; border-left-width: 4.5px; border-right-width: 4.5px; margin: 0; color: var(--accent); }
.mini__desc {
  margin: 10px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Strona "Zgłoś projekt" ---------- */

.page { padding-top: 28px; padding-bottom: 48px; }
.page--narrow { max-width: 640px; }
.page__title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.page__lead { margin: 0 0 24px; color: var(--muted); font-size: 16px; }

.radio-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-chips label {
  position: relative;
}
.radio-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-chips span {
  display: inline-block;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.radio-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.radio-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.tool-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tool-picks button {
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tool-picks button:hover { border-color: var(--ink); }

.drop {
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: border-color .12s ease, background-color .12s ease;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: #fffaf6; }
.drop input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.drop strong { color: var(--ink); font-weight: 600; }
.drop__preview { display: none; }
.drop.has-file .drop__preview { display: block; }
.drop.has-file .drop__prompt { display: none; }
.drop__preview img {
  max-height: 180px; width: auto; margin: 0 auto 8px;
  border-radius: 8px; border: 1px solid var(--line);
}

/* Podgląd wiersza w formularzu */
.preview-box {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 4px 18px;
}
.preview-box .row { border-bottom: 0; }
.preview-box .row__title a::after { display: none; }

/* ---------- Strona "Wkrótce" ---------- */

.soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 16px;
  gap: 8px;
}
.soon h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
}
.soon p { margin: 4px 0 18px; color: var(--muted); font-size: 16px; }
.soon .hand { font-family: var(--font-hand); font-weight: 600; font-size: 26px; color: var(--accent); margin: 0; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-up);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
  max-width: calc(100% - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- Telefon ---------- */

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; gap: 28px; }
  .similar__grid { grid-template-columns: 1fr; }
  .head { flex-direction: column; }
  .head__actions { width: 100%; }
  .head__actions .btn { flex: 1; }
}

@media (max-width: 640px) {
  .nav .wrap { padding-top: 12px; padding-bottom: 10px; }
  .nav__logo img { height: 28px; }
  .nav__tagline { font-size: 15px; }
  .btn--nav { padding: 8px 14px; font-size: 14px; }

  .toolbar .wrap {
    gap: 12px;
    height: 46px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .toolbar .wrap::-webkit-scrollbar { display: none; }
  .seg button { padding: 4px 12px; font-size: 13px; }
  .tabs button { padding: 0 8px; font-size: 13px; }
  .toolbar__count { display: none; }

  .row {
    grid-template-columns: 96px minmax(0, 1fr) 52px;
    gap: 12px;
    padding: 16px 0;
    align-items: start;
  }
  .thumb { width: 96px; height: 72px; }
  .row__title { font-size: 17px; }
  .row__desc { font-size: 14px; margin: 3px 0 8px; }
  .row__meta { font-size: 12px; }
  /* Na telefonie: tylko kategoria, status i autor; opis ucięty do 3 linii */
  .row__meta .tag--tool, .row__meta .sep, .row__meta .row__date { display: none; }
  .row__meta .row__author { flex-basis: 100%; }
  .row__desc {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .vote { width: 52px; height: 52px; font-size: 14px; }

  .cta { flex-direction: column; align-items: flex-start; padding: 22px 20px; margin: 20px 0 32px; }
  .cta__title { font-size: 22px; }
  .cta .btn { width: 100%; }

  .footer .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }

  .head__title { font-size: 26px; }
  .head__desc { font-size: 16px; }
  .head__icon { width: 52px; height: 52px; }
  .head__actions { flex-wrap: wrap; }
  .head__actions .vote--wide { flex: 0 0 auto; }
  .shot__img img { max-height: 420px; }
  .shot.is-portrait .shot__img img { max-height: 480px; }
  .form__row { grid-template-columns: 1fr; }
  .page__title { font-size: 26px; }
  .comment__text { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
