/* KierMates — elementy strony. Kolejność jak na ekranie: od przełącznika profilu do panelu. */

.site {
  width: min(840px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 30px;
}

/* ---------- Przełącznik profilu ---------- */

.identity {
  width: min(570px, 100%);
  height: 66px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
}

.identity-btn {
  border: 0;
  border-radius: var(--radius-button);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.identity-btn:hover {
  background: var(--soft);
}

.identity-btn[aria-pressed="true"] {
  background: var(--red-soft);
}

.mini-avatar {
  position: relative;
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--filip);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(22, 22, 25, 0.12);
}

.mini-avatar.mateusz {
  background: var(--mateusz);
}

.mini-avatar img,
.face img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.online {
  position: absolute;
  z-index: 2;
  right: -1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
}

.km {
  color: var(--red);
  font-weight: 900;
  letter-spacing: -0.08em;
  font-size: 18px;
}

/* ---------- Nagłówek: profil + Featured products ---------- */

.studio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 38px;
  min-height: 320px;
  padding: 8px 24px 35px;
}

.ig-head {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ig-avatar {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, var(--red), #ff9a78 55%, #252529);
}

.ig-avatar-inner {
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.ig-avatar-inner span {
  color: var(--red);
}

.ig-avatar-inner.filip {
  background: var(--filip);
}

.ig-avatar-inner.mateusz {
  background: var(--mateusz);
}

.ig-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-name {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ig-name h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: var(--tight);
}

.ig-check {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.ig-handle {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.studio-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.studio-stats b {
  font-size: 15px;
  font-weight: 850;
}

.studio-copy {
  margin: 16px 0 0;
  max-width: 430px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body-text);
}

.studio-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.studio-location {
  display: inline-block;
  margin-top: 8px;
  color: var(--link);
  font-size: 13px;
  font-weight: 740;
}

.studio-location:hover {
  text-decoration: underline;
}

/* Social media przy opisie */

.social-tiles {
  max-width: 350px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.social-tile {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 4px;
  font-size: 11px;
  font-weight: 720;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.social-glyph {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--night);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.social-tile:hover {
  border-color: #c5c5c9;
  background: var(--soft);
  transform: translateY(-1px);
}

/* Featured products */

.hero-side {
  min-width: 0;
}

.featured-kicker {
  height: 24px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.featured-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.hero-visual {
  height: 246px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-visual li {
  min-width: 0;
}

.visual-card {
  position: relative;
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--night);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.visual-image,
.visual-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.visual-image img {
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.visual-placeholder {
  display: grid;
  place-items: center;
  padding-bottom: 30px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.visual-placeholder.theme-blue {
  background: var(--blue-soft);
  color: var(--blue-text);
}

.visual-placeholder.theme-dark {
  background: var(--night);
  color: #fff;
}

/* Ikona aplikacji zamiast zrzutu ekranu (visualIcon w js/data.js) */
.visual-placeholder .placeholder-icon {
  position: static;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.product-placeholder .placeholder-icon {
  width: 120px;
  height: 120px;
  border-radius: 32px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.app-icon {
  position: absolute;
  z-index: 4;
  top: 11px;
  left: 11px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.visual-caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 34px 12px 12px;
  background: linear-gradient(transparent, rgba(11, 11, 13, 0.84));
  color: #fff;
  font-size: 14px;
  font-weight: 790;
}

.status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: var(--pill);
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 790;
  line-height: 1.2;
  white-space: nowrap;
}

.status--live {
  background: var(--green-soft);
  color: var(--green-text);
}

.status--build {
  background: var(--red-soft);
  color: var(--red-text);
}

.visual-caption .status {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.visual-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 17px;
  background: rgba(20, 20, 23, 0.91);
  color: #fff;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.overlay-title {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.overlay-text {
  display: block;
  margin: 0 0 13px;
  color: #c8c8cc;
  font-size: 13px;
  line-height: 1.45;
}

.visual-more {
  color: var(--red-glow);
  font-size: 12px;
  font-weight: 800;
}

/* Najechanie myszą tylko tam, gdzie jest mysz — na dotyku nazwa i status są zawsze widoczne */
@media (hover: hover) {
  .visual-card:hover {
    transform: translateY(var(--lift));
    border-color: #bdbdc1;
  }

  .visual-card:hover .visual-image img {
    transform: scale(var(--zoom));
  }

  .visual-card:hover .visual-overlay {
    opacity: 1;
    transform: none;
  }
}

.visual-card:focus-visible {
  transform: translateY(var(--lift));
  border-color: #bdbdc1;
}

.visual-card:focus-visible .visual-overlay {
  opacity: 1;
  transform: none;
}

/* ---------- Nawigacja główna ---------- */

.tabs {
  height: 58px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 48px;
}

.tab {
  position: relative;
  min-width: 90px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  padding: 0 5px;
}

.tab:hover,
.tab[aria-current="page"] {
  color: var(--ink);
}

.tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}

.tab-icon {
  margin-right: 6px;
  font-size: 15px;
  color: var(--red-dark);
}

/* ---------- Katalog produktów ---------- */

.products-catalog {
  padding: 26px 0 4px;
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 2px 17px;
}

.catalog-head h2 {
  margin: 0;
  font-size: 24px;
}

.catalog-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.catalog-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-card {
  position: relative;
  display: block;
  height: 100%;
  min-height: 184px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.catalog-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.catalog-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  box-shadow: 0 9px 22px rgba(22, 22, 25, 0.12);
}

/* W katalogu tylko „Available” jest kolorowe — jak w prototypie */
.catalog-card .status--build {
  background: var(--soft);
  color: var(--muted);
}

.catalog-card h3 {
  margin: 26px 0 5px;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.catalog-card p {
  margin: 0;
  max-width: 220px;
  padding-right: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.catalog-arrow {
  position: absolute;
  right: 15px;
  bottom: 14px;
  color: var(--red);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.catalog-card:focus-visible {
  transform: translateY(var(--lift));
  border-color: var(--hover-line);
  box-shadow: var(--shadow-card);
}

@media (hover: hover) {
  .catalog-card:hover {
    transform: translateY(var(--lift));
    border-color: var(--hover-line);
    box-shadow: var(--shadow-card);
  }

  .catalog-card:hover .catalog-arrow {
    transform: translateX(3px);
  }
}

/* ---------- Siatka Latest / Blog ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #ecebea;
  color: var(--ink);
  text-align: left;
}

.tile:focus-visible {
  outline-offset: -3px;
}

.tile-bg,
.tile-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tile-bg img {
  object-fit: cover;
  transition: transform 0.25s var(--ease);
}

.tile-bg::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(10, 10, 12, 0.72));
  pointer-events: none;
}

@media (hover: hover) {
  .tile:hover .tile-bg img {
    transform: scale(1.025);
  }
}

.tile-top {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 6px;
}

.tile-top--end {
  justify-content: flex-end;
}

.author {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 3px 8px 3px 3px;
  border-radius: var(--pill);
  background: rgba(18, 18, 20, 0.76);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  color: #fff;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.2;
}

.author-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-dot {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--filip);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.author-dot.mateusz {
  background: var(--mateusz);
}

.author-dot + .author-dot {
  margin-left: -8px;
}

.author-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 5px 8px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  color: var(--ink);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.2;
}

.tag--live {
  color: var(--green-text);
}

.tag--build {
  color: var(--red-text);
}

.tile-copy {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 11px;
  color: #fff;
}

.tile-copy b {
  display: block;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.tile-copy small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

/* Kafelki graficzne (bez zrzutu ekranu) */

.graphic {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--red-soft);
  color: var(--ink);
  text-align: center;
}

.theme-blue {
  background: var(--blue-soft);
}

.theme-dark {
  background: var(--night);
  color: #fff;
}

.graphic .big {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.graphic .big span {
  color: var(--red);
}

.graphic-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 12px;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.graphic-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.graphic-text {
  display: block;
  margin-top: 10px;
  max-width: 180px;
  color: #6d5b59;
  font-size: 12px;
  line-height: 1.4;
}

.theme-dark .graphic-text {
  color: #b9b9bd;
}

.graphic-icons {
  display: flex;
  gap: 7px;
  margin-bottom: 15px;
}

.graphic-icons i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.faces {
  display: flex;
  margin-bottom: 13px;
}

.face {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--filip);
  color: #fff;
  border: 4px solid var(--red-soft);
  font-style: normal;
  font-weight: 850;
}

.face.mateusz {
  background: var(--mateusz);
}

.face + .face {
  margin-left: -10px;
}

.empty {
  margin: 0;
  padding: 75px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

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

.footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 4px 14px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  display: block;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
}

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

/* ---------- Panel szczegółów ---------- */

html {
  scrollbar-gutter: stable;
}

html.panel-open {
  overflow: hidden;
}

.backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(18, 18, 20, 0.22);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}

.backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s var(--ease);
}

.panel {
  position: fixed;
  z-index: 50;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(520px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--paper);
  box-shadow: var(--shadow-panel);
  overflow: auto;
  overscroll-behavior: contain;
  transform: translateX(calc(100% + 30px));
  visibility: hidden;
  transition: transform var(--panel-time) var(--ease), visibility 0s linear var(--panel-time);
}

.panel.open {
  transform: none;
  visibility: visible;
  transition: transform var(--panel-time) var(--ease);
}

/* Na szerokim ekranie strona odsuwa się w lewo, żeby panel jej nie zasłaniał */
@media (min-width: 1250px) {
  html.panel-open .site {
    margin-left: max(24px, calc((100vw - 1370px) / 2));
    margin-right: 0;
  }
}

.panel-head {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.91);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.panel-brand {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-size: 24px;
  line-height: 1;
}

.close:hover {
  background: #ececeb;
}

.panel-body {
  padding: 28px 22px 32px;
}

.panel-kicker {
  color: var(--red-text);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel h2 {
  margin: 9px 0 8px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.panel-lead {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.panel-lead--after {
  margin: 18px 0 0;
}

.panel-meta {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.panel-subhead {
  margin: 34px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-list,
.social-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--paper);
  transition: border-color 0.2s var(--ease);
}

.panel-item:hover,
a.social-row:hover {
  border-color: var(--hover-line);
}

.panel-thumb {
  width: 60px;
  height: 55px;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--soft);
}

.panel-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-item-title {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.panel-item-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.arrow {
  color: var(--red);
  font-size: 18px;
}

.product-shot {
  height: 265px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--night);
}

.product-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.product-placeholder {
  height: 265px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.product-placeholder.theme-blue {
  color: var(--blue-text);
}

.product-facts {
  margin: 11px 0 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.65;
}

.product-facts span {
  display: block;
}

.product-facts b {
  color: var(--red-text);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 760;
}

.button--primary {
  background: var(--red-text);
  color: #fff;
  transition: background-color 0.2s var(--ease);
}

.button--primary:hover {
  background: #a92826;
}

.button--quiet {
  background: var(--soft);
  color: var(--muted);
}

.text-link {
  color: var(--link);
  font-size: 14px;
  font-weight: 740;
}

.text-link:hover {
  text-decoration: underline;
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.founder {
  padding: 17px;
  border-radius: 15px;
  background: var(--soft);
}

.founder .face {
  margin-bottom: 15px;
  border-color: var(--soft);
}

.founder h3 {
  margin: 0 0 5px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.founder p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.origin {
  margin: 11px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.origin b {
  color: var(--red-text);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  transition: border-color 0.2s var(--ease);
}

.social-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--night);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.social-copy {
  flex: 1;
  min-width: 0;
}

.social-name {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 700;
}

.social-role {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.soon {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: var(--pill);
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Podstrony: produkt, wpis, prywatność ---------- */

.page-top {
  height: 66px;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 19px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--night);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.07em;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red-soft);
}

.brand-mark span {
  color: var(--red);
}

.back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 740;
}

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

.page-hero {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: 0 24px 30px;
}

.page-icon {
  width: 76px;
  height: 76px;
  border-radius: 21px;
  box-shadow: 0 12px 28px rgba(22, 22, 25, 0.16);
}

.page-hero h1 {
  margin: 8px 0 10px;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.page-lead {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.shot {
  margin: 0;
}

.frame {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--night);
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot figcaption {
  margin: 8px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-page > .product-placeholder {
  max-width: 560px;
}

.product-page .product-facts {
  margin-top: 18px;
}

.product-legal {
  display: grid;
  gap: 6px;
  margin: 16px 4px 0;
  padding: 0;
  list-style: none;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 14px;
}

.text-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.text-page th,
.text-page td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body-text);
  text-align: left;
  vertical-align: top;
}

.text-page td:first-child {
  width: 42%;
}

.text-page th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

/* Linki w zdaniu: tej samej wielkości co tekst i podkreślone (nie tylko kolorem) */
.text-page p .text-link,
.text-page li .text-link {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-page .see-also .text-link {
  text-decoration: none;
}

.text-page .see-also {
  padding-left: 0;
  list-style: none;
}

.related {
  margin-top: 8px;
}

.post-page {
  max-width: 640px;
  margin: 0 auto;
}

.post-head h1 {
  margin: 9px 0 12px;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.post-meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.post-image {
  margin: 0 0 26px;
}

.post-page p,
.post-page li {
  color: var(--body-text);
  font-size: 17px;
  line-height: 1.65;
}

.post-page .post-lead {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.55;
}

.post-product {
  margin-top: 30px;
}

.post-product-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.post-product .panel-item {
  grid-template-columns: 48px 1fr auto;
}

.post-page + .related {
  max-width: 640px;
  margin: 12px auto 0;
}

.text-page h2 {
  margin: 34px 0 8px;
  font-size: 22px;
}

.text-page ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.site--page main {
  min-height: 50vh;
  padding-bottom: 44px;
}

.site--page .footer {
  border-top: 1px solid var(--line);
}
