/* Szlachecki Gościniec, strona marki v3 (28.10.2026). Karol: „strona jest zbyt AI, czuć sznyt Claude”.
   Kierunek: redakcyjny katalog manufaktury. Jeden krój (EB Garamond), papierowe tło, zdjęcia produktu bez ludzi,
   bez ornamentów, gradientów, animacji i rozstrzelonych wersalików. Poprzednia wersja: _v2/. */
/* EB Garamond (SIL OFL) z własnego serwera: bez połączeń z Google Fonts */
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(assets/fonts/ebg-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: 'EB Garamond'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(assets/fonts/ebg-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; }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/ebg-italic-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: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/ebg-italic-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; }

:root {
  --papier: #F4EFE6;
  --papier-ciemny: #EBE3D5;
  --tusz: #1F1A16;
  --szary: #6B625A;
  --linia: #D6CBB8;
  --bordo: #5E101C;
  --szer: 1280px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--papier); color: var(--tusz); font: 400 20px/1.55 'EB Garamond', Georgia, serif; -webkit-font-smoothing: antialiased; font-kerning: normal; font-variant-ligatures: common-ligatures oldstyle-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--bordo); }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0 0 .9em; }
figure { margin: 0; position: relative; }

.kontener { max-width: var(--szer); margin: 0 auto; padding: 0 40px; }

/* nagłówek */
.naglowek { border-bottom: 1px solid var(--linia); }
.naglowek-wiersz { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 22px; letter-spacing: .01em; }
.logo img { width: 24px; }
.menu { display: flex; gap: 34px; font-size: 18px; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; }

/* otwarcie */
.otwarcie-zdjecie { margin-top: 40px; }
.otwarcie-zdjecie img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; object-position: 50% 62%; }
.otwarcie-tekst { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; margin-top: 48px; margin-bottom: 140px; }
h1 { font-size: clamp(46px, 6.6vw, 92px); line-height: .98; letter-spacing: -.022em; }
.otwarcie-tekst p { font-size: 21px; color: var(--szary); max-width: 30em; }
.dalej { display: inline-block; margin-top: 6px; }
.dalej::after { content: ' →'; }

/* dyskretne oznaczenie scen AI: prawy dolny róg, bez tła */
.ai { position: absolute; right: 16px; bottom: 12px; font-size: 13px; line-height: 1; color: rgba(255, 255, 255, .62); text-shadow: 0 1px 3px rgba(0, 0, 0, .45); pointer-events: none; }

h2 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.016em; margin-bottom: 40px; }

/* kolekcje */
.kolekcje { border-top: 1px solid var(--linia); padding-top: 56px; }
.produkty { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.produkt-zdjecie { display: block; background: #fff; margin-bottom: 26px; }
.produkt-zdjecie img { transition: opacity .3s; }
.produkt-zdjecie:hover img { opacity: .9; }
.produkt h3 { font-size: 34px; font-variant-caps: all-small-caps; letter-spacing: .07em; line-height: 1; margin-bottom: 8px; }
.produkt h3 a { text-decoration: none; }
.produkt-rodzaj { font-size: 16px; color: var(--szary); font-style: italic; margin-bottom: 18px; }
.produkt p { max-width: 34em; }
.szeroki { margin-top: 110px; }
.szeroki img { width: 100%; }
.szeroki figcaption { margin-top: 16px; font-size: 17px; font-style: italic; color: var(--szary); max-width: 40em; }

/* hasło słownikowe */
.gosciniec { margin-top: 150px; padding: 120px 0; background: var(--papier-ciemny); }
.gosciniec-siatka { display: grid; grid-template-columns: 6fr 5fr; gap: 88px; align-items: center; }
.haslo { font-size: 22px; color: var(--szary); margin-bottom: 26px; }
.haslo dfn { font-style: italic; font-size: clamp(54px, 6vw, 84px); line-height: 1; color: var(--tusz); letter-spacing: -.02em; margin-right: 12px; }
.haslo-slownikowe ol { list-style: none; counter-reset: znaczenie; padding: 0; margin: 0 0 28px; }
.haslo-slownikowe li { counter-increment: znaczenie; position: relative; padding: 14px 0 14px 40px; border-top: 1px solid var(--linia); }
.haslo-slownikowe li:last-child { border-bottom: 1px solid var(--linia); }
.haslo-slownikowe li::before { content: counter(znaczenie) '.'; position: absolute; left: 0; top: 14px; color: var(--bordo); font-weight: 500; }
.haslo-slownikowe i { color: var(--szary); }
.zrodlo { font-size: 15px; color: var(--szary); }
.od-marki { margin-top: 40px; font-size: 24px; line-height: 1.4; max-width: 24em; }
.pionowe img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* manifest */
.manifest { display: grid; grid-template-columns: 5fr 6fr; gap: 96px; align-items: center; padding-top: 150px; padding-bottom: 150px; }
.manifest-tekst p { font-size: 22px; max-width: 30em; }
.manifest-tekst p:last-child { font-style: italic; margin-top: 1.4em; }

/* dla firm */
.dla-firm { border-top: 1px solid var(--linia); border-bottom: 1px solid var(--linia); padding: 110px 0; background: #FAF7F1; }
.dla-firm-siatka { display: grid; grid-template-columns: 5fr 7fr; gap: 88px; }
.dla-firm-siatka > div p { color: var(--szary); max-width: 26em; }
.formularz { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.formularz label { display: block; font-size: 16px; color: var(--szary); }
.formularz input:not([type=checkbox]), .formularz textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid #CDBFA9; border-radius: 0; background: #fff; font: 400 19px 'EB Garamond', Georgia, serif; color: var(--tusz); }
.formularz input:focus, .formularz textarea:focus, .zapis input:focus { outline: 2px solid var(--bordo); outline-offset: -1px; }
.cala { grid-column: 1 / -1; }
.zgoda { display: flex !important; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--szary); cursor: pointer; }
.zgoda input { margin-top: 5px; accent-color: var(--bordo); }
button { padding: 13px 30px; border: 0; border-radius: 0; background: var(--tusz); color: var(--papier); font: 400 19px 'EB Garamond', Georgia, serif; cursor: pointer; transition: background .2s; }
button:hover { background: var(--bordo); }
.komunikat { color: var(--bordo); font-style: italic; margin: 6px 0 0; }

/* listy */
.listy { display: grid; grid-template-columns: 5fr 7fr; gap: 88px; align-items: end; padding-top: 110px; padding-bottom: 110px; }
.listy h2 { font-size: clamp(32px, 3.2vw, 44px); margin-bottom: 16px; }
.listy p { color: var(--szary); }
.zapis { display: grid; grid-template-columns: 1fr auto; gap: 14px 0; }
.zapis input[type=email] { padding: 13px 14px; border: 1px solid #CDBFA9; border-right: 0; border-radius: 0; background: #fff; font: 400 19px 'EB Garamond', Georgia, serif; color: var(--tusz); }
.zapis .zgoda, .zapis .komunikat { grid-column: 1 / -1; }
.ukryte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pulapka { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }   /* pole-pułapka na boty */

/* stopka */
.stopka { border-top: 1px solid var(--linia); padding: 64px 0 30px; font-size: 17px; }
.stopka-siatka { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.stopka-siatka img { width: 40px; margin-bottom: 16px; }
.stopka-nazwa { font-size: 24px; margin-bottom: 4px; }
.stopka-siatka p { color: var(--szary); }
.stopka-tytul { font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--tusz) !important; margin-bottom: 8px; }
.stopka-siatka a { text-decoration: none; }
.stopka-siatka a:hover { text-decoration: underline; }
.stopka-dol { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--linia); font-size: 15px; color: var(--szary); }
.stopka-dol p { margin: 0; }

/* ── ruch (v3.1, assets/ruch.js): stany ukryte tylko pod .js ───────────────────────── */
.naglowek { position: sticky; top: 0; z-index: 20; background: rgba(244, 239, 230, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .3s; }
.naglowek.z-tlem { box-shadow: 0 1px 0 var(--linia); }
.naglowek.schowany { transform: translateY(-100%); }

/* zdjęcia: odsłanianie od dołu jak zdejmowane płótno, lekkie oddalenie kadru */
.kadr, .produkt-zdjecie { position: relative; overflow: hidden; }
.js [data-ruch="obraz"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s cubic-bezier(.65, 0, .35, 1) calc(var(--i, 0) * 120ms); }
.js [data-ruch="obraz"] img { scale: 1.16; transition: scale 2.2s cubic-bezier(.22, .61, .36, 1) calc(var(--i, 0) * 120ms), opacity .3s; }
.js [data-ruch="obraz"].widoczne { clip-path: inset(0 0 0 0); }
.js [data-ruch="obraz"].widoczne img { scale: 1.08; }
.js .produkt-zdjecie.widoczne img { scale: 1; }
.js .produkt-zdjecie.widoczne:hover img { scale: 1.035; transition: scale 1.2s cubic-bezier(.22, .61, .36, 1); }

/* tytuły słowo po słowie */
.slowo { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em 0 .12em; margin: -.14em 0 -.12em; }
.slowo > span { display: inline-block; }
.js [data-ruch="slowa"] .slowo > span { transform: translateY(110%); transition: transform 1.1s cubic-bezier(.22, .61, .36, 1) calc(var(--j) * 75ms); }
.js [data-ruch="slowa"].widoczne .slowo > span { transform: none; }
.js .otwarcie-tekst h1 .slowo > span { transition-delay: calc(.55s + var(--j) * 90ms); }

/* hasło słownikowe pisze się litera po literze */
.js [data-ruch="litery"] .litera { opacity: 0; transition: opacity .45s ease calc(.2s + var(--j) * 75ms); }
.js [data-ruch="litery"].widoczne .litera { opacity: 1; }

/* teksty: spokojne wejście z kolejnością */
.js [data-ruch="tekst"] { opacity: 0; transform: translateY(16px); transition: opacity .9s ease calc(var(--i, 0) * 90ms), transform 1s cubic-bezier(.22, .61, .36, 1) calc(var(--i, 0) * 90ms); }
.js [data-ruch="tekst"].widoczne { opacity: 1; transform: none; }
.js .otwarcie-tekst [data-ruch="tekst"] { transition-delay: calc(1s + var(--i, 0) * 120ms); }

/* linie słownika rysują się od lewej */
.js .haslo-slownikowe li { border-top-color: transparent; background: linear-gradient(var(--linia), var(--linia)) left top / 0 1px no-repeat; transition: opacity .9s ease calc(var(--i) * 140ms), transform 1s cubic-bezier(.22, .61, .36, 1) calc(var(--i) * 140ms), background-size 1.3s cubic-bezier(.65, 0, .35, 1) calc(var(--i) * 140ms); }
.js .haslo-slownikowe li.widoczne { background-size: 100% 1px; }

/* linki: podkreślenie kreśli się na nowo, strzałka się przesuwa */
.dalej { position: relative; text-decoration: none; padding-bottom: 3px; }
.dalej::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; }
.dalej::after { content: '→'; display: inline-block; margin-left: .35em; transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
.dalej:hover::before { animation: kreska .8s cubic-bezier(.65, 0, .35, 1); }
.dalej:hover::after { transform: translateX(5px); }
@keyframes kreska { 0% { transform: scaleX(1); transform-origin: right; } 50% { transform: scaleX(0); transform-origin: right; } 50.1% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.menu a { position: relative; text-decoration: none !important; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
.menu a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
  .naglowek, .naglowek.schowany { transition: none; transform: none; }
  .dalej:hover::before { animation: none; }
}

/* podstrona zestawu: galeria packshotów (president.html, first-lady.html z generuj_zestawy.py) */
.zestaw { padding-top: 36px; padding-bottom: 120px; }
.okruszki { font-size: 16px; color: var(--szary); margin-bottom: 28px; }
.okruszki a { text-decoration: none; }
.okruszki a:hover { text-decoration: underline; }
.zestaw-siatka { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
.galeria-glowne { position: relative; overflow: hidden; background: #fff; }
.galeria-glowne img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .22s ease; }
.galeria-glowne img.zmiana { opacity: 0; }
.galeria-miniatury { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
button.miniatura { display: block; width: 100%; padding: 0; background: #fff; border: 1px solid transparent; opacity: .62; cursor: pointer; transition: opacity .3s, border-color .3s; }
button.miniatura:hover { background: #fff; opacity: 1; }
button.miniatura.aktywna { border-color: var(--tusz); opacity: 1; }
.uwaga { margin-top: 14px; font-size: 14px; font-style: italic; color: var(--szary); }
.zestaw-opis { position: sticky; top: 96px; }
.zestaw-nazwa { font-size: clamp(50px, 6vw, 84px); line-height: 1; font-variant-caps: all-small-caps; letter-spacing: .05em; margin: 6px 0 24px; }
.zestaw-lead { font-size: 22px; line-height: 1.45; }
.szczegoly { margin: 30px 0 28px; border-top: 1px solid var(--linia); }
.szczegoly dt { padding-top: 14px; font-size: 17px; font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--szary); }
.szczegoly dd { margin: 2px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--linia); }
.przedsprzedaz { font-style: italic; color: var(--szary); margin-bottom: 6px; }
.scena { margin-top: 130px; }
.scena img { width: 100%; }
.scena-pionowa { max-width: 640px; margin-left: auto; margin-right: auto; }
.scena-pionowa img { aspect-ratio: 4 / 5; object-fit: cover; }
.scena figcaption { margin-top: 16px; font-size: 17px; font-style: italic; color: var(--szary); }
.druga-kolekcja { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; margin-top: 120px; padding-top: 44px; border-top: 1px solid var(--linia); text-decoration: none; }
.druga-kolekcja:hover { color: inherit; }
.druga-kolekcja-zdjecie { display: block; overflow: hidden; background: #fff; }
.druga-kolekcja-zdjecie img { transition: scale 1.2s cubic-bezier(.22, .61, .36, 1); }
.druga-kolekcja:hover .druga-kolekcja-zdjecie img { scale: 1.04; }
.druga-kolekcja-tekst { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.druga-kolekcja-nazwa { font-size: clamp(38px, 4.4vw, 56px); line-height: 1; font-variant-caps: all-small-caps; letter-spacing: .05em; }
.druga-kolekcja .dalej { margin-top: 12px; }

/* podstrony tekstowe: polityka prywatności, potwierdzenie zapisu */
.strona-tekst { max-width: 820px; padding-top: 80px; padding-bottom: 110px; }
.strona-tekst h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 16px; }
.strona-tekst h2 { font-size: 30px; margin: 48px 0 14px; letter-spacing: -.01em; }
.strona-tekst h3 { font-size: 22px; font-style: italic; margin: 26px 0 8px; }
.strona-tekst ul { padding-left: 1.2em; margin: 0 0 1em; }
.strona-tekst li { margin-bottom: .4em; }
.data-zmiany { color: var(--szary); font-style: italic; }
.stopka .stopka-dol:first-child { margin-top: 0; }

/* telefon i tablet */
@media (max-width: 900px) {
  body { font-size: 18px; }
  .kontener { padding: 0 20px; }
  .naglowek-wiersz { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 14px; }
  .menu { gap: 22px; font-size: 16px; overflow-x: auto; max-width: 100%; }
  .otwarcie-zdjecie { margin-top: 20px; }
  .ai { font-size: 10px; right: 10px; bottom: 8px; }
  .otwarcie-zdjecie img { aspect-ratio: 4 / 3.4; }
  .otwarcie-tekst, .gosciniec-siatka, .manifest, .dla-firm-siatka, .listy, .produkty, .stopka-siatka { grid-template-columns: 1fr; gap: 36px; }
  .otwarcie-tekst { margin-top: 28px; margin-bottom: 90px; }
  .szeroki { margin-top: 70px; }
  .gosciniec { margin-top: 100px; padding: 80px 0; }
  .manifest, .listy { padding-top: 90px; padding-bottom: 90px; }
  .dla-firm { padding: 80px 0; }
  .formularz { grid-template-columns: 1fr; }
  .zapis { grid-template-columns: 1fr; gap: 12px; }
  .zapis input[type=email] { border-right: 1px solid #CDBFA9; }
  .stopka-dol { flex-direction: column; }
  .zestaw-siatka { grid-template-columns: 1fr; gap: 36px; }
  .zestaw-opis { position: static; }
  .galeria-miniatury { gap: 6px; }
  .scena { margin-top: 80px; }
  .druga-kolekcja { grid-template-columns: 120px 1fr; gap: 22px; margin-top: 80px; }
}
