:root {
  --poster-ink: #0f172a;
  --poster-muted: #475569;
  --poster-accent: #0ea5e9;
  --poster-accent-dark: #075985;
  --poster-paper: #ffffff;
  --poster-line: #cbd5e1;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #e2e8f0;
  color: var(--poster-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.poster-tools {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.poster-tool-link,
.poster-print-button {
  min-height: 44px;
  border: 1px solid var(--poster-line);
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--poster-ink);
  background: var(--poster-paper);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.poster-print-button {
  border-color: var(--poster-accent-dark);
  color: #fff;
  background: var(--poster-accent-dark);
}

.poster-tool-link:hover,
.poster-tool-link:focus-visible,
.poster-print-button:hover,
.poster-print-button:focus-visible {
  outline: 3px solid rgb(14 165 233 / 35%);
  outline-offset: 2px;
}

.poster {
  display: flex;
  flex-direction: column;
  width: min(210mm, calc(100vw - 32px));
  min-height: 297mm;
  margin: 0 auto 32px;
  padding: 20mm 18mm 15mm;
  background: var(--poster-paper);
  box-shadow: 0 16px 40px rgb(15 23 42 / 15%);
}

.poster-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--poster-ink);
  padding-bottom: 7mm;
}

.poster-mark {
  display: inline-grid;
  width: 17mm;
  height: 17mm;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--poster-accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.poster-kicker,
.poster-overline {
  color: var(--poster-accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.poster-header {
  padding: 17mm 0 12mm;
}

.poster-overline {
  margin: 0 0 5mm;
}

.poster h1 {
  max-width: 150mm;
  margin: 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.poster-hook {
  max-width: 125mm;
  margin: 8mm 0 0;
  color: var(--poster-muted);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.15;
}

.poster-offer {
  border-left: 5px solid var(--poster-accent);
  padding: 5mm 0 5mm 8mm;
}

.poster-bullets {
  display: grid;
  gap: 4mm;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(16px, 2.2vw, 23px);
  font-weight: 750;
  line-height: 1.2;
}

.poster-bullets li {
  display: flex;
  gap: 4mm;
  align-items: baseline;
}

.poster-bullets li::before {
  flex: 0 0 auto;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--poster-accent);
  content: "";
}

.poster-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10mm;
  margin-top: auto;
  padding: 12mm 0 8mm;
}

.poster-cta-title {
  max-width: 90mm;
  margin: 0 0 5mm;
  color: var(--poster-accent-dark);
  font-size: clamp(29px, 5vw, 49px);
  font-weight: 950;
  line-height: 0.98;
}

.poster-url {
  margin: 0;
  font-size: clamp(12px, 1.7vw, 17px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.poster-qr-wrap {
  flex: 0 0 52mm;
  text-align: center;
}

.poster-qr {
  display: grid;
  width: 52mm;
  height: 52mm;
  place-items: center;
  padding: 3mm;
  border: 1px solid var(--poster-line);
  background: #fff;
}

.poster-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.poster-qr-caption {
  display: block;
  margin-top: 2mm;
  color: var(--poster-muted);
  font-size: 10px;
  font-weight: 800;
}

.poster-footer {
  border-top: 1px solid var(--poster-line);
  padding-top: 5mm;
  color: var(--poster-muted);
  font-size: 10px;
  font-weight: 700;
}

.poster-footer p {
  margin: 0;
}

@media (max-width: 620px) {
  .poster {
    width: calc(100vw - 20px);
    min-height: auto;
    margin-bottom: 20px;
    padding: 12vw 8vw 8vw;
  }

  .poster-header {
    padding: 12vw 0 9vw;
  }

  .poster-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8vw;
  }

  .poster-qr-wrap {
    align-self: center;
  }
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html,
  body {
    width: 210mm;
    min-height: 297mm;
    background: #fff;
  }

  .poster-tools {
    display: none !important;
  }

  .poster {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    margin: 0;
    padding: 20mm 18mm 15mm;
    box-shadow: none;
    break-after: avoid;
    break-inside: avoid;
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  .poster-cta,
  .poster-footer,
  .poster-header,
  .poster-offer,
  .poster-topline {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
