/* ──────────────────────────────────────────────────────────
   Spirit Dust — Karta podarunkowa
   Scope: .sd-gift  (widget Elementora + blok Gutenberga)
   ────────────────────────────────────────────────────────── */

.sd-gift {
  --sd-forest:      #0D3320;
  --sd-forest-deep: #094F2C;
  --sd-cream:       #F9F3EE;
  --sd-sand:        #E8D8C8;
  --sd-brown:       #2C1810;
  --gz-base:        #444444;
  --sd-muted:       rgba(44, 24, 16, .68);
  --sd-rule:        rgba(44, 24, 16, .5);
  --sd-shadow:      rgba(44, 24, 16, .4);
  --easing:         cubic-bezier(.3, 1, .3, 1);

  --font-display: 'Sorts Mill Goudy', 'Iowan Old Style', Georgia, serif;
  --font-ui:      'Instrument Sans', ui-sans-serif, -apple-system, 'Helvetica Neue', sans-serif;

  color: var(--sd-brown);
  font-family: var(--font-ui);
}
.sd-gift *, .sd-gift *::before, .sd-gift *::after { box-sizing: border-box; }

.sd-gift .sd-gift-inner {
  max-width: 1410px;
  margin: 0 auto;
  padding: 88px 72px;
  border-radius: 20px;
  background: var(--sd-sand);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px) minmax(0, 1fr);
  grid-template-areas: "head object body";
  gap: 72px;
  align-items: center;
}
.sd-gift-head   { grid-area: head; min-width: 0; }
.sd-gift-object { grid-area: object; position: relative; }
.sd-gift-body   { grid-area: body; min-width: 0; }

.sd-gift .sd-gift-eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sd-forest);
}
.sd-gift .sd-gift-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}

.sd-gift .sd-gift-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--sd-forest);
  overflow-wrap: anywhere;
}
.sd-gift .sd-gift-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--sd-forest-deep);
}

.sd-gift .sd-gift-lede {
  margin: 0 0 18px;
  max-width: 400px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: var(--gz-base);
}
.sd-gift .sd-gift-facts {
  margin: 0 0 32px;
  max-width: 400px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.65;
  color: var(--sd-muted);
}

.sd-gift .sd-gift-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 30px;
  background: var(--sd-forest);
  color: var(--sd-cream);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background .3s var(--easing), transform .3s var(--easing);
}
.sd-gift .sd-gift-cta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sd-gift .sd-gift-cta:hover  { background: var(--sd-forest-deep); color: var(--sd-cream); transform: translateX(2px); }
.sd-gift .sd-gift-cta:active { transform: translateY(1px); }
.sd-gift .sd-gift-cta:focus-visible { outline: 2px solid var(--sd-forest); outline-offset: 3px; }

/* ── Karta: papierowy bilecik z pracowni ─────────────────── */
.sd-gc {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 7;
  border-radius: 3px;
  background: var(--sd-cream);
  color: var(--sd-brown);
  box-shadow: 0 1px 2px var(--sd-rule), 0 28px 44px -30px var(--sd-shadow);
}
.sd-gc::before,
.sd-gc::after {
  content: '';
  position: absolute;
  border: 1px solid var(--sd-rule);
  pointer-events: none;
}
.sd-gc::before { inset: 4.4cqw; }
.sd-gc::after  { inset: 6.2cqw; opacity: .45; }
.sd-gc-body {
  position: absolute;
  inset: 6.2cqw;
  padding: 10cqw 9cqw 9cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
.sd-gc .sd-gc-logo { width: 66cqw; height: auto; display: block; }
.sd-gc-mid         { display: grid; justify-items: center; gap: 5cqw; }
.sd-gc .sd-gc-art  { width: 40cqw; height: auto; display: block; }
.sd-gc .sd-gc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 8.4cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--sd-forest);
}
.sd-gc-fields {
  width: 100%;
  display: grid;
  gap: 3.4cqw;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4.6cqw;
  line-height: 1.2;
  text-align: left;
}
.sd-gc-fields span { display: flex; align-items: baseline; gap: 2.4cqw; }
.sd-gc-fields span::after { content: ''; flex: 1; border-bottom: 1px dotted var(--sd-rule); }

.sd-gift .sd-spark {
  position: absolute;
  height: auto;
  fill: var(--sd-brown);
  pointer-events: none;
}
.sd-gift-object .s1 { width: 14px; top: -22px;   left: -28px; }
.sd-gift-object .s2 { width: 8px;  top: 6px;     left: -44px; opacity: .6; }
.sd-gift-object .s3 { width: 11px; bottom: 48px; right: -32px; opacity: .85; }

/* ── Baner pod listą produktów ───────────── */
.sd-gift--banner { margin: 64px 0 24px; }
.sd-gift .sd-gift-banner {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 32px 48px;
  border-radius: 20px;
  background: var(--sd-sand);
}
.sd-gift.sd-gift--banner .sd-gift-eyebrow { margin-bottom: 10px; }
.sd-gift.sd-gift--banner .sd-gift-title   { font-size: 34px; line-height: 1.1; }
.sd-gift.sd-gift--banner .sd-gift-lede    { margin: 8px 0 0; max-width: 560px; font-size: 17px; line-height: 1.5; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1100px) {
  .sd-gift .sd-gift-inner {
    padding: 64px 48px;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    grid-template-areas: "object head" "object body";
    gap: 28px 64px;
  }
  .sd-gift-head { align-self: end; }
  .sd-gift-body { align-self: start; }
  .sd-gift .sd-gift-title { font-size: 44px; }
}
@media (max-width: 700px) {
  .sd-gift .sd-gift-inner {
    padding: 44px 24px 48px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "object" "body";
    gap: 36px;
  }
  .sd-gift-object { width: min(100%, 230px); justify-self: center; }
  .sd-gift .sd-gift-title { font-size: 36px; }
  .sd-gift .sd-gift-lede  { font-size: 17px; }
  .sd-gift .sd-gift-cta   { padding: 14px 24px; font-size: 17px; }

  .sd-gift .sd-gift-banner {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 20px;
  }
  .sd-gift.sd-gift--banner .sd-gift-title { font-size: 26px; }
  .sd-gift.sd-gift--banner .sd-gift-lede  { font-size: 16px; }
  .sd-gift.sd-gift--banner .sd-gift-cta   { grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .sd-gift .sd-gift-cta { transition: none; }
}
