/* Oslany pod lupou · one pager „Čoskoro“
   Mobile first, farby a písmo podľa logo manuálu. */

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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: "Onest";
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mrs Saint Delafield";
  src: url("../fonts/mrs-saint-delafield-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #C8261B;
  --green: #1F6B45;
  --yellow: #FFF7C3;
  --ink: #1B1F24;
  --cream: #F4F2EA;
  --text: #3A4048;
  --muted: #5D6066;
  --line: #ECE8DC;
  --track: #D9D3C2;
  --field: #8E8A7A;
  --gutter: 16px;
  --step-dur: 4.5s;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--green); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.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;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; color: #FFFFFF; }

/* Stránka na jednu obrazovku */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.main { flex: 1; display: flex; flex-direction: column; }

/* Hlavička */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gutter);
}
.brand {
  display: flex;
  align-items: flex-start;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { width: 54px; height: 47px; flex: none; }
.brand__name {
  display: flex;
  flex-direction: column;
  margin-left: -8px;
  padding-top: 2px;
}
.brand__oslany { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.brand__pod { font-size: 10px; font-weight: 600; color: var(--green); line-height: 1.3; }
.top__right { display: flex; align-items: center; gap: 16px; }

/* Tlačidlá */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn--red { background: var(--red); color: #FFFFFF; }
.btn--red:hover { background: #A81F16; color: #FFFFFF; }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--outline:hover { background: var(--cream); color: var(--ink); }
.btn--block { width: 100%; min-height: 56px; border-radius: 16px; font-size: 17px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Stav „Spúšťame čoskoro“ */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
.status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 107, 69, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(31, 107, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 107, 69, 0); }
}
.status--top { display: none; }
.status--hero {
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #E3EFE6;
}

/* Úvod */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 8px var(--gutter) 16px;
}
.hero__title {
  flex: 1 1 460px;
  margin: 0;
  font-size: clamp(42px, 4.4vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero__title span { display: block; color: var(--green); }
.hero__text { flex: 1 1 380px; min-width: 0; max-width: 540px; }
.hero__lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.hero__rules { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.signature {
  margin: 2px 0 0;
  font-family: "Mrs Saint Delafield", cursive;
  font-size: 44px;
  line-height: 1.1;
  color: var(--ink);
}

/* Panoráma s lupou */
.stage { flex: 1; display: flex; flex-direction: column; background: var(--cream); }
.stage__view { position: relative; }
.pano {
  display: block;
  width: 100%;
  height: auto;
  max-height: 52vh;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.pano.is-dragging { cursor: grabbing; }

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(27, 31, 36, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
}
.arrow:hover { background: rgba(255, 255, 255, 0.7); }
.arrow svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.arrow--prev { left: 10px; }
.arrow--next { right: 10px; }

/* Prepínač s dielikmi */
.steps {
  display: flex;
  gap: 6px;
  padding: 4px var(--gutter) 0;
}
.step {
  flex: 1 1 0;
  min-width: 0;
  min-height: 36px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.step__bar {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--track);
}
.step.is-done .step__bar { background: var(--ink); }
.step__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--red);
}
.steps.is-playing .step.is-active .step__fill { animation: fill var(--step-dur) linear forwards; }
.steps:not(.is-playing) .step.is-active .step__fill { width: 100%; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* Aktuálna téma */
.topic {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 10px var(--gutter) 20px;
}
.topic__num {
  flex: none;
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.topic__num small { font-size: 0.45em; font-weight: 700; letter-spacing: 0; color: #9C9582; }
.topic__body { flex: 1 1 300px; min-width: 0; max-width: 720px; }
.topic__title {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.topic__text { margin: 6px 0 0; color: var(--text); min-height: 3.1em; }

/* Pätička */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 14px var(--gutter) 18px;
  font-size: 13px;
  color: var(--muted);
}

/* Formulár na tip */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(480px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: -12px 0 40px rgba(27, 31, 36, 0.18);
}
.drawer[open] { animation: slide-in 0.28s ease-out; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer::backdrop { background: rgba(27, 31, 36, 0.42); }
.drawer__panel {
  min-height: 100%;
  padding: 20px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.drawer__head h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.drawer__head h2:focus { outline: none; }
.drawer__intro { margin: 0 0 4px; color: var(--text); font-size: 16px; }
.drawer__note { margin: 0; font-size: 14px; color: var(--muted); }

.icon-btn {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.tip-form { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px #CFC8B5;
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}
.chip input:checked + span { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

.field > label:not(.upload):not(.check) { display: block; margin-bottom: 6px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"],
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--field);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.field input[type="text"] { height: 50px; padding-top: 0; padding-bottom: 0; }
.field textarea { resize: vertical; min-height: 132px; }
.field__hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.field__error { display: none; margin: 6px 0 0; font-size: 14px; color: var(--red); }
.field__error--check { margin-left: 34px; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input[type="text"],
.field.is-invalid textarea { border-color: var(--red); }
.field.is-invalid .upload { border-color: var(--red); }

.upload {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1.5px dashed #B3AC98;
  border-radius: 14px;
  cursor: pointer;
}
.upload svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.upload > span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.upload__title { font-weight: 600; }
.upload__hint { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tip-foto:focus-visible + .upload { outline: 3px solid var(--green); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; line-height: 1.45; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); }

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FBE9E7;
  color: #8C1A12;
  font-size: 15px;
}

.sent {
  margin-top: 8px;
  padding: 24px;
  border-radius: 20px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sent svg { width: 40px; height: 40px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sent p { margin: 0; color: var(--text); }
.sent .sent__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.drawer__sent { display: flex; flex-direction: column; gap: 16px; }
.drawer__sent[hidden], .drawer__form[hidden] { display: none; }

/* Ochrana súkromia */
.top--doc { border-bottom: 1px solid var(--line); }
.doc-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 32px;
  padding: 32px var(--gutter) 28px;
  background: var(--cream);
}
.doc-hero__text { flex: 1 1 420px; min-width: 0; }
.doc-hero h1 { margin: 0; font-size: clamp(38px, 4.4vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
.doc-hero__lead { margin: 16px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--text); max-width: 42ch; }
.summary {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 520px;
  padding: 22px 24px;
  border-radius: 20px;
  background: #FFFFFF;
}
.summary__title { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 3px;
  width: 16px; height: 9px;
  border-left: 2.2px solid var(--green);
  border-bottom: 2.2px solid var(--green);
  transform: rotate(-45deg);
}
.ticks--cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; font-size: 17px; color: #2A3038; }
.ticks--cols + p { margin-top: 14px; }

.doc {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  padding: 32px var(--gutter);
}
.doc__toc { flex: 1 1 220px; max-width: 280px; min-width: 0; font-size: 15px; }
.doc__toc p { margin: 0 0 8px; font-weight: 700; }
.doc__toc a { display: block; padding: 6px 0; text-decoration: none; }
.doc__body { flex: 999 1 560px; min-width: 0; max-width: 68ch; color: #2A3038; }
.doc__body h2 {
  margin: 44px 0 10px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
  scroll-margin-top: 16px;
}
.doc__body h2:first-child { margin-top: 0; }
.doc__body p { margin: 0 0 12px; }
.cards { display: grid; gap: 12px; }
.cards + p { margin-top: 14px; }
.card { padding: 18px 20px; border-radius: 16px; background: var(--cream); }
.card h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.card p { margin: 4px 0 0; }
.doc__end { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc__end p { font-size: 15px; color: var(--muted); }
.foot--doc { border-top: 1px solid var(--line); }

/* Desktop */
@media (min-width: 720px) {
  :root { --gutter: clamp(24px, 4.5vw, 64px); }
  .status--top { display: inline-flex; }
  .status--hero { display: none; }
  .hero { gap: 16px clamp(32px, 6vw, 96px); padding-top: clamp(8px, 1.6vw, 20px); padding-bottom: clamp(16px, 1.8vw, 24px); }
  .hero__lead { font-size: clamp(16px, 1.25vw, 18px); }
  .arrow { width: clamp(46px, 3.8vw, 56px); height: clamp(46px, 3.8vw, 56px); }
  .arrow--prev { left: clamp(10px, 2.5vw, 40px); }
  .arrow--next { right: clamp(10px, 2.5vw, 40px); }
  .steps { gap: clamp(6px, 1vw, 16px); padding-top: clamp(4px, 0.8vw, 10px); }
  .topic { gap: 4px clamp(16px, 2vw, 28px); padding-top: clamp(10px, 1.2vw, 16px); padding-bottom: clamp(20px, 1.8vw, 26px); }
  .drawer__panel { padding: 24px 32px 32px; }
  .doc-hero { gap: 24px clamp(32px, 6vw, 96px); padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(28px, 4vw, 56px); }
  .doc { gap: 32px clamp(32px, 6vw, 96px); padding: clamp(32px, 5vw, 72px) var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  .status__dot { animation: none; }
  .drawer[open] { animation: none; }
  .steps.is-playing .step.is-active .step__fill { animation: none; width: 100%; }
}
