/* Projekt C — „Galeria”: zdjęcia oprawione jak obrazy na jasnej ścianie, elegancki krój Bodoni, czytelny Figtree. Dla klientów 40+: duży tekst, wyraźne przyciski. */

:root {
  --wall: #F1EAE0;
  --paper: #FBF8F3;
  --cream: #F6F1EA;
  --sand: #E6DCCF;
  --green: #30513A;
  --deep: #24402D;
  --brass: #8C7148;
  --brass-text: #765E3B;
  --ink: #22302A;
  --muted: #4E5A52;
  --hair: rgba(140, 113, 72, .42);
  --line: rgba(36, 64, 45, .14);
  --display: "Bodoni Moda", Didot, Georgia, serif;
  --sans: "Figtree", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 88px);
  --max: 1680px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a[href^="tel"] { white-space: nowrap; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--cream); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--green); color: var(--cream); padding: 12px 16px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
/* Bodoni w odmianie do tekstu (opsz 14): mocniejsze kreski i normalne odstępy, czytelne także w dużych tytułach. */
h1, h2, h3, .work__title, .rating__num { font-optical-sizing: none; font-variation-settings: "opsz" 14; }
.rating__num { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--deep); text-wrap: balance; }
h2 { font-size: clamp(32px, 2.9vw, 48px); line-height: 1.12; letter-spacing: -.015em; }

/* Oprawa zdjęcia: jasne passe-partout, cienka mosiężna linia i delikatny cień jak obraz na ścianie */
.mat { display: block; padding: clamp(10px, 1.1vw, 18px); background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 22px 40px -30px rgba(36, 64, 45, .45); }
.mat img { width: 100%; object-fit: cover; }
.section--paper .mat { background: #fff; }

/* Pasek informacyjny */
.info { background: var(--sand); color: var(--deep); font-size: 16px; }
.info__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.info a { font-weight: 600; text-decoration: none; }
.info a:hover { text-decoration: underline; }

/* Nagłówek: logo, menu na środku, narzędzia */
.head { border-bottom: 1px solid var(--hair); }
.head__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 92px; }
.logo { display: block; width: 150px; height: 50px; color: var(--green); justify-self: start; }
.logo span { display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: var(--logo) left center / contain no-repeat; mask: var(--logo) left center / contain no-repeat; }
.nav { display: flex; gap: clamp(20px, 2vw, 36px); font-size: 17px; font-weight: 500; }
.nav a { white-space: nowrap; text-decoration: none; padding: 10px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--brass); }
.tools { display: flex; justify-content: flex-end; align-items: center; gap: 22px; font-size: 17px; font-weight: 500; }
.tool { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; padding: 8px 0; }
.tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.tool:hover { color: var(--green); text-decoration: underline; }
.count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--green); color: var(--cream); font-size: 14px; line-height: 24px; text-align: center; }
.menu { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0; border: 0; background: none; font-weight: 600; font-size: 17px; cursor: pointer; }
.bars { position: relative; width: 22px; height: 2px; background: currentColor; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.mnav { display: grid; padding: 4px var(--gutter) 20px; border-top: 1px solid var(--hair); }
.mnav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 500; text-decoration: none; }
.mnav[hidden] { display: none; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border: 1.5px solid var(--green); border-radius: 0; background: transparent; color: var(--green); font: 600 17px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--green); color: var(--cream); }
.btn--solid { background: var(--green); color: var(--cream); }
.btn--solid:hover { background: var(--deep); border-color: var(--deep); }
.btn--block { width: 100%; padding-inline: 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.link { color: var(--green); font-weight: 600; text-underline-offset: 5px; white-space: nowrap; }

/* Pierwszy ekran: duże oprawione zdjęcie i podpis pod nim, jak w galerii */
.hero { padding-top: clamp(24px, 3vw, 44px); }
.hero__img img { height: clamp(300px, calc(100vh - 470px), 600px); }
.hero__caption { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: end; padding-top: clamp(24px, 2.4vw, 36px); }
h1 { font-size: clamp(40px, 3.6vw, 64px); line-height: 1.06; letter-spacing: -.02em; }
.hero__side { display: grid; gap: 22px; }
.hero__side p { max-width: 34em; font-size: 19px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(32px, 3.5vw, 52px); padding-top: 22px; border-top: 1px solid var(--hair); }
.facts li { font-size: 16px; line-height: 1.5; color: var(--muted); }
.facts strong { display: block; font-size: 17px; font-weight: 600; color: var(--deep); }
.facts a { color: var(--green); font-weight: 600; }

/* Sekcje */
.section { padding-block: clamp(64px, 7vw, 112px); }
.section--paper { background: var(--paper); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(28px, 3vw, 44px); }

/* Kolekcje */
.gallery4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 40px); }
.work { display: grid; gap: 6px; text-decoration: none; }
.work .mat { margin-bottom: 16px; }
.work img { aspect-ratio: 4 / 5; transition: transform .8s ease; }
.work .mat { overflow: hidden; }
.work:hover img { transform: scale(1.03); }
.work__title { font: 500 27px/1.15 var(--display); color: var(--deep); }
.work__meta { font-size: 16px; color: var(--muted); }
.work:hover .work__title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Produkty */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 40px); }
.product { display: flex; flex-direction: column; gap: 6px; }
.product .mat { margin-bottom: 16px; }
.product img { aspect-ratio: 640 / 760; }
.product h3 { font-size: 27px; line-height: 1.15; }
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.product__notes { font-size: 16px; font-weight: 600; color: var(--brass-text); }
.product__meta { font-size: 16px; color: var(--muted); }
.product__price { margin-top: auto; padding-top: 8px; font-size: 22px; font-weight: 600; }
.product .btn { margin-top: 10px; }

/* Prezent z dedykacją */
.gift { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.gift__img img { aspect-ratio: 900 / 1040; }
.gift__text { display: grid; gap: 22px; }
.steps { display: grid; gap: 18px; margin-top: 6px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; color: var(--muted); }
.steps span { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--hair); border-radius: 50%; font: 600 20px/1 var(--sans); color: var(--deep); background: var(--paper); }
.steps strong { display: block; font-size: 19px; font-weight: 600; color: var(--deep); }
.gift__label { margin-top: 8px; font-weight: 600; color: var(--deep); }
.occasions { display: flex; flex-wrap: wrap; gap: 10px; }
.occasions a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--hair); background: var(--paper); font-size: 17px; font-weight: 500; text-decoration: none; }
.occasions a:hover { border-color: var(--green); }

/* Ocena z Allegro */
.rating__in { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 64px); }
.rating__num { font: 500 clamp(76px, 9vw, 150px)/1 var(--display); color: var(--green); letter-spacing: -.02em; }
.rating__in h2 { font-size: clamp(28px, 2.6vw, 42px); }
.rating__in p { margin-top: 10px; color: var(--muted); }
.rating__in a { color: var(--green); font-weight: 600; text-underline-offset: 4px; }

/* O nas */
.story { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.story__text { display: grid; gap: 22px; justify-items: start; }
.story__text p { max-width: 34em; color: var(--muted); }
.story__img img { aspect-ratio: 9 / 11; }

/* Warsztaty */
.ws { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.ws__img img { aspect-ratio: 1100 / 740; }
.ws__text { display: grid; gap: 22px; }
.ws__text p { max-width: 32em; color: var(--muted); }

/* Kontakt i newsletter */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.visit__text { display: grid; gap: 24px; justify-items: start; }
.visit__list { width: 100%; border-top: 1px solid var(--hair); }
.visit__list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.visit__list dt { font-weight: 600; color: var(--deep); }
.visit__list dd { min-width: 0; overflow-wrap: anywhere; font-size: 20px; line-height: 1.45; }
.visit__list a { color: var(--green); text-decoration: none; }
.visit__list a:hover { text-decoration: underline; }
.news { display: grid; gap: 12px; padding: clamp(24px, 3vw, 44px); background: var(--paper); box-shadow: 0 0 0 1px var(--hair); }
.news h2 { font-size: clamp(28px, 2.4vw, 38px); }
.news p { color: var(--muted); }
.news label { margin-top: 6px; font-size: 17px; font-weight: 600; }
.news input { height: 56px; padding: 0 16px; border: 1.5px solid var(--sand); background: #fff; font-size: 18px; }
.news input:focus { outline: none; border-color: var(--green); }

/* Stopka */
.foot { background: var(--deep); color: var(--cream); font-size: 17px; padding-top: 60px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.foot .logo { color: var(--cream); }
.foot__brand p { margin-top: 14px; color: #D3DBD1; max-width: 22em; }
.foot h2 { margin-bottom: 14px; font: 600 17px/1.2 var(--sans); letter-spacing: 0; color: #D3DBD1; }
.foot nav { display: grid; align-content: start; gap: 10px; }
.foot a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px 28px; border-top: 1px solid rgba(246, 241, 234, .2); font-size: 15px; color: #D3DBD1; }

.toast { position: fixed; right: 16px; bottom: 16px; z-index: 50; padding: 16px 20px; background: var(--deep); color: var(--cream); font-size: 17px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s; }
.toast.is-on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Nagłówek w jednym rzędzie potrzebuje około 1360 px. Niżej: same ikony przy Szukaj i Konto, poniżej 1200 px przycisk Menu. */
@media (max-width: 1359px) {
  .nav { gap: 18px; font-size: 16px; }
  .tools { gap: 12px; }
  .tool { min-width: 44px; min-height: 44px; justify-content: center; }
  .tool__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1199px) {
  .nav, .hide-m { display: none; }
  .menu { display: inline-flex; }
  .head__in { grid-template-columns: auto 1fr auto; min-height: 70px; gap: 16px; }
  .head .logo { width: 116px; height: 40px; justify-self: center; }
  .head .logo span { -webkit-mask-position: center; mask-position: center; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .info__in { justify-content: center; }
  .info__in span { display: none; }
  .hero__caption { grid-template-columns: 1fr; align-items: start; }
  .gallery4, .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift, .story, .ws, .visit { grid-template-columns: minmax(0, 1fr); }
  .story__img { order: -1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero__img img { height: auto; aspect-ratio: 4 / 3; }
  .mat { padding: 8px; }
  .facts { gap: 16px; }
  .section__head { flex-direction: column; gap: 8px; }
  .gallery4 { gap: 18px 14px; }
  .work__title { font-size: 21px; }
  .products { grid-template-columns: 1fr; gap: 26px; }
  .product { display: grid; grid-template-columns: 132px 1fr; column-gap: 16px; row-gap: 4px; align-content: start; }
  .product .mat { grid-row: span 4; margin: 0; align-self: start; }
  .product h3 { font-size: 24px; }
  .product__price { margin-top: 0; padding-top: 2px; font-size: 20px; }
  .product .btn { grid-column: 1 / -1; margin-top: 12px; }
  .btns .btn { flex: 1 1 100%; }
  .rating__in { flex-direction: column; text-align: center; gap: 12px; }
  .visit__list div { grid-template-columns: 90px minmax(0, 1fr); }
  .visit__list dd { font-size: 18px; }
  .foot__bottom { flex-direction: column; gap: 4px; }
}
@media (max-width: 400px) {
  .head__in { gap: 10px; }
  .head .logo { width: 100px; height: 36px; }
  .menu { gap: 8px; }
}
