/* Projekt B — naturalny butik i pochodzenie (klimat L'Occitane). Dla klientów 40+: duży tekst, wyraźne przyciski. */

:root {
  --green: #30513A;
  --deep: #24402D;
  --cream: #F6F1EA;
  --paper: #FBF8F3;
  --sand: #ECE4D8;
  --brass: #8C7148;
  --brass-text: #765E3B;
  --ink: #26302A;
  --muted: #4D5A51;
  --line: rgba(36, 64, 45, .16);
  --serif: "Lora", Georgia, serif;
  --sans: "Source Sans 3", "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(--paper); color: var(--ink); font: 400 19px/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); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--deep); text-wrap: balance; }
h2 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.15; }

/* Nagłówek: telefon, logo na środku, menu w drugim rzędzie */
.head { background: var(--paper); border-bottom: 1px solid var(--line); }
.head__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 96px; }
.head__phone { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: 17px; font-weight: 600; color: var(--deep); text-decoration: none; }
.head__phone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.head__phone:hover { text-decoration: underline; }
.logo { display: block; width: 168px; height: 56px; color: var(--green); }
.logo span { display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.tools { display: flex; justify-content: flex-end; align-items: center; gap: 24px; font-size: 17px; }
.tool { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; white-space: nowrap; text-decoration: none; }
.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; }
.nav { border-top: 1px solid var(--line); }
.nav__in { display: flex; justify-content: center; gap: clamp(20px, 2.6vw, 40px); min-height: 58px; align-items: center; font-size: 17px; font-weight: 600; }
.nav a { white-space: nowrap; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--brass); }
.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; justify-self: start; }
.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(--line); }
.mnav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; 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: 2px solid var(--green); border-radius: 2px; background: transparent; color: var(--green); font-size: 18px; font-weight: 600; 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--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--deep); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.link { color: var(--green); font-weight: 600; font-size: 18px; text-underline-offset: 5px; }

/* Pierwszy ekran: tekst i zdjęcie obok siebie */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: clamp(560px, calc(100vh - 160px), 820px); background: var(--cream); }
.hero__text { display: grid; align-content: center; gap: 22px; padding: 56px clamp(32px, 5vw, 80px) 56px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.hero__place { font-size: 17px; color: var(--brass-text); font-weight: 600; }
h1 { font-size: clamp(40px, 3.3vw, 58px); line-height: 1.1; max-width: 13em; }
.hero__lead { max-width: 34em; color: var(--muted); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 6px; font-size: 17px; color: var(--muted); }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg) translateY(-3px); }
.hero__img { position: relative; }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Sekcje */
.section { padding-block: clamp(60px, 7vw, 104px); }
.section--sand { background: var(--sand); }
.section__head { display: grid; gap: 12px; margin-bottom: 44px; }
.section__head p { color: var(--muted); max-width: 40em; }
.section__head--center { text-align: center; justify-items: center; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section__head--row > div { display: grid; gap: 10px; }

/* Z czego robimy świece */
.ingredients { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); text-align: center; }
.ingredients li { display: grid; gap: 12px; justify-items: center; }
.ingredients img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 10px; }
.ingredients h3 { font-size: 27px; }
.ingredients p { color: var(--muted); max-width: 26em; }

/* Ulubione zapachy */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.product { display: flex; flex-direction: column; gap: 6px; }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 14px; }
.product h3 { font-size: 29px; }
.product .notes { color: var(--brass-text); font-weight: 600; }
.product .meta { font-size: 17px; color: var(--muted); }
.product__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.product .price { font-size: 24px; font-weight: 600; }

/* Prezent z dedykacją */
.gifts { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.gifts__img img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; }
.gifts__text { display: grid; gap: 18px; }
.gifts__text > p { color: var(--muted); }
.occasions { margin-top: 10px; border-top: 1px solid var(--line); }
.occasions a { display: flex; align-items: center; gap: 16px; min-height: 68px; padding-block: 10px; border-bottom: 1px solid var(--line); text-decoration: none; }
.occasions span { flex: 1; font: 500 24px/1.2 var(--serif); color: var(--deep); }
.occasions small { font-size: 17px; color: var(--muted); }
.occasions a::after { content: ""; width: 10px; height: 10px; border-top: 2px solid var(--green); border-right: 2px solid var(--green); transform: rotate(45deg); margin-right: 6px; }
.occasions a:hover span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Pracownia */
.story { background: var(--deep); color: var(--cream); }
.story__in { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(60px, 7vw, 104px); }
.story h2 { color: var(--cream); }
.story__text { display: grid; gap: 20px; justify-items: start; }
.story__text p { color: #DCE3DA; max-width: 34em; }
.story__img img { width: 100%; aspect-ratio: 8 / 9; object-fit: cover; }

/* Opinie i zaufanie */
.proof { background: var(--cream); border-bottom: 1px solid var(--line); }
.proof__in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(52px, 6vw, 88px); }
.proof__score { display: grid; gap: 6px; }
.proof__num { font: 500 clamp(64px, 7vw, 96px)/1 var(--serif); color: var(--green); }
.proof__score h2 { font-size: clamp(26px, 2.4vw, 32px); }
.proof__score p:last-child { margin-top: 8px; color: var(--muted); font-size: 17px; }
.proof a { color: var(--green); font-weight: 600; text-underline-offset: 4px; }
.proof__list { display: grid; gap: 22px; }
.proof__list li { padding-left: 22px; border-left: 2px solid var(--brass); color: var(--muted); }
.proof__list strong { display: block; color: var(--ink); font-size: 20px; }

/* Warsztaty */
.ws { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ws__img img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; }
.ws__text { display: grid; gap: 20px; }
.ws__text p { color: var(--muted); max-width: 34em; }

/* Kontakt i newsletter */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.visit__text { display: grid; gap: 18px; justify-items: start; }
.visit address { font-style: normal; font-size: 22px; line-height: 1.5; }
.visit a:not(.btn) { color: var(--green); font-weight: 600; text-underline-offset: 4px; }
.news { display: grid; gap: 12px; padding: clamp(28px, 3vw, 40px); background: #fff; border: 1px solid var(--line); }
.news h2 { font-size: 30px; }
.news p { color: var(--muted); }
.news label { margin-top: 6px; font-size: 17px; font-weight: 600; }
.news input { height: 56px; padding: 0 16px; border: 2px solid #D9CEBF; border-radius: 2px; background: #fff; font-size: 18px; }
.news input:focus { outline: none; border-color: var(--green); }

/* Stopka */
.foot { background: var(--cream); border-top: 1px solid var(--line); font-size: 17px; padding-top: 56px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot .logo { width: 150px; height: 50px; }
.foot .logo span { -webkit-mask-position: left center; mask-position: left center; }
.foot__brand p { margin-top: 14px; color: var(--muted); max-width: 22em; }
.foot h2 { font: 600 17px/1.2 var(--sans); color: var(--deep); margin-bottom: 14px; }
.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 var(--line); font-size: 15px; color: var(--muted); }

.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; } }

@media (max-width: 1100px) {
  .nav__in { gap: 22px; font-size: 16px; }
  .products { gap: 22px; }
  .product__buy { flex-direction: column; align-items: stretch; }
  .product__buy .btn { width: 100%; }
}
@media (max-width: 900px) {
  .head__top { grid-template-columns: auto 1fr auto; min-height: 0; padding-block: 10px; column-gap: 12px; }
  .head__phone { grid-column: 1 / -1; order: -1; justify-self: stretch; justify-content: center; margin: -10px calc(var(--gutter) * -1) 8px; padding: 9px; background: var(--deep); color: var(--cream); font-size: 16px; }
  .menu { display: inline-flex; }
  .head .logo { width: 120px; height: 42px; justify-self: center; }
  .nav, .hide-m { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__img { order: -1; }
  .hero__img img { position: static; aspect-ratio: 4 / 3; height: auto; }
  .hero__text { padding: 30px var(--gutter) 40px; gap: 18px; }
  .ingredients, .products { grid-template-columns: 1fr; }
  .ingredients { gap: 40px; }
  .gifts, .story__in, .proof__in, .ws, .visit { grid-template-columns: 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: 18px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .product { display: grid; grid-template-columns: 132px 1fr; column-gap: 16px; row-gap: 4px; align-items: start; }
  .product img { grid-row: 1 / span 3; margin: 0; }
  .product h3 { font-size: 25px; }
  .product .meta { font-size: 16px; }
  .product__buy { grid-column: 1 / -1; flex-direction: row; align-items: center; padding-top: 14px; margin-top: 8px; }
  .product__buy .btn { width: auto; flex: 1; padding: 0 16px; }
  .occasions span { font-size: 21px; }
  .btns .btn { flex: 1 1 100%; }
  .foot__bottom { flex-direction: column; gap: 4px; }
}

/* 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) {
  .head__top { column-gap: 8px; }
  .head .logo { width: 100px; height: 36px; }
  .menu { gap: 8px; }
}
