:root {
  --paper: #f7f5ef;
  --tint: #efeee8;
  --ink: #2d302a;
  --soft: #6b6e65;
  --olive: #68715c;
  --line: #d9d8cf;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --logo: "Nunito", "DM Sans", sans-serif;

  /* jeden wspólny margines boczny dla wszystkich sekcji, żeby krawędzie się zgadzały */
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --pad-x: max(var(--gutter), calc((100% - var(--max)) / 2));
  --section-y: clamp(64px, 9vw, 104px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { padding-inline: var(--pad-x); }

/* typografia */
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 66px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.025em; }
h1 em, h2 em { color: var(--olive); font-weight: 500; }
h3 { margin: 0; font: 500 22px/1.25 var(--serif); }
.eyebrow {
  margin: 0 0 14px; color: var(--soft);
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}

/* logo: napis jak na szyldzie + znak z łodygami */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 17px/0.98 var(--logo); letter-spacing: -0.01em; color: var(--ink);
}
.znak { width: 22px; height: 36px; flex: none; color: var(--ink); }

/* nagłówek */
.site-header {
  min-height: 80px; display: flex; align-items: center; gap: 40px;
  border-bottom: 1px solid var(--line);
  /* pasek zostaje na górze ekranu przy przewijaniu */
  position: -webkit-sticky; position: sticky; top: 0; z-index: 10; background: var(--paper);
}
nav { display: flex; gap: 32px; margin-left: auto; font-size: 14px; color: var(--soft); }
nav a, .call-link, .simple-link, .phone, .site-footer a { transition: opacity .2s ease; }
nav a:hover, .call-link:hover, .simple-link:hover, .phone:hover, .site-footer a:hover { opacity: .6; }
.call-link { font-size: 14px; font-weight: 500; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.call-icon { display: none; width: 18px; height: 18px; }

/* ikonki FB / IG / Google: kontur w cienkim kółku, tło strony prześwituje */
.icon-link {
  width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent;
  transition: border-color .2s ease, color .2s ease;
}
.icon-link:hover { border-color: var(--olive); color: var(--olive); }
.ico { width: 20px; height: 20px; }
.header-social { display: flex; gap: 8px; margin-left: -8px; }
.header-social .icon-link { width: 36px; height: 36px; }
.header-social .ico { width: 17px; height: 17px; }

/* przyciski i linki */
.button {
  min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 20px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  transition: background .2s ease;
}
.button:hover { background: #454940; }
.simple-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding-bottom: 4px; border-bottom: 1px solid #a5a69b; font-size: 14px; font-weight: 500;
}
/* strzałki rysowane (SVG), nie znaki ↗ ↓ — Safari na iPhonie zamienia je na emoji */
.simple-link::after {
  content: ""; width: 11px; height: 11px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 14 14%27%3E%3Cpath d=%27M3.5 10.5l7-7M5 3.5h5.5V9%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 14 14%27%3E%3Cpath d=%27M3.5 10.5l7-7M5 3.5h5.5V9%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
}
.arrow { width: 14px; height: 14px; flex: none; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  padding-block: clamp(32px, 5vw, 56px) var(--section-y);
}
.hero-text { max-width: 440px; margin: 24px 0 32px; color: var(--soft); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-image { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; object-position: center 48%; }

/* sekcje */
.section { padding-block: var(--section-y); }
.offer, .contact { background: var(--tint); }
.section-heading { margin-bottom: 40px; }

.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.offer-grid article { padding-top: 18px; border-top: 1px solid var(--line); }
.number { color: var(--soft); font-size: 13px; }
.offer-grid h3 { margin: 14px 0 8px; }
.offer-grid p { max-width: 300px; margin: 0; color: var(--soft); font-size: 15px; line-height: 1.7; }

/* galeria */
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { min-width: 0; margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tint); }

/* kontakt */
.contact-grid {
  display: grid; gap: 32px;
  padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 40px;
}
.contact-grid h3 {
  margin-bottom: 14px; font: 600 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive);
}
.contact-grid p { margin: 0 0 14px; line-height: 1.7; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.people li { display: grid; gap: 2px; }
.people span { color: var(--soft); font-size: 13px; }
.phone { font: 500 22px/1.2 var(--serif); font-variant-numeric: lining-nums; white-space: nowrap; }
.socials { display: flex; gap: 10px; }
.hours { margin: 0; display: grid; gap: 6px; }
.hours div { display: grid; grid-template-columns: 88px auto; gap: 12px; }
.hours dt, .hours dd { margin: 0; }
.hours dt { color: var(--soft); }

/* kontakt: zdjęcie kwiaciarni obok danych, bez ramki, jak zdjęcia w galerii */
.contact { padding-top: 0; }
.contact-top { padding-top: var(--section-y); padding-bottom: 40px; }
.contact-inner { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; margin-bottom: 0; }
.contact-card { margin: 0; }
.contact-card img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; }

.map { height: clamp(280px, 36vw, 400px); background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.75) saturate(.65); }

/* stopka */
.site-footer {
  min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--soft); font-size: 14px;
}

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

/* tablet */
@media (max-width: 900px) {
  .offer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .contact-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
/* telefon i mały tablet: wszystko wyśrodkowane, jak na większości stron kwiaciarni */
@media (max-width: 760px) {
  /* nagłówek: logo na środku, ikonka telefonu po prawej */
  .site-header { justify-content: center; min-height: 72px; }
  html { scroll-padding-top: 72px; }
  nav { display: none; }
  .call-link {
    position: absolute; right: var(--pad-x); top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; padding: 0; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%;
  }
  .call-link span { display: none; }
  .header-social { position: absolute; left: var(--pad-x); top: 50%; transform: translateY(-50%); margin: 0; gap: 6px; }
  .header-social .icon-link { width: 42px; height: 42px; }
  .header-social .ico { width: 18px; height: 18px; }
  .socials { justify-content: center; }
  .call-icon { display: block; }

  /* hero: najpierw zdjęcie, potem tekst */
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; text-align: center; }
  .hero-image { order: -1; aspect-ratio: 4 / 4.4; max-height: 480px; }
  .hero-text { margin: 18px auto 28px; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-actions .button { width: 100%; max-width: 340px; justify-content: center; }

  .section-heading, .gallery-heading { text-align: center; }
  .section-heading { margin-bottom: 32px; }

  .offer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .offer-grid p { margin-inline: auto; }

  .gallery-heading { display: block; margin-bottom: 32px; }
  .gallery-heading .simple-link { margin-top: 18px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .contact-grid { grid-template-columns: 1fr; row-gap: 32px; text-align: center; }
  .people li { justify-items: center; }
  .hours { justify-content: center; }
  .hours div { text-align: left; }

  /* zdjęcie nad danymi */
  .contact-inner { grid-template-columns: 1fr; }
  .contact-card { width: 100%; max-width: 420px; margin: 0 auto 8px; }

  .site-footer { flex-direction: column; justify-content: center; gap: 10px; padding-block: 32px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
