/* Wawel x Delikatesy Centrum — „Wpadnij w słodki rytm z Wawel” (konkurswawel.pl) */
:root {
  --yellow: #ffb00b;
  --yellow-band: #f4b120;
  --orange: #ff5d00;
  --brown: #3e1f14;
  --brown-2: #2a140c;
  --ink: #140a06;
  --cream: #fff3d6;
  --white: #fff;
  --error: #c4281c;
  --font: "Montserrat", system-ui, Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--brown);
  color: var(--yellow);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--yellow);
  color: var(--brown);
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--brown);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 17px 32px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  transition: 0.15s;
}
.btn:hover {
  background: var(--orange);
  color: #fff;
}
.btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn:disabled:hover {
  background: var(--yellow);
  color: var(--brown);
}
.btn.ghost {
  background: transparent;
  color: var(--yellow);
  border: 2px solid rgba(255, 176, 11, 0.5);
}
.btn.ghost:hover {
  border-color: var(--yellow);
  background: transparent;
  color: var(--yellow);
}

/* header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(62, 31, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 176, 11, 0.25);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logos {
  display: flex;
  align-items: center;
  gap: 18px;
}
.logos a {
  display: contents;
}
.logos .d {
  height: 40px;
  width: auto;
  background: #fff;
  padding: 5px 8px;
  border-radius: 8px;
}
.logos .w {
  height: 60px;
  width: auto;
}
header nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
header nav a {
  text-decoration: none;
  color: var(--yellow);
  opacity: 0.85;
}
header nav a:hover,
header nav a[aria-current="page"] {
  opacity: 1;
}

/* hero: stage */
.hero {
  position: relative;
  padding: 60px 0 0;
  overflow: hidden;
  background: var(--brown);
}
.hero .wrap {
  text-align: center;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-block;
  background: var(--orange);
  color: var(--brown);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 17px;
  padding: 11px 24px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(46px, 8.5vw, 124px);
  color: var(--yellow);
  line-height: 0.92;
}
.hero h1 span {
  display: block;
  color: var(--yellow);
  font-size: 0.55em;
  letter-spacing: 0.06em;
}
.hero p {
  max-width: 60ch;
  margin: 26px auto 30px;
  font-size: 19px;
  font-weight: 500;
  opacity: 0.95;
}
.hero .cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.stage {
  position: relative;
  height: min(64vw, 640px);
  margin-top: 70px;
}
.stage .glow {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 80%;
  height: 64%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    var(--orange) 0%,
    rgba(255, 93, 0, 0) 58%
  );
  opacity: 0.65;
}
.stage .prize {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(46%, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ff8a00, var(--orange) 70%);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 -14px 0 rgba(0, 0, 0, 0.12);
  transform: translateX(-50%) rotate(-8deg);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  text-align: center;
  container-type: inline-size;
}
.stage .prize .pl {
  font-weight: 800;
  font-size: 8.5cqw;
  line-height: 1;
  margin-bottom: 0.35em;
}
.stage .prize .pv {
  font-weight: 900;
  font-size: 17cqw;
  line-height: 0.95;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stage .small {
  display: contents;
}
.stage .dl {
  position: absolute;
  left: -12%;
  top: -22%;
  width: 34%;
  z-index: 5;
}
.stage .dr {
  position: absolute;
  right: -4%;
  top: -26%;
  width: 24%;
  z-index: 5;
}
.stage picture {
  display: contents;
}
.stage figure {
  margin: 0;
  text-align: center;
}
.stage figure img {
  width: 100%;
  height: auto;
}
.stage figcaption {
  margin-top: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(11px, 1.1vw, 15px);
  line-height: 1.25;
  color: var(--yellow);
}
.stage figcaption b {
  display: block;
  font-size: 1.7em;
  line-height: 1;
}
.stage .ebilet {
  position: absolute;
  left: 4%;
  top: 34%;
  width: 22%;
  z-index: 4;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  animation: bob 6s ease-in-out infinite;
}
.stage .jbl {
  position: absolute;
  right: 4%;
  top: 34%;
  width: 22%;
  z-index: 4;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  animation: bob 6s ease-in-out infinite 1.5s;
}
.stage .note {
  position: absolute;
  z-index: 5;
  opacity: 0.95;
  height: auto;
}
.stage .n1 {
  left: 24%;
  top: 2%;
  width: 5%;
}
.stage .n2 {
  right: 26%;
  top: 8%;
  width: 4%;
}
.stage .n3 {
  left: 30%;
  top: 22%;
  width: 4%;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

/* yellow band: steps */
.band,
.showcase {
  position: relative;
  overflow: hidden;
  background: var(--yellow-band);
  color: var(--brown);
}
.band::before,
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("opt/texture.webp") center / cover no-repeat;
  background-image: image-set(
    url("opt/texture.avif") type("image/avif"),
    url("opt/texture.webp") type("image/webp"),
    url("opt/texture.png") type("image/png")
  );
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
.band {
  padding: 70px 0 90px;
}
.band h2 {
  font-size: clamp(34px, 5vw, 64px);
  margin-bottom: 40px;
  color: var(--brown);
}
.band .wrap {
  position: relative;
  z-index: 1;
}
.band .candy {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  right: 3%;
  top: 10%;
  width: 190px;
  height: auto;
  transform: rotate(16deg);
}
.steps {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
  gap: 18px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  padding: 10px 0;
}
.arrow {
  width: 64px;
  height: 64px;
  color: var(--brown);
  flex: none;
  justify-self: center;
  align-self: center;
}
.arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}
.step .num {
  font-size: 96px;
  font-weight: 900;
  line-height: 0.85;
  color: var(--brown);
  margin-bottom: 18px;
}
.step h3 {
  font-size: 20px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.step p {
  margin: 0;
  font-weight: 500;
}
.step b {
  font-weight: 900;
}

/* prizes ticket wall */
.section {
  padding: 80px 0;
  position: relative;
}
.pdeco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  height: auto;
}
.section h2 {
  font-size: clamp(34px, 5vw, 64px);
  margin-bottom: 40px;
  color: var(--yellow);
}
.prizes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ticket {
  background: var(--brown-2);
  border: 2px solid rgba(255, 176, 11, 0.3);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.ticket.main {
  background: linear-gradient(160deg, var(--orange), #ff8a00);
  color: var(--brown);
  border-color: transparent;
}
.ticket .rank {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.8;
}
.ticket .val {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 900;
  line-height: 1;
  margin: 10px 0 6px;
  color: var(--yellow);
}
.ticket.main .val {
  color: var(--brown);
}
.ticket .what {
  font-weight: 700;
  font-size: 18px;
}
.ticket .what.sm {
  font-size: 16px;
  font-weight: 600;
}
.ticket p {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  margin: 10px 0 0;
  max-width: 30ch;
}
.ticket img {
  position: absolute;
  right: -8%;
  bottom: -8%;
  width: 55%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}
.ticket.main img {
  width: 74%;
  right: -10%;
  bottom: -44%;
}
.ticket img.jbl-logo {
  left: 30px;
  right: auto;
  bottom: 30px;
  width: 54px;
  border-radius: 8px;
}

/* products showcase */
.showcase {
  padding: 80px 0;
}
.showcase .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.showcase h2 {
  font-size: clamp(34px, 5vw, 60px);
  color: var(--brown);
  margin-bottom: 18px;
}
.showcase p {
  font-weight: 500;
  font-size: 18px;
  max-width: 40ch;
}
.showcase img.prod {
  height: auto;
  filter: drop-shadow(0 30px 30px rgba(62, 31, 20, 0.3));
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  border: 2px solid var(--brown);
  color: var(--brown);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
}

/* form */
.form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.form .intro p {
  font-weight: 500;
  font-size: 18px;
  opacity: 0.9;
}
.form-card {
  background: var(--cream);
  color: var(--brown);
  border-radius: 28px;
  padding: 40px;
}
.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.fgrid .full {
  grid-column: 1 / -1;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.field {
  margin-bottom: 16px;
}
.field > label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid #e5d2a6;
  border-radius: 12px;
  background: #fff;
  margin: 0;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.req {
  color: var(--orange);
}
.field.invalid input,
.field.invalid textarea {
  border-color: var(--error);
}
.err {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 13px;
  font-weight: 700;
}
.err:empty {
  display: none;
}
.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.char-count {
  margin-left: auto;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.7;
  white-space: nowrap;
}
.fnote {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--orange);
}
.check label a {
  font-weight: 700;
}
.check.invalid input {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}
.form-actions {
  text-align: center;
  margin-top: 8px;
}
.form-actions .btn,
.form-success .btn {
  min-width: 280px;
}
.form-notice,
.form-alert {
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  margin: 0 0 20px;
}
.form-notice {
  background: var(--brown);
  color: var(--yellow);
}
.form-alert {
  background: #fde3df;
  color: var(--error);
}
.form-alert.ok {
  background: #dff3e4;
  color: #1e6b33;
}
.form-alert:empty {
  display: none;
}
.form-success {
  text-align: center;
  padding: 20px 0;
}
.form-success[hidden] {
  display: none;
}
.form-success:focus {
  outline: none;
}
.form-success .mark {
  width: 64px;
  height: 64px;
  color: #2e9e4a;
  margin: 0 auto 14px;
}
.form-success h3 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}
.form-success p {
  max-width: 52ch;
  margin: 0 auto 24px;
  font-weight: 500;
}

/* footer */
footer {
  background: var(--ink);
  padding: 50px 0;
  font-size: 13px;
  color: var(--yellow);
}
footer .row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
footer p {
  margin: 0 0 8px;
  max-width: 90ch;
}

@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .top {
    padding: 10px 0;
    gap: 10px;
  }
  .logos {
    gap: 10px;
  }
  .logos .d {
    height: 30px;
    padding: 4px 6px;
  }
  .logos .w {
    height: 44px;
  }
  .top .btn {
    padding: 11px 16px;
    font-size: 12px;
    white-space: nowrap;
    flex: none;
  }
  .hero {
    padding-top: 40px;
    text-align: center;
  }
  .eyebrow {
    font-size: 11px;
    padding: 8px 14px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: clamp(40px, 12vw, 64px);
  }
  .hero p {
    font-size: 16px;
  }
  .stage {
    height: auto;
    margin-top: 40px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
  .stage .glow {
    bottom: auto;
    top: 0;
    height: 60%;
  }
  /* Hide the whole <picture>: its <source> children would otherwise become
     flex items and add gaps to the stacked stage. */
  .stage .dancer,
  .stage .note {
    display: none;
  }
  .stage .prize {
    position: relative;
    left: auto;
    top: auto;
    transform: rotate(-8deg);
    width: min(72vw, 300px);
  }
  .stage .ebilet,
  .stage .jbl {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 42%;
    animation: none;
  }
  .stage figcaption {
    font-size: 12px;
  }
  .stage .small {
    display: flex;
    justify-content: center;
    gap: 6%;
    width: 100%;
  }
  .band,
  .section,
  .showcase {
    text-align: center;
  }
  .hero p,
  .showcase p {
    margin-left: auto;
    margin-right: auto;
  }
  .steps {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .step {
    max-width: 40ch;
  }
  .arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
  .band .candy,
  .pdeco {
    display: none;
  }
  .prizes,
  .showcase .wrap,
  .fgrid {
    grid-template-columns: 1fr;
  }
  .ticket {
    text-align: left;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }
  .showcase .wrap {
    justify-items: center;
  }
  .tags {
    justify-content: center;
  }
  .form-card {
    padding: 22px;
    text-align: left;
  }
  footer .row2 {
    justify-content: center;
    text-align: center;
  }
  footer p {
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .stage .ebilet,
  .stage .jbl {
    animation: none;
  }
}

.hint {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
}
