/* ==========================================================================
   winevents.pl — Michał Popiołek DipWSET
   Paleta: dojrzewające winogrono (véraison) — liść, owoc, osad.
   ========================================================================== */

/* ---------- Fonty (self-hosted, bez zewnętrznych zapytań) ---------- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/newsreader-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/newsreader-latin.woff2") format("woff2-variations");
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

/* ---------- Tokeny ---------- */
:root {
  --ink: #261821;        /* osad / moszcz — tekst i ciemne sekcje */
  --ink-soft: #3a2a33;
  --paper: #f4f3ee;      /* wapienna biel — tło */
  --paper-deep: #e9e7df;
  --vine: #55613a;       /* liść winorośli */
  --vine-light: #a7b183;
  --grape: #6b2448;      /* véraison — akcent, przyciski */
  --grape-deep: #4a1832;
  --blush: #e4d9dd;      /* osad na szkle */
  --stone: #534d4a;      /* tekst pomocniczy (kontrast AA na --paper) */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.4rem + 2.8vw, 3.25rem);
  --step-5: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --rule: 1px solid rgba(38, 24, 33, 0.16);
  --rule-light: 1px solid rgba(228, 217, 221, 0.22);
  --radius: 3px;
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.1; letter-spacing: -0.012em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; }
ul, ol, dl { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible { outline: 2px solid var(--grape); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--vine-light); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 38em; }
.muted { color: var(--stone); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }
.section-head p { margin: 0; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.8rem 1.5rem;
  font: 600 var(--step-0)/1.2 var(--sans);
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--grape); color: var(--paper); }
.btn-primary:hover { background: var(--grape-deep); }
.btn-ghost { border-color: rgba(38, 24, 33, 0.35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(38, 24, 33, 0.04); }
.btn-light { background: var(--paper); color: var(--grape-deep); }
.btn-light:hover { background: #fff; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 243, 238, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(38, 24, 33, 0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: baseline; gap: 0.45rem; text-decoration: none; white-space: nowrap; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 550; letter-spacing: -0.01em; }
.brand-title { font-family: var(--sans); font-size: 0.82rem; font-weight: 600; color: var(--grape); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-list { display: flex; gap: clamp(1rem, 2vw, 1.75rem); }
.nav-list a { text-decoration: none; font-size: 0.97rem; padding-block: 0.4rem; border-bottom: 1px solid transparent; }
.nav-list a:hover { border-bottom-color: currentColor; }
.nav .btn { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

.nav-toggle {
  display: none; align-items: center; gap: 0.6rem;
  background: none; border: 1px solid rgba(38, 24, 33, 0.3); border-radius: var(--radius);
  font: 600 0.95rem var(--sans); color: var(--ink); padding: 0.55rem 0.9rem; cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 10px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: var(--rule);
    padding: 0.5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 0.9rem 0; border-bottom: var(--rule); font-size: 1.05rem; }
  .nav .btn { margin-top: 1.25rem; min-height: 3rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem); }
.hero-grid {
  display: grid; column-gap: clamp(2.5rem, 6vw, 5.5rem); row-gap: clamp(2rem, 4vw, 3.25rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas: "title title" "copy figure";
  align-items: start;
}
.hero-title {
  grid-area: title;
  font-size: clamp(2.5rem, 1.1rem + 5.2vw, 5.5rem); line-height: 1.04; font-weight: 450; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-copy { grid-area: copy; padding-top: 0.5rem; }
.hero .lede { margin-bottom: 2rem; max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule); }
.hero-facts div { padding: 1.1rem 1.25rem 0 0; }
.hero-facts div + div { padding-left: 1.25rem; border-left: var(--rule); }
.hero-facts dt { font-family: var(--serif); font-size: var(--step-1); font-weight: 600; line-height: 1.2; margin-bottom: 0.35rem; }
.hero-facts dd { margin: 0; font-size: 0.93rem; line-height: 1.45; color: var(--stone); }

.hero-figure { grid-area: figure; margin: 0; position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero-figure figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--stone); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "title" "figure" "copy"; }
  .hero-figure { max-width: 30rem; }
  .hero-figure img { aspect-ratio: 5 / 4; object-position: 50% 18%; }
  .hero-title .line { display: inline; }
}
@media (max-width: 560px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div, .hero-facts div + div { padding: 0.9rem 0; border-left: 0; border-bottom: var(--rule); }
}

/* Jedyna sekwencja ruchu: wejście hero */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line, .js .hero .lede, .js .hero-actions, .js .hero-facts { opacity: 0; transform: translateY(14px); }
  .js .hero-figure img { opacity: 0; transform: scale(1.03); }
  .js.is-loaded .hero-title .line, .js.is-loaded .hero .lede, .js.is-loaded .hero-actions, .js.is-loaded .hero-facts {
    opacity: 1; transform: none; transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js.is-loaded .hero-figure img { opacity: 1; transform: none; transition: opacity 1.2s ease, transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js.is-loaded .hero-title .line:nth-child(2) { transition-delay: 0.12s; }
  .js.is-loaded .hero .lede { transition-delay: 0.28s; }
  .js.is-loaded .hero-actions { transition-delay: 0.38s; }
  .js.is-loaded .hero-facts { transition-delay: 0.5s; }
}

/* ---------- Roczniki (sekcja-wyróżnik) ---------- */
.vintages { background: var(--ink); color: var(--paper); }
.vintages .lede { color: var(--blush); }
.vintages-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem);
}
.vintages-head h2 { margin-bottom: 1.5rem; max-width: 14ch; }
.vintages-head .lede { margin: 0; }
.vineyard-photo { margin: 0; justify-self: end; max-width: 28rem; width: 100%; }
.vineyard-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.vineyard-photo figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--blush); opacity: 0.85; line-height: 1.45; }

.vintage-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3.5vw, 3rem); row-gap: clamp(2.5rem, 5vw, 4rem);
}
.vintage { border-top: var(--rule-light); padding-top: 1.25rem; }
.vintage-year {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.4rem, 2rem + 4.2vw, 5.5rem); line-height: 0.95; letter-spacing: -0.03em;
  color: var(--blush); margin-bottom: 1rem; font-variant-numeric: lining-nums;
}
.vintage-place { font-family: var(--sans); font-size: var(--step-1); font-weight: 600; line-height: 1.3; margin-bottom: 0.15rem; }
.vintage-region { display: block; color: var(--vine-light); font-size: 0.95rem; margin-bottom: 0.85rem; }
.vintage p { color: rgba(244, 243, 238, 0.82); font-size: 0.98rem; line-height: 1.6; margin: 0; max-width: 32em; }
.vintage-now { border-top-color: var(--vine-light); }
.vintage-now .vintage-year { color: var(--vine-light); }

@media (max-width: 960px) {
  .vintage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .vintages-head { grid-template-columns: 1fr; }
  .vineyard-photo { justify-self: start; max-width: none; }
  /* Pasek roczników przewijany w poziomie, jak karta win */
  .vintage-list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.25rem;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 1rem;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin; scrollbar-color: rgba(228, 217, 221, 0.4) transparent;
  }
  .vintage { flex: 0 0 78%; scroll-snap-align: start; }
  .vintages-hint { display: block; }
}
.vintages-hint { display: none; margin-top: 1rem; font-size: var(--step--1); color: var(--blush); opacity: 0.75; }

/* ---------- Oferta ---------- */
.offer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); }
.offer-item { border-top: var(--rule); padding-block: 1.75rem 2.5rem; display: grid; grid-template-rows: auto 1fr auto; gap: 0.9rem; }
.offer-item h3 { max-width: 20ch; }
.offer-item p { margin: 0; max-width: 34em; }
.offer-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; font-size: 0.93rem; padding-top: 0.25rem; }
.offer-meta dt { color: var(--vine); font-weight: 600; }
.offer-meta dd { margin: 0; color: var(--stone); }
.offer-cta {
  margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper-deep); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between;
}
.offer-cta p { margin: 0; font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; max-width: 28em; }

@media (max-width: 760px) {
  .offer-list { grid-template-columns: 1fr; }
}

/* ---------- O mnie ---------- */
.about { background: var(--paper-deep); }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-figure { margin: 0; position: sticky; top: 6.5rem; }
.about-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-figure figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--stone); }
.about-copy h2 { margin-bottom: 1.75rem; max-width: 16ch; }
.about-copy > p { max-width: 36em; }

.lenses { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.lenses-title { font-family: var(--serif); font-size: var(--step-3); line-height: 1.2; margin-bottom: 1.5rem; max-width: 22ch; }
.lens { display: grid; grid-template-columns: minmax(9rem, 0.4fr) 1fr; gap: 0.5rem 2rem; padding-block: 1.25rem; border-top: var(--rule); }
.lens dt { font-family: var(--serif); font-size: var(--step-1); line-height: 1.3; }
.lens dt small { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--stone); margin-top: 0.3rem; }
.lens dd { margin: 0; max-width: 34em; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { position: static; max-width: 30rem; }
}
@media (max-width: 560px) {
  .lens { grid-template-columns: 1fr; }
}

/* ---------- Kwalifikacje ---------- */
.credentials { margin-top: clamp(4.5rem, 9vw, 7.5rem); }
.credentials-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.cred-col h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 600; padding-bottom: 0.9rem; border-bottom: 2px solid var(--ink); margin-bottom: 0.25rem; }
.cred-col li { padding-block: 1.1rem; border-bottom: var(--rule); }
.cred-name { display: block; font-family: var(--serif); font-size: var(--step-1); line-height: 1.3; }
.cred-detail { display: block; color: var(--stone); font-size: 0.95rem; margin-top: 0.3rem; line-height: 1.5; }
.cred-year { font-variant-numeric: tabular-nums; color: var(--grape); font-weight: 600; }
.cred-col-wset li:first-child .cred-name { font-size: var(--step-2); }

@media (max-width: 900px) {
  .credentials-grid { grid-template-columns: 1fr 1fr; }
  .cred-col-wset { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .credentials-grid { grid-template-columns: 1fr; }
}

/* ---------- Proces ---------- */
.process { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.step { border-top: 2px solid var(--grape); padding-top: 1.25rem; }
.step-num { display: block; font-family: var(--serif); font-size: var(--step-3); color: var(--grape); line-height: 1; margin-bottom: 1rem; }
.step h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 600; margin-bottom: 0.6rem; }
.step p { margin: 0; color: var(--stone); font-size: 0.98rem; }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Galeria ---------- */
.gallery { background: var(--paper-deep); }
.gallery-grid { columns: 3; column-gap: clamp(0.6rem, 1.4vw, 1.1rem); }
.gallery-item {
  margin: 0 0 clamp(0.6rem, 1.4vw, 1.1rem); position: relative; overflow: hidden;
  border-radius: var(--radius); break-inside: avoid; -webkit-column-break-inside: avoid;
}
.gallery-item button { all: unset; display: block; width: 100%; cursor: zoom-in; position: relative; }
.gallery-item button:focus-visible { outline: 2px solid var(--grape); outline-offset: 3px; }
.gallery-item img { width: 100%; height: auto; transition: transform 0.6s ease; }
.gallery-item button:hover img { transform: scale(1.02); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.8rem;
  background: linear-gradient(to top, rgba(38, 24, 33, 0.75), rgba(38, 24, 33, 0));
  color: var(--paper); font-size: 0.9rem; pointer-events: none;
}
@media (max-width: 760px) {
  .gallery-grid { columns: 2; }
  .gallery-item figcaption { font-size: 0.8rem; padding: 2rem 0.7rem 0.6rem; }
}

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1500px); max-height: 92vh; width: auto; color: var(--paper);
}
.lightbox::backdrop { background: rgba(26, 16, 22, 0.92); }
.lightbox-figure { margin: 0; display: grid; gap: 0.75rem; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox figcaption { font-size: 0.95rem; color: var(--blush); }
.lightbox-bar { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; }
.lightbox-btn {
  background: rgba(244, 243, 238, 0.1); color: var(--paper); border: 1px solid rgba(244, 243, 238, 0.3);
  border-radius: var(--radius); font: 600 0.95rem var(--sans); padding: 0.6rem 1rem; cursor: pointer; min-height: 2.75rem;
}
.lightbox-btn:hover { background: rgba(244, 243, 238, 0.2); }
.lightbox-btn:focus-visible { outline: 2px solid var(--vine-light); outline-offset: 2px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 52rem; border-top: var(--rule); }
.faq-item { border-bottom: var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; font-family: var(--serif); font-size: var(--step-1); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: 0 0 auto; width: 0.7rem; height: 0.7rem; margin-right: 0.3rem;
  border-right: 1.5px solid var(--grape); border-bottom: 1.5px solid var(--grape);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item summary:hover { color: var(--grape); }
.faq-answer { padding: 0 0 1.5rem; max-width: 42em; color: var(--ink-soft); }
.faq-answer p:last-child { margin: 0; }

/* ---------- Kontakt ---------- */
.contact { background: var(--grape-deep); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); }
.contact h2 { margin-bottom: 1.5rem; text-wrap: balance; }
.contact .lede { color: var(--blush); margin-bottom: 2.5rem; }
.contact-direct { display: grid; gap: 1.5rem; }
.contact-direct dt { font-size: 0.9rem; color: var(--blush); opacity: 0.85; margin-bottom: 0.2rem; }
.contact-direct dd { margin: 0; }
.contact-direct a { font-family: var(--serif); font-size: clamp(1.2rem, 0.95rem + 1.3vw, 1.5625rem); text-decoration: none; border-bottom: 1px solid rgba(244, 243, 238, 0.35); overflow-wrap: anywhere; }
.contact-direct a:hover { border-bottom-color: var(--paper); }
.contact-direct .plain { font-size: 1.05rem; line-height: 1.5; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; align-content: start; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.93rem; font-weight: 500; color: var(--blush); }
.field label .req { color: var(--vine-light); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid transparent; border-radius: var(--radius);
  padding: 0.8rem 0.9rem; min-height: 3rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grape) 50%), linear-gradient(135deg, var(--grape) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - 0.8rem) 1.3rem; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.25rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--vine-light); outline-offset: 2px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #f0b4c8; box-shadow: 0 0 0 1px #f0b4c8; }
.field-error { font-size: 0.88rem; color: #f6c9d8; }
.field-error:empty { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.form-note { margin: 0; font-size: 0.88rem; color: var(--blush); opacity: 0.9; max-width: 30em; line-height: 1.5; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 0.95rem; color: var(--paper); }
.form-status:empty { display: none; }
.form-status a { color: var(--paper); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
}

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: rgba(244, 243, 238, 0.78); font-size: 0.93rem; padding-block: 3.5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem 3rem; padding-bottom: 2.5rem; border-bottom: var(--rule-light); }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: var(--paper); margin-bottom: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { color: var(--paper); }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.85rem; color: rgba(244, 243, 238, 0.6); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Strona tekstowa (polityka prywatności) ---------- */
.doc { padding-block: clamp(3rem, 7vw, 6rem); }
.doc-inner { max-width: 44rem; }
.doc h1 { font-size: var(--step-4); margin-bottom: 1.5rem; }
.doc h2 { font-size: var(--step-2); margin: 2.5rem 0 0.9rem; }
.doc ul { margin: 0 0 1em 1.2em; }
.doc li { list-style: disc; margin-bottom: 0.4rem; }

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