/* Goorsky – strona publiczna
   Jasny, przyjazny wygląd: białe tło, mocno zaokrąglone karty z miękkim cieniem,
   pastelowe sekcje i przyciski w kształcie pigułki. Kolory przycisku wsparcia
   i sekcji z liczbami ustawia się w panelu (Ustawienia → Wygląd). */

:root {
  --bg: #ffffff;
  --ink: #16181d;
  --muted: #5e6470;
  --line: #e9ebef;
  --soft: #f5f6f8;
  --blue-tint: #eef3fb;
  --yellow: #ffdd33;
  --error: #c8102e;
  --ok: #1d7a3a;

  --f-ui: "Quicksand", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-hand: var(--f-ui);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .07);
  --shadow-lift: 0 2px 4px rgba(16, 24, 40, .05), 0 18px 40px rgba(16, 24, 40, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-ui); font-size: 17px; line-height: 1.6; font-weight: 500;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #7aa7f0; outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 20; }
.skip:focus { left: 8px; }

.hand { font-family: var(--f-hand); font-weight: var(--hand-weight, 700); line-height: 1.12; letter-spacing: -0.02em; }
.icon { flex: none; }
.meta-line { color: var(--muted); margin: 4px 0 0; font-size: .95rem; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 20px; height: 20px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c3038; }
.btn-light { background: var(--soft); color: var(--ink); }
.btn-light:hover { background: #eceef2; }

.btn-coffee {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coffee-bg, var(--yellow)); color: var(--coffee-fg, var(--ink));
  border-radius: var(--coffee-radius, 999px); box-shadow: var(--coffee-shadow, none);
  padding: 10px 18px 10px 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
.btn.btn-coffee { padding: 13px 24px 13px 20px; }
.btn-coffee:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-coffee .icon { width: 20px; height: 20px; }

/* ---------- Nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 10px 28px; min-height: 72px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.wordmark { font-family: var(--f-hand); font-weight: var(--hand-weight, 700); font-size: 1.7rem; line-height: 1; letter-spacing: -0.02em; }
.main-nav { display: flex; gap: 6px; font-weight: 600; }
.main-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--soft); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--soft); color: var(--ink); }
.social { display: flex; gap: 4px; align-items: center; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); transition: background .15s, color .15s; }
.social a:hover { background: var(--soft); color: var(--ink); }
.social .icon { width: 20px; height: 20px; }

/* ---------- Strona główna: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero-title { font-size: clamp(2.3rem, 5vw, 3.9rem); margin: 0; max-width: 14ch; }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.hero-proof { margin: 26px 0 0; color: var(--muted); font-size: .95rem; }

.hero-visual { position: relative; padding: 28px 18px 40px; isolation: isolate; }
.hero-visual::before { /* pastelowa plama za kartą */
  content: ""; position: absolute; inset: 56px 0 12px 56px; border-radius: var(--r-xl);
  background: var(--press-bg, var(--blue-tint)); transform: rotate(4deg); z-index: -1;
}
.hero-card { display: block; background: #fff; border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-lift); max-width: 520px; margin-inline: auto; transition: transform .2s ease; }
.hero-card:hover { transform: translateY(-3px); }
.hero-card img { width: 100%; max-height: 64vh; object-fit: contain; border-radius: var(--r-md); background: var(--soft); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 10px 18px; box-shadow: var(--shadow-lift);
  font-weight: 700; font-size: .95rem; text-decoration: none; max-width: 80%;
}
.chip-top { top: 6px; left: 0; transform: rotate(-4deg); }
.chip-top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coffee-bg, var(--yellow)); flex: none; }
.chip-bottom { bottom: 6px; right: 0; flex-direction: column; align-items: flex-start; gap: 0; border-radius: var(--r-md); padding: 10px 18px 12px; transform: rotate(2deg); }
.chip-bottom strong { font-size: 1.05rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chip-bottom span { color: var(--muted); font-weight: 600; font-size: .85rem; }
.chip-bottom:hover strong { text-decoration: underline; }

/* ---------- Sekcje i siatka ---------- */
.block { padding-block: 48px; }
.block-tight { padding-bottom: 72px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.block-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 20px; }
.block-head .block-title { margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; background: #fff; border-radius: var(--r-lg); padding: 10px 10px 16px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card-frame { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--soft); }
.card-frame img { width: 100%; height: 100%; object-fit: contain; }
.card-title { font-weight: 700; line-height: 1.3; padding-inline: 6px; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card.is-new { animation: appear .35s ease both; }
@keyframes appear { from { opacity: 0; } }

/* ---------- Liczby i media ---------- */
.stats {
  background: var(--press-bg, var(--blue-tint)); border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px); margin-block: 40px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px;
}
.stat { display: grid; gap: 4px; align-content: start; }
.stat strong { font-family: var(--f-hand); font-weight: var(--hand-weight, 700); font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-weight: 600; max-width: 24ch; }
.stats-heading { grid-column: 1 / -1; margin: 0; font-size: 1.4rem; letter-spacing: -0.01em; }
.stats-heading-sm { font-size: 1.1rem; margin-top: 8px; color: var(--muted); }
.press-pills { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.press-pills li { background: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 700; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.stats-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-weight: 600; max-width: 70ch; }
.clients { grid-column: 1 / -1; background: #fff; border-radius: var(--r-md); padding: 20px; width: 100%; max-width: min(100%, 980px); }

/* ---------- Kafle: współpraca i kawa ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 16px 80px; }
.tile { border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.tile p { margin: 0 0 18px; max-width: 52ch; }
.tile .btn { margin-top: auto; }
.tile-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 12px; }
.tile-blue { background: var(--blue-tint); }
.tile-coffee { background: color-mix(in srgb, var(--coffee-bg, var(--yellow)) 32%, #fff); }
.tile-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--coffee-bg, var(--yellow)); color: var(--coffee-fg, var(--ink)); margin-bottom: 18px; }
.tile-icon .icon { width: 26px; height: 26px; }
.checks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Udostępnianie ---------- */
.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.share-label { font-size: .9rem; color: var(--muted); margin-right: 4px; font-weight: 600; }
.share a, .share button { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; position: relative; transition: background .15s; }
.share a:hover, .share button:hover { background: #e6e9ee; }
.share .icon { width: 19px; height: 19px; }
.copy-msg { position: absolute; top: -36px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .8rem; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.copy-msg.show { opacity: 1; }

.link-strong { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Galeria ---------- */
.gallery-head { padding-top: 56px; padding-bottom: 28px; }
.page-title { font-size: clamp(2.3rem, 5vw, 3.4rem); margin: 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: .95rem; border-radius: 999px; padding: 9px 18px; background: var(--soft); transition: background .15s; }
.chip:hover { background: #e9ecf0; }
.chip[aria-current="true"] { background: var(--ink); color: #fff; }
.chip-n { font-weight: 600; opacity: .6; font-size: .85em; }
.chips-tags { margin-top: 14px; }
.chips-tags .chip { font-weight: 600; padding: 6px 14px; font-size: .9rem; }

.search { display: flex; align-items: center; background: var(--soft); border-radius: 999px; padding: 4px 4px 4px 18px; min-width: min(100%, 340px); transition: box-shadow .15s, background .15s; }
.search:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.search input { border: 0; padding: 9px 4px; flex: 1; min-width: 0; background: transparent; outline: none; }
.search button { border: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.search .icon { width: 18px; height: 18px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; flex-wrap: wrap; }
.pager-info { color: var(--muted); font-weight: 600; }
.btn-line { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 13px 26px; background: var(--ink); color: #fff; cursor: pointer; transition: background .15s; }
.btn-line:hover { background: #2c3038; }
.btn-line .icon { width: 18px; height: 18px; }
.btn-line[aria-busy="true"] { opacity: .6; cursor: progress; }
.pager.js-more .pager-info, .pager.js-more [rel="prev"] { display: none; }

.empty-state { padding-block: 64px; max-width: 62ch; }
.empty-title { font-size: 2rem; margin: 0 0 8px; }

/* ---------- Pojedynczy rysunek ---------- */
.drawing { padding-top: 32px; padding-bottom: 24px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; margin-bottom: 20px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--soft); font-size: .95rem; }
.back:hover { background: #e9ecf0; }
.back .icon { width: 18px; height: 18px; }
.drawing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.panel { display: block; background: #fff; border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-lift); }
.drawing-panel { cursor: zoom-in; width: fit-content; max-width: 100%; justify-self: center; }
.drawing-panel img { max-height: 86vh; width: auto; margin-inline: auto; object-fit: contain; border-radius: var(--r-md); }
.drawing-info { position: sticky; top: 96px; display: grid; gap: 18px; background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.drawing-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0; }
.drawing-info .meta-line { margin-top: -10px; }
.drawing-desc { max-width: 60ch; }
.prevnext { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.pn { display: grid; gap: 2px; text-decoration: none; border-radius: var(--r-md); padding: 12px 16px; background: var(--soft); transition: background .15s; }
.pn:hover { background: #e9ecf0; }
.pn-dir { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.pn-dir .icon { width: 16px; height: 16px; }
.pn-older { text-align: right; }
.pn-older .pn-dir { justify-content: flex-end; }
.pn-title { font-weight: 700; line-height: 1.3; }
.usage-note { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Współpraca ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; padding-top: 64px; padding-bottom: 16px; align-items: center; }
.about-text { max-width: 62ch; }
.about-text p { font-size: 1.1rem; }
.about-highlight { background: var(--blue-tint); border-radius: var(--r-md); padding: 16px 20px; font-weight: 700; }
.about-photo { margin: 0; justify-self: center; position: relative; }
.about-photo::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border-radius: var(--r-xl); background: color-mix(in srgb, var(--coffee-bg, var(--yellow)) 40%, #fff); z-index: -1; transform: rotate(-3deg); }
.about-photo img { border-radius: var(--r-xl); box-shadow: var(--shadow-lift); max-width: 380px; width: 100%; }
.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.offer-item { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.offer-item h3 { font-size: 1.2rem; margin: 0 0 8px; line-height: 1.3; }
.offer-item p { margin: 0; color: var(--muted); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; padding-bottom: 80px; align-items: start; }
.contact-intro p { max-width: 52ch; }
.social-big a { width: 46px; height: 46px; background: var(--soft); color: var(--ink); }
.form { display: grid; gap: 16px; background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: var(--soft); width: 100%; transition: border-color .15s, background .15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin: 0; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; }
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.alert-ok { color: var(--ok); background: #eaf7ee; }
.alert-error { color: var(--error); background: #fdeef1; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--soft); padding-top: 56px; margin-top: 24px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-name { font-family: var(--f-hand); font-weight: var(--hand-weight, 700); font-size: 1.6rem; margin: 0 0 6px; line-height: 1; letter-spacing: -0.02em; }
.footer-brand p:not(.footer-name) { margin: 0; max-width: 40ch; color: var(--muted); }
.footer-nav { display: grid; gap: 8px; align-content: start; font-weight: 600; }
.footer-nav a { text-decoration: none; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-contact { display: grid; gap: 14px; justify-items: start; align-content: start; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-legal { padding-block: 24px 32px; margin-top: 40px; border-top: 1px solid #e4e6ea; }
.footer-legal p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Telefon i tablet ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 44px; }
  .hero-title { max-width: 18ch; }
  .drawing-layout { grid-template-columns: 1fr; gap: 24px; }
  .drawing-info { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { justify-self: start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { min-height: 0; gap: 8px 12px; }
  .header-social { display: none; }
  .brand img { height: 34px; }
  .main-nav { order: 3; width: 100%; margin-inline: -14px; }
  .site-header .btn-coffee { padding: 8px 14px 8px 12px; font-size: .92rem; }
  .hero-lead { font-size: 1.08rem; }
  .hero-visual { padding: 26px 4px 44px; }
  .hero-card img { max-height: none; }
  .float-chip { font-size: .85rem; padding: 8px 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card { padding: 6px 6px 12px; border-radius: var(--r-md); gap: 8px; }
  .card-frame { border-radius: var(--r-sm); }
  .card-title { font-size: .92rem; padding-inline: 4px; }
  .stats { grid-template-columns: 1fr; gap: 22px; border-radius: var(--r-lg); }
  .duo, .contact { grid-template-columns: 1fr; }
  .tile { border-radius: var(--r-lg); }
  .filters { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .form, .drawing-info { padding: 20px; }
  .drawing-panel img { max-height: none; width: 100%; }
  .about-photo img { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
