/* Makerskie Mikołajki – styl w duchu robisz.to:
   dużo bieli, jasnoszare sekcje, płaskie żółte bloki ze strzałką,
   morski akcent, kropkowany raster i krój Poppins. */
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/poppins-latin-ext-400-normal.woff2) format("woff2"); 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: "Poppins"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/poppins-latin-400-normal.woff2) format("woff2"); 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; }
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/poppins-latin-ext-500-normal.woff2) format("woff2"); 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: "Poppins"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/poppins-latin-500-normal.woff2) format("woff2"); 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; }
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/poppins-latin-ext-700-normal.woff2) format("woff2"); 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: "Poppins"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/poppins-latin-700-normal.woff2) format("woff2"); 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; }
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 800; src: url(fonts/poppins-latin-ext-800-normal.woff2) format("woff2"); 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: "Poppins"; font-style: normal; font-display: swap; font-weight: 800; src: url(fonts/poppins-latin-800-normal.woff2) format("woff2"); 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; }

:root {
  --bg: #ffffff;
  --soft: #ecf0ef;          /* jasne sekcje jak newsletter robisz.to */
  --ink: #1b1b1b;
  --slate: #33474b;         /* ciemny morski nagłówków sekcji */
  --muted: #5d6b6d;
  --line: #d6dddc;
  --field: #a9bcbd;         /* obramowanie pól */
  --yellow: #f6cc46;
  --yellow-dark: #e9bb2c;
  --teal: #3a8391;
  --teal-dark: #2e6d79;
  --danger: #c8423b;
  --dots: #8d9192;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 16px/1.75 var(--font); color: var(--ink); background: var(--bg);
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.6em; }
h4 { font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 .2em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
main { flex: 1; padding-top: 40px; padding-bottom: 72px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / footer ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand b { display: block; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.nav { display: flex; gap: 4px 22px; align-items: center; flex-wrap: wrap; font-weight: 500; font-size: .95rem; }
.nav a, .nav .link { color: var(--ink); }
.nav a:hover, .nav .link:hover { color: var(--teal); text-decoration: none; }
.site-footer { background: var(--soft); color: var(--slate); font-size: .82rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }

/* ---------- typografia pomocnicza ---------- */
.kicker {
  display: inline-block; border-left: 2px solid var(--ink); padding: 2px 0 2px 18px; margin-bottom: 1em;
  font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: var(--ink);
}
.lead { font-size: 1.08rem; max-width: 60ch; color: #333; }
.muted { color: var(--muted); }
.warn { color: var(--danger); font-weight: 500; }
.go { font-weight: 700; color: var(--ink); margin: 0; }
.go::after { content: " →"; }
.big { font-size: 1.3rem; }
.big-code { font-size: 4.5rem; font-weight: 800; margin: 0; color: var(--yellow); line-height: 1; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

/* ---------- sekcje / karty: płaskie, bez ramek ---------- */
.card { background: var(--soft); padding: 32px; margin-bottom: 32px; min-width: 0; }
@media (max-width: 560px) { .card { padding: 22px 18px; } }
.card h2 { color: var(--slate); text-transform: uppercase; letter-spacing: .02em; font-weight: 800; font-size: 1.15rem; }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card.center { text-align: center; }
.card-accent { border-top: 6px solid var(--yellow); }
.card-danger { border-left: 6px solid var(--danger); }
.card-danger h2 { color: var(--danger); }
.card-link { display: block; color: var(--ink); position: relative; transition: background .15s; }
.card-link:hover { color: var(--ink); text-decoration: none; background: var(--yellow); }
.card-link h2 { color: var(--ink); text-transform: none; font-size: 1.3rem; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 0 32px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.row-2 { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row-3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr auto; align-items: center; }
@media (max-width: 560px) { .row-3 { grid-template-columns: 1fr; } }
.empty { text-align: center; padding: 48px 24px; }

.tag {
  display: inline-block; font-size: .68rem; font-weight: 500; line-height: 1; text-transform: uppercase; letter-spacing: .14em;
  padding: 7px 10px; white-space: nowrap; vertical-align: middle;
}
.tag-green { background: var(--teal); color: #fff; }
.tag-accent { background: var(--yellow); color: var(--ink); }
.tag-muted { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--field); }

/* ---------- przyciski: płaskie, kanciaste, ze strzałką ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: 500 1rem/1 var(--font); color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 0; padding: 15px 22px; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; background: transparent; color: var(--ink); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); padding: 18px 26px; font-size: 1.05rem; }
.btn-primary::after { content: "→"; font-size: 1.35em; line-height: .7; transition: transform .15s; }
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--ink); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #a8332d; border-color: #a8332d; }
.btn-ghost { border-color: var(--field); }
.btn-small { padding: 9px 14px; font-size: .85rem; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; }
.link:hover { color: var(--teal-dark); }
form.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- formularze ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
label.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; font-size: .95rem; }
.field.check label { font-weight: 500; display: flex; gap: 12px; align-items: center; }
input[type="checkbox"] {
  appearance: none; width: 22px; height: 22px; flex: none; margin: 3px 0 0; border: 2px solid var(--muted);
  border-radius: 5px; background: #fff; cursor: pointer; display: grid; place-content: center;
}
input[type="checkbox"]:checked { background: var(--teal); border-color: var(--teal); }
input[type="checkbox"]:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
input:not([type="checkbox"]), textarea, select {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink); background: #f7f9f9;
  border: 1px solid var(--field); border-radius: 0; padding: 13px 16px;
}
input::placeholder, textarea::placeholder { color: #8a9a9b; }
textarea { resize: vertical; min-height: 3.5em; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 2px rgba(58, 131, 145, .25); background: #fff; }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.error { font-size: .85rem; color: var(--danger); font-weight: 500; margin: 6px 0 0; }
.has-error input, .has-error textarea { border-color: var(--danger); }
.req { color: var(--danger); }
.counter { float: right; font-size: .75rem; font-weight: 400; color: var(--muted); }

.flash { padding: 14px 20px; font-weight: 500; margin-bottom: 28px; border-left: 6px solid; }
.flash-ok { background: #e3f0f2; border-color: var(--teal); color: var(--teal-dark); }
.flash-error { background: #f8e5e4; border-color: var(--danger); color: #8f2a25; }

.copy { display: flex; margin-bottom: 16px; }
.copy input { font-size: .85rem; border-right: 0; }
.copy .btn { background: var(--yellow); border-color: var(--yellow); white-space: nowrap; }
.copy .btn:hover { background: var(--yellow-dark); color: var(--ink); }

/* ---------- kropkowany raster ---------- */
.dotted { position: relative; isolation: isolate; }
.dotted::before {
  content: ""; position: absolute; z-index: -1; top: -28px; right: -28px; width: 46%; height: 46%; min-width: 120px; min-height: 90px;
  background-image: radial-gradient(var(--dots) 2.6px, transparent 3px); background-size: 16px 16px;
}
.dotted-sm { display: inline-block; }
.dotted-sm::before { top: -14px; right: -26px; width: 80px; height: 56px; min-width: 0; min-height: 0; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 56px; grid-template-columns: 1.15fr 1fr; align-items: center; padding: 16px 0 48px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 40px; } }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 36px 36px 28px; background: var(--yellow); }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -2px; font-weight: 800; font-size: 1.3rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 52px; right: 0; bottom: 9px; border-bottom: 1px solid rgba(0, 0, 0, .15); }

/* ---------- wydarzenie ---------- */
.meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 36px; }
.meta div { background: var(--soft); padding: 10px 16px; border-left: 3px solid var(--yellow); }
.meta dt { font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.meta dd { margin: 0; font-weight: 700; }

.envelope > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.envelope > summary::-webkit-details-marker { display: none; }
.envelope .when-open, .envelope[open] .when-closed { display: none; }
.envelope[open] .when-open { display: inline; }
.envelope[open] > summary .btn { background: transparent; border-color: var(--ink); }
.envelope[open] > summary .btn::after { content: "×"; }
.envelope[open] > summary .hint { display: none; }
.envelope-body { margin-top: 12px; animation: pop .35s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .envelope-body { animation: none; } * { transition: none !important; } }
.recipient-name {
  display: inline-block; margin: 8px 0 28px; padding: 18px 28px; background: var(--yellow);
  font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; line-height: 1.1;
}
.profile-row { border-left: 2px solid var(--ink); padding: 0 0 0 18px; margin-bottom: 22px; overflow-wrap: anywhere; }
.profile-row p { margin: 0; }
.gift-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 28px 0 0; padding: 18px; background: #fff; }
.gift-status label { font-weight: 700; flex-basis: 100%; }
.gift-status select { width: auto; flex: 1; min-width: 180px; }

.thread { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.thread li { max-width: 85%; padding: 12px 16px; overflow-wrap: anywhere; line-height: 1.5; }
.thread li p { margin: 4px 0; }
.thread .mine { justify-self: end; background: var(--yellow); }
.thread .theirs { justify-self: start; background: #fff; border-left: 3px solid var(--teal); }
.thread .who { font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; opacity: .75; }
.thread time { font-size: .72rem; opacity: .65; }
.msg-form { display: grid; grid-template-columns: 1fr auto; align-items: stretch; }
.msg-form textarea { border-right: 0; }
.msg-form .btn { background: var(--yellow); border-color: var(--yellow); }
.msg-form .btn:hover { background: var(--yellow-dark); color: var(--ink); }
@media (max-width: 560px) { .msg-form { grid-template-columns: 1fr; } .msg-form textarea { border-right: 1px solid var(--field); } }

.people { columns: 2 160px; padding-left: 1.2em; margin: 0 0 18px; }
.people li { break-inside: avoid; }
.people li::marker { color: var(--teal); }
.list { list-style: none; padding: 0; margin: 0 0 18px; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.log { list-style: none; padding: 0; margin: 0; font-size: .9rem; max-height: 440px; overflow: auto; line-height: 1.5; }
.log li { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.log time { font-size: .75rem; color: var(--muted); margin-right: 8px; }
.log-alert { color: var(--danger); font-weight: 500; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
td.actions { justify-content: flex-end; white-space: nowrap; }

.danger-zone { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.danger-zone summary { cursor: pointer; font-weight: 500; color: var(--danger); }

/* ---------- etykieta na prezent ---------- */
.label-cta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 28px 0 0; }
.label-cta .hint { flex: 1 1 220px; margin: 0; }
.label-sheet { display: flex; flex-wrap: wrap; gap: 1cm; align-items: flex-start; margin-top: 32px; }
.sticker-row { display: flex; flex-direction: column; gap: .6cm; }
.gift-tag { position: relative; color: var(--ink); break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tag-inner { position: relative; display: flex; width: 100%; height: 100%; background: #fff; overflow: hidden; }
/* Zawieszka: ścięte rogi, obrys = tło rodzica prześwitujące przez 1.5px różnicy */
.gift-tag-tag {
  width: 10cm; height: 5.6cm; padding: 1.5px; background: var(--ink);
  clip-path: polygon(1.1cm 0, 100% 0, 100% 100%, 1.1cm 100%, 0 calc(100% - 1.1cm), 0 1.1cm);
}
.gift-tag-tag .tag-inner {
  padding-left: 1.6cm; background: linear-gradient(90deg, var(--yellow) 0 1.6cm, #fff 1.6cm);
  clip-path: polygon(calc(1.1cm - 1px) 0, 100% 0, 100% 100%, calc(1.1cm - 1px) 100%, 0 calc(100% - 1.1cm + 1px), 0 calc(1.1cm - 1px));
}
.gift-tag-sticker { width: 7.4cm; height: 2.5cm; border: 1px dashed var(--muted); }
.gift-tag-sticker .tag-inner { border-left: .5cm solid var(--yellow); }
.tag-hole {
  position: absolute; left: .45cm; top: 50%; width: .55cm; height: .55cm; transform: translateY(-50%);
  border-radius: 50%; background: #fff; border: 2px solid var(--ink);
}
.tag-body { position: relative; flex: 1; padding: .45cm .55cm; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.gift-tag-tag .tag-body::before { /* kropkowany raster w rogu */
  content: ""; position: absolute; top: .3cm; right: .3cm; width: 2.2cm; height: 1.2cm;
  background-image: radial-gradient(var(--dots) 1.6px, transparent 2px); background-size: 9px 9px;
}
.gift-tag p { margin: 0; line-height: 1.2; }
.tag-event { font-size: .58rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); padding-right: 2.4cm; }
.gift-tag-sticker .tag-event { padding-right: 0; }
.tag-for { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; margin-top: .25cm !important; border-left: 2px solid var(--ink); padding-left: 8px; }
.tag-name { font-size: 1.9rem; font-weight: 800; overflow-wrap: anywhere; margin: .05cm 0 .1cm !important; }
.gift-tag-sticker .tag-for { display: none; }
.gift-tag-sticker .tag-name { font-size: 1.3rem; margin: .08cm 0 !important; }
.gift-tag-sticker .tag-name::before { content: "Dla: "; font-weight: 500; font-size: .75em; }
.tag-from { font-size: .8rem; }
.gift-tag-sticker .tag-from { font-size: .68rem; }
.tag-date { font-size: .62rem; color: var(--muted); margin-top: .15cm !important; }

@media print {
  @page { margin: 1.2cm; }
  body { background: #fff; display: block; }
  .site-header, .site-footer, .no-print, .flash, .skip { display: none !important; }
  main { padding: 0; }
  .label-sheet { margin: 0; }
}
