/* Prvky navíc oproti běžnému webu: 3D galerie. */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Fotka posouvaná ve výřezu */
[data-parallax] { overflow: hidden; border-radius: var(--radius); }
[data-parallax] img { will-change: transform; border-radius: 0; }

/* Větší čísla u slibů */
.facts dt { font-size: clamp(32px, 3.6vw, 52px); }

/* 3D galerie */
.refs { padding-block: var(--section); overflow: clip; }
.refs .sec-head { margin-inline: auto; max-width: 1280px; }
.refs .sec-head > * { max-width: 760px; }
.ring-stage.ring-on { --ring-w: min(58vw, 720px); --ring-h: calc(var(--ring-w) * 0.68); position: relative; height: calc(var(--ring-h) + 60px); perspective: 1800px; perspective-origin: 50% 50%; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; }
.ring-stage.dragging { cursor: grabbing; }
.ref-grid.ring { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; max-width: none; padding: 0; margin: 0; transform-style: preserve-3d; will-change: transform; }
.ring .ref { position: absolute; left: calc(var(--ring-w) / -2); top: calc(var(--ring-h) / -2); width: var(--ring-w); height: var(--ring-h); backface-visibility: hidden; }
.ring .ref button { height: 100%; cursor: pointer; }
.ring .ref.is-front button { cursor: zoom-in; }
.ring .ref img { height: 100%; -webkit-user-drag: none; pointer-events: none; }
.ring .ref figcaption { display: none; }
.ring-ctrl { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); margin-top: 16px; }
.ring-ctrl[hidden] { display: none; }
.ring-btn { flex: none; width: 56px; height: 56px; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font: 500 22px/1 var(--font); cursor: pointer; transition: background 0.2s, color 0.2s; }
.ring-btn:hover { background: var(--ink); color: var(--white); }
.ring-cap { min-width: min(46vw, 340px); text-align: center; font-size: 19px; font-weight: 600; line-height: 1.3; }
.ring-cap small { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--ink-soft); }

/* Poptávkový formulář */
.form-title { font-size: clamp(25px, 2.4vw, 32px); }
.form-group { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form-group legend { padding: 0 0 10px; font-size: 17px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; align-items: start; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; min-height: 54px; padding: 10px 14px; border-radius: var(--radius); background: var(--sand); font-size: 16px; font-weight: 500; line-height: 1.25; transition: background 0.2s, color 0.2s; }
.opt:hover span { background: #d5dccd; }
.opt input:checked ~ span { background: var(--accent); color: var(--on-accent); }
.opt input:focus-visible ~ span { outline: 3px solid var(--accent); outline-offset: 3px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-done { display: grid; gap: 12px; }
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.form-done h3 { font-size: clamp(25px, 2.4vw, 32px); }

/* Co se stane dál */
.next-h { margin-top: clamp(56px, 7vw, 88px); }
.next { list-style: none; counter-reset: krok; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 24px 0 0; padding: 0; }
.next li { counter-increment: krok; padding-top: 18px; border-top: 2px solid var(--ink); }
.next li::before { content: counter(krok); display: block; margin-bottom: 8px; font-size: 18px; font-weight: 600; color: var(--accent-deep); }
.next b { display: block; font-size: 20px; font-weight: 600; }
.next span { display: block; margin-top: 4px; color: var(--ink-soft); }

@media (max-width: 960px) {
  .ring-stage.ring-on { --ring-w: 74vw; }
}
@media (max-width: 760px) {
  .ring-cap { font-size: 17px; }
  .next { grid-template-columns: 1fr; }
  .field-row, .opts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .how-stage img.on { animation: none; }
}
