@charset "utf-8";

/* ==========================================================================
   AlixPress — arkusz stylów
   Ciepły papier, szeryfowe nagłówki, bez frameworka.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #faf6ef;
  --paper-alt: #f4ece0;
  --card: #fffdfa;
  --line: #e5dac7;
  --line-strong: #d2c3aa;
  --ink: #231e18;
  --ink-soft: #473f36;
  --muted: #776c5e;
  --accent: #c23c14;
  --accent-dark: #9c2f0d;
  --accent-soft: #f9e9e0;
  --green: #2f6b4b;

  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gap: 24px;
  --radius: 5px;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { border-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.95rem, 1.35rem + 2.1vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

/* ---------- Layout ---------- */
section[id], h2[id], h3[id] { scroll-margin-top: 80px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; margin-inline: auto; }

.section { padding-block: clamp(42px, 5vw, 72px); }
.section--alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(30px, 3.5vw, 48px); }

.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); }
.section-head > :last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Icons ---------- */
.ico {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.ico--lg { width: 26px; height: 26px; stroke-width: 1.5; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  display: flex; align-items: center; gap: 18px;
  min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.015em;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand img { width: 26px; height: 26px; }
.brand__name span { color: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink); font: inherit; font-size: .95rem;
  padding: 7px 11px; cursor: pointer;
  align-items: center; gap: 7px;
}
.nav-toggle .ico { width: 18px; height: 18px; }
.nav-toggle[aria-expanded="true"] .ico--menu,
.nav-toggle[aria-expanded="false"] .ico--close { display: none; }

.nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav li { margin: 0; }
.nav a {
  display: inline-block; padding: 7px 10px;
  color: var(--ink-soft); text-decoration: none; font-size: .98rem;
  border-radius: var(--radius);
}
.nav a:hover { color: var(--accent-dark); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav .nav__shop {
  background: var(--accent); color: #fff; padding: 8px 14px;
  display: inline-flex; align-items: center; gap: 7px; margin-left: 6px;
}
.nav .nav__shop:hover { background: var(--accent-dark); color: #fff; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: 12px 2px; font-size: 1.05rem; }
  .nav .nav__shop { display: flex; margin: 14px 0 0; justify-content: center; padding: 12px; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-top: 18px; font-size: .9rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.crumbs a:hover { color: var(--accent-dark); border-color: currentColor; }
.crumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font: inherit; font-size: 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: #fff; border-color: var(--ink-soft); color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; border-color: #000; color: #fff; }
.btn--sm { padding: 8px 13px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.05em; }
.btn-row:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 clamp(34px, 4vw, 54px); border-bottom: 1px solid var(--line); }
.hero__in { max-width: 44rem; }
.hero h1 { margin-bottom: .5em; }
.hero__lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 36rem; }
.hero__note { margin-top: 1.4em; font-size: .9rem; color: var(--muted); }
.hero--page { padding-top: 10px; border-bottom: 0; }

/* ---------- Panels & grids ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
}
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

/* Link list with icons (guides) */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.guides a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  color: var(--ink); text-decoration: none;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.guides a:nth-child(3n) { border-right: 0; }
.guides a:nth-last-child(-n+3) { border-bottom: 0; }
.guides a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.guides .ico { color: var(--accent); }
.guides b { font-weight: 500; font-size: 1.02rem; }
.guides small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; }
@media (max-width: 860px) {
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guides a:nth-child(3n) { border-right: 1px solid var(--line); }
  .guides a:nth-child(2n) { border-right: 0; }
  .guides a:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .guides a:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .guides { grid-template-columns: 1fr; }
  .guides a, .guides a:nth-child(3n) { border-right: 0; }
  .guides a { border-bottom: 1px solid var(--line); }
  .guides a:last-child { border-bottom: 0; }
}

/* Feature items (zalety) */
.feature { display: flex; gap: 14px; }
.feature .ico { color: var(--accent); margin-top: 4px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .35em; }
.feature p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* Couriers */
.couriers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 760px) { .couriers { grid-template-columns: 1fr; } }
.courier { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.courier img { width: 42px; height: 42px; object-fit: contain; }
.courier h3 { font-size: 1.08rem; margin-bottom: .2em; }
.courier h3 a { text-decoration: none; }
.courier h3 a:hover { text-decoration: underline; }
.courier p { margin: 0; font-size: .95rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 800px) { .faq { grid-template-columns: 1fr; gap: 0; } }
.faq__item { padding: 22px 0; border-top: 1px solid var(--line); }
.faq__item h3 { font-size: 1.14rem; margin-bottom: .45em; }
.faq__item p { color: var(--ink-soft); font-size: 1rem; }
.faq__item p:last-child { margin-bottom: 0; }

/* Stores / apps */
.apps { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.apps img { height: 46px; width: auto; }

/* Promo buttons strip */
.promo-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
@media (max-width: 760px) { .promo-list { grid-template-columns: 1fr; } }
.promo-list a {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px;
  text-decoration: none; color: var(--ink); border-right: 1px solid var(--line);
}
.promo-list a:last-child { border-right: 0; }
.promo-list a:hover { background: var(--accent-soft); }
.promo-list .ico { color: var(--accent); }
.promo-list b { font-weight: 500; display: block; }
.promo-list small { color: var(--muted); font-size: .86rem; }
@media (max-width: 760px) {
  .promo-list a { border-right: 0; border-bottom: 1px solid var(--line); }
  .promo-list a:last-child { border-bottom: 0; }
}

/* ---------- Article ---------- */
.article { padding: 26px 0 clamp(34px, 4vw, 56px); }
.article__meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  margin: -0.2em 0 1.8em;
  font-size: .9rem; color: var(--muted);
}
.article__foot { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin-top: 2.2em; padding-top: .9em;
  border-top: 1px solid var(--line);
  font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem);
}
.prose h3 { margin-top: 1.9em; font-size: 1.2rem; }
.prose h4 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--accent-dark); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.3em; }
.prose ul > li::before {
  content: ""; position: absolute; left: .15em; top: .72em;
  width: 6px; height: 6px; border: 1px solid var(--accent); border-radius: 50%;
}
.prose ol { padding-left: 1.4em; }
.prose ol > li::marker { color: var(--accent); font-variant-numeric: tabular-nums; }
.prose img { display: block; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose img[src$=".svg"] { max-height: 72px; width: auto; border: 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); }
.prose blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent); color: var(--ink-soft);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .96rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-alt); font-weight: 600; }
.prose iframe { max-width: 100%; }
.prose .table-scroll { overflow-x: auto; }

/* Related links */
.related { margin-top: 2.6rem; }
.related h2 { font-size: 1.3rem; border: 0; padding: 0; margin-bottom: .8em; }
.related ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.related li { margin: 0; border-bottom: 1px solid var(--line); }
.related a { display: block; padding: 12px 2px; text-decoration: none; color: var(--ink); }
.related a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Store call to action ---------- */
.cta {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 32px);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.cta h2 { font-size: 1.45rem; margin-bottom: .3em; }
.cta p { margin: 0; color: var(--muted); font-size: .98rem; }
.cta__text { max-width: 44ch; }

/* ---------- Catalog list (category) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card h3 { font-size: 1.05rem; margin-bottom: .25em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; font-size: .92rem; color: var(--muted); }

.pager { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 2rem 0 0; }
.pager a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; background: var(--card); }

/* ---------- Footer ---------- */
.site-foot {
  margin-top: clamp(40px, 5vw, 72px);
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(34px, 4vw, 54px) 26px;
  font-size: .97rem;
}
.site-foot__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .site-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-foot__cols { grid-template-columns: 1fr; } }
.site-foot h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: .7em; letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .5em; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--accent-dark); text-decoration: underline; }
.site-foot__about { color: var(--muted); font-size: .95rem; }
.site-foot__about .brand { font-size: 1.2rem; margin-bottom: .6rem; }
.site-foot__legal {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-strong);
  color: var(--muted); font-size: .86rem; line-height: 1.6;
}
.site-foot__legal p { margin-bottom: .7em; max-width: 92ch; }
.contact { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  width: 42px; height: 42px; display: none; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: var(--radius); cursor: pointer;
}
.to-top.is-visible { display: flex; }
.to-top:hover { background: #fff; border-color: var(--ink-soft); }

/* ---------- Forms (login / panel) ---------- */
.form { max-width: 420px; }
.form label { display: block; margin-bottom: 1rem; font-size: .95rem; color: var(--ink-soft); }
.form input {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 13px; font: inherit;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.form input:focus { border-color: var(--accent); }
.note { background: var(--accent-soft); border: 1px solid #efd6c8; border-radius: var(--radius); padding: 14px 16px; }

/* ---------- Utilities ---------- */
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
