/* Projekt A — ciepły, nowoczesny luksus (klimat Rituals). Dla klientów 40+: duży tekst, wyraźne przyciski. */

:root {
  --green: #30513A;
  --deep: #24402D;
  --cream: #F6F1EA;
  --paper: #FBF8F3;
  --sand: #EDE4D8;
  --sand-2: #E6DCCF;
  --brass: #8C7148;
  --ink: #23302A;
  --muted: #4F5C54;
  --line: rgba(36, 64, 45, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 88px);
  --max: 1680px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); 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, figure, address { margin: 0; }
ul { 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); }

/* Pasek informacyjny */
.topbar { background: var(--deep); color: var(--cream); font-size: 16px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; }

/* Nagłówek */
.head { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 36px; min-height: 84px; }
.logo { display: block; width: 136px; height: 46px; color: var(--green); flex: none; }
.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: 26px; font-size: 16px; font-weight: 500; }
.nav a { white-space: nowrap; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--green); }
.tools { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 16px; 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); }
.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: 16px; 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: 8px var(--gutter) 20px; border-top: 1px solid var(--line); background: var(--paper); }
.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: 54px; padding: 0 30px; border: 2px solid var(--green); border-radius: 4px; background: transparent; color: var(--green); font-size: 16px; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-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%; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.link { color: var(--green); font-weight: 600; text-underline-offset: 5px; }

/* Pierwszy ekran */
.hero { position: relative; min-height: clamp(520px, calc(100vh - 230px), 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--sand); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__wrap { position: relative; display: flex; justify-content: flex-end; padding-block: clamp(32px, 5vw, 64px); }
.hero__panel { max-width: 600px; padding: clamp(28px, 3.5vw, 48px); background: rgba(251, 248, 243, .95); border-radius: 4px; box-shadow: 0 18px 50px rgba(36, 64, 45, .12); display: grid; gap: 18px; }
h1 { font: 600 clamp(40px, 4.6vw, 64px)/1.05 var(--serif); color: var(--deep); letter-spacing: -.005em; text-wrap: balance; }
.hero__panel p { font-size: 19px; color: var(--muted); }

/* Pasek zaufania */
.trust { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 26px; }
.trust li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--muted); line-height: 1.45; }
.trust svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trust strong { display: block; color: var(--ink); font-weight: 600; }

/* Sekcje */
.section { padding-block: clamp(56px, 6.5vw, 96px); }
.section--sand { background: var(--sand); }
.section__head { max-width: 720px; margin-bottom: 36px; display: grid; gap: 10px; }
.section__head p { color: var(--muted); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
h2 { font: 600 clamp(34px, 3.4vw, 48px)/1.1 var(--serif); color: var(--deep); text-wrap: balance; }

/* Kategorie */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat { position: relative; display: block; overflow: hidden; border-radius: 4px; text-decoration: none; background: var(--sand); }
.cat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.cat span { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px 18px; background: rgba(251, 248, 243, .95); border-radius: 3px; font-size: 18px; font-weight: 600; color: var(--deep); display: flex; justify-content: space-between; align-items: center; }
.cat span::after { content: ""; width: 9px; height: 9px; border-top: 2px solid var(--green); border-right: 2px solid var(--green); transform: rotate(45deg); }
.cat:hover img { transform: scale(1.04); }

/* Produkty */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { display: flex; flex-direction: column; background: #fff; border-radius: 4px; overflow: hidden; }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 20px 22px; }
.product h3 { font: 600 28px/1.1 var(--serif); color: var(--deep); }
.product p { font-size: 16px; color: var(--muted); }
.product .price { margin-top: auto; padding-top: 6px; font-size: 22px; font-weight: 600; color: var(--ink); }
.product .btn { margin-top: 10px; }

/* Okazje */
.occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.occ { display: grid; gap: 8px; text-decoration: none; }
.occ img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 8px; transition: opacity .3s; }
.occ strong { font: 600 28px/1.1 var(--serif); color: var(--deep); }
.occ span { font-size: 16px; color: var(--muted); }
.occ:hover img { opacity: .9; }
.occ:hover strong { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Historia */
.story { background: var(--cream); }
.story__in { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 6.5vw, 96px); }
.story__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.story__text { display: grid; gap: 20px; justify-items: start; max-width: 560px; }
.story__text p { color: var(--muted); }

/* Ocena z Allegro */
.rating { text-align: center; display: grid; gap: 12px; justify-items: center; }
.rating h2 { max-width: 20ch; }
.rating p { color: var(--muted); max-width: 60ch; }
.rating a { color: var(--green); font-weight: 600; text-underline-offset: 5px; }

/* Warsztaty */
.ws { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ws__text { display: grid; gap: 20px; }
.ws__text p { color: var(--muted); max-width: 52ch; }
.ws__img img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; border-radius: 4px; }

/* Newsletter */
.news { text-align: center; display: grid; gap: 12px; justify-items: center; }
.news > p { color: var(--muted); }
.news__form { width: min(560px, 100%); display: grid; gap: 8px; text-align: left; margin-top: 10px; }
.news__form label { font-size: 16px; font-weight: 600; }
.news__form div { display: flex; gap: 10px; }
.news__form input { flex: 1; min-width: 0; height: 56px; padding: 0 16px; border: 2px solid var(--sand-2); border-radius: 4px; background: #fff; font-size: 17px; }
.news__form input:focus { outline: none; border-color: var(--green); }

/* Stopka */
.foot { background: var(--deep); color: var(--cream); font-size: 16px; padding-top: 56px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot .logo { color: var(--cream); }
.foot__brand p { margin-top: 14px; color: #D7DED5; }
.foot address { margin-top: 14px; font-style: normal; line-height: 1.7; }
.foot h2 { font: 600 16px/1.2 var(--sans); letter-spacing: .02em; color: #D7DED5; margin-bottom: 14px; }
.foot nav { display: grid; align-content: start; gap: 10px; }
.foot a { text-decoration: none; }
.foot 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: 14px; color: #D7DED5; }

.toast { position: fixed; right: 16px; bottom: 16px; z-index: 50; padding: 16px 20px; border-radius: 4px; background: var(--deep); color: var(--cream); font-size: 16px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); }
.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: mniejsze odstępy i same ikony przy Szukaj i Konto, a poniżej 1100 px przycisk Menu. */
@media (max-width: 1359px) {
  .nav { gap: 18px; font-size: 15px; }
  .head__in { gap: 24px; }
  .tools { gap: 16px; }
  .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: 1180px) {
  .products, .cats, .occasions { grid-template-columns: repeat(2, 1fr); }
  .trust__in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1099px) {
  .nav, .hide-m { display: none; }
  .menu { display: inline-flex; }
  .head__in { min-height: 68px; gap: 16px; }
  .head .logo { width: 112px; height: 38px; margin-inline: auto; }
  .tools { margin-left: 0; }
}
@media (max-width: 900px) {
  .topbar__in { justify-content: space-between; font-size: 15px; }
  .hero { display: block; min-height: 0; }
  .hero__img { position: static; height: 340px; }
  .hero__wrap { padding: 0; }
  .hero__panel { max-width: none; border-radius: 0; box-shadow: none; padding: 28px var(--gutter) 32px; }
  .story__in, .ws { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hide-s { display: none; }
  .topbar__in { justify-content: center; font-size: 15px; }
  .products { grid-template-columns: 1fr; gap: 14px; }
  .product { display: grid; grid-template-columns: 124px 1fr; }
  .product img { height: 100%; aspect-ratio: auto; }
  .product__body { padding: 14px 16px 16px; gap: 4px; }
  .product h3 { font-size: 25px; }
  .product p { font-size: 15px; }
  .product .price { font-size: 20px; }
  .product .btn { min-height: 48px; margin-top: 8px; padding: 0 12px; }
  .cats { gap: 18px 12px; }
  .cat { background: none; }
  .cat img { aspect-ratio: 1; border-radius: 4px; }
  .cat span { position: static; padding: 10px 2px 0; background: none; font-size: 17px; }
  .cat span::after { display: none; }
  .occasions { grid-template-columns: 1fr 1fr; gap: 16px; }
  .occ strong { font-size: 24px; }
  .occ span { font-size: 15px; }
  .trust__in { grid-template-columns: 1fr; gap: 16px; }
  .btns .btn { flex: 1 1 100%; }
  .news__form div { flex-direction: column; }
  .news__form input { flex: none; }
  .section__head--row { flex-direction: column; gap: 8px; }
}

/* Linki do podstron */
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 400px) {
  .product { grid-template-columns: 104px 1fr; }
  .head__in { gap: 10px; }
  .head .logo { width: 96px; height: 34px; }
  .menu { gap: 8px; }
}
