/* Sdílené styly: kontakt.html + tematické „prostory“ (esence, pánev, alchymie) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Stejná dlaždice jako na úvodní stránce — světlý tah pro tmavé pozadí */
  --verca-room-sacred-tile: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23d4c9b8%22%3E%3Cg%20stroke-width%3D%220.42%22%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2260%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%2260%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2274%22%20cy%3D%2284%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2246%22%20cy%3D%2284%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2260%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2246%22%20cy%3D%2236%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2274%22%20cy%3D%2236%22%20r%3D%2214%22%2F%3E%3C%2Fg%3E%3Cg%20stroke-width%3D%220.36%22%20opacity%3D%220.72%22%20transform%3D%22rotate(30%2060%2060)%22%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2260%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%2260%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2274%22%20cy%3D%2284%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2246%22%20cy%3D%2284%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2260%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2246%22%20cy%3D%2236%22%20r%3D%2214%22%2F%3E%3Ccircle%20cx%3D%2274%22%20cy%3D%2236%22%20r%3D%2214%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2260%22%20r%3D%2226%22%20stroke-width%3D%220.3%22%20opacity%3D%220.52%22%2F%3E%3Cpath%20stroke-width%3D%220.32%22%20opacity%3D%220.58%22%20d%3D%22M60%2034%20L85.2%2048.5V79.5L60%2094L34.8%2079.5V48.5Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
html, body { height: 100%; }
body {
  overflow-x: hidden;
  background: #1a1510;
  color: #F6F1E8;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.no-webgl .gl-fallback,
body.reduce-motion .gl-fallback { opacity: 1; }
.gl-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 30% 40%, rgba(184, 100, 71, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(42, 56, 47, 0.5) 0%, transparent 50%),
    linear-gradient(165deg, #1a1510 0%, #2a241c 100%);
  transition: opacity 1.2s ease;
}
body.room-sun-layout .gl-fallback {
  inset: auto;
  top: 0;
  bottom: 0;
  left: -11vw;
  width: 118vw;
  max-width: none;
  background:
    radial-gradient(ellipse 88% 72% at 22% 44%, rgba(200, 120, 88, 0.38) 0%, transparent 56%),
    radial-gradient(ellipse 58% 48% at 62% 58%, rgba(42, 56, 47, 0.48) 0%, transparent 52%),
    linear-gradient(165deg, #1a1510 0%, #2a241c 100%);
}

#glcanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
/* Kontakt + prostory: horizont posunutý doleva — „slunce“ vlevo, rám vpravo */
body.room-sun-layout #glcanvas {
  inset: auto;
  top: 0;
  bottom: 0;
  left: -11vw;
  width: 118vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
}
body.reduce-motion #glcanvas,
body.no-webgl #glcanvas { display: none; }

.room-sacred {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.085;
  background-image: var(--verca-room-sacred-tile);
  background-size: 96px 96px;
  background-repeat: repeat;
  background-position: 14% 24%;
}
body.reduce-motion .room-sacred {
  opacity: 0.045;
}
body.room-sun-layout .room-sacred {
  background-position: 8% 26%;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 30%, rgba(10, 8, 6, 0.55) 100%);
}
body.room-sun-layout::after {
  background: radial-gradient(ellipse 82% 72% at 34% 46%, transparent 24%, rgba(10, 8, 6, 0.58) 100%);
}

.contact-wrap {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 40px);
  padding-top: max(24px, env(safe-area-inset-top));
}

.contact-stage {
  margin: auto;
  width: 100%;
  max-width: 520px;
  padding: clamp(28px, 5vw, 44px);
  background: rgba(246, 241, 232, 0.08);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  border: 1px solid rgba(246, 241, 232, 0.14);
  border-radius: 16px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(22px);
  animation: stageIn 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.contact-stage--wide {
  max-width: min(38rem, calc(100vw - 32px));
}
@keyframes stageIn {
  to { opacity: 1; transform: translateY(0); }
}
.reduce-motion .contact-stage {
  animation: none;
  opacity: 1;
  transform: none;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: auto;
  padding-bottom: 24px;
}

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #F6F1E8;
  text-decoration: none;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
.back {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.55);
  text-decoration: none;
  transition: color 0.35s;
}
@media (hover: hover) {
  .back:hover { color: #F6F1E8; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.45);
  margin-bottom: 12px;
}

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
h1 em {
  font-style: italic;
  color: #D4886A;
}

.lead {
  color: rgba(246, 241, 232, 0.72);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 42ch;
}
.contact-stage--wide .lead {
  max-width: 52ch;
}

.room-prose {
  margin-bottom: 24px;
}
.room-prose p {
  margin-bottom: 1.1rem;
  color: rgba(246, 241, 232, 0.68);
  font-size: 14.75px;
  line-height: 1.78;
}
.room-prose p:last-child { margin-bottom: 0; }

.room-pair {
  display: grid;
  gap: 14px;
  margin: 22px 0 26px;
}
@media (min-width: 560px) {
  .room-pair { grid-template-columns: 1fr 1fr; }
}
.room-card {
  padding: 18px 18px 16px;
  border-radius: 12px;
  border: 1px solid rgba(246, 241, 232, 0.12);
  background: rgba(0, 0, 0, 0.14);
}
.room-card__label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.4);
  margin-bottom: 8px;
}
.room-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 400;
  margin: 0 0 8px;
  color: #F6F1E8;
}
.room-card__text {
  font-size: 13.5px;
  color: rgba(246, 241, 232, 0.62);
  line-height: 1.65;
}

.room-cross {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 241, 232, 0.1);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: rgba(246, 241, 232, 0.42);
}
.room-cross a {
  color: #D4886A;
  text-decoration: none;
  white-space: nowrap;
}
@media (hover: hover) {
  .room-cross a:hover { text-decoration: underline; }
}
.room-cross span.sep {
  margin: 0 0.35em;
  opacity: 0.45;
}

.actions,
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.45s, background 0.4s, border-color 0.4s;
}
.btn--primary {
  background: #2A382F;
  color: #F6F1E8;
  border-color: #2A382F;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}
@media (hover: hover) {
  .btn--primary:hover {
    background: #B86447;
    border-color: #B86447;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(184, 100, 71, 0.35);
  }
}

.btn--ghost {
  background: transparent;
  color: rgba(246, 241, 232, 0.85);
  border-color: rgba(246, 241, 232, 0.22);
}
@media (hover: hover) {
  .btn--ghost:hover {
    background: rgba(246, 241, 232, 0.08);
    border-color: rgba(246, 241, 232, 0.35);
  }
}

.note {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(246, 241, 232, 0.45);
  font-style: italic;
}

#err {
  margin-top: 12px;
  font-size: 12px;
  color: #f5c89a;
  font-family: ui-monospace, monospace;
  display: none;
}
#err.is-visible { display: block; }
#err.verca-contact-msg--ok {
  color: #c5e0c8;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body.room-contact-page .contact-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.room-contact-page .contact-form label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--room-contact-faint);
  margin-bottom: 6px;
}
body.room-contact-page .contact-form input,
body.room-contact-page .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--room-contact-text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(246, 241, 232, 0.14);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.room-contact-page .contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
body.room-contact-page .contact-form input:focus,
body.room-contact-page .contact-form textarea:focus {
  border-color: rgba(212, 136, 106, 0.55);
  box-shadow: 0 0 0 2px rgba(212, 136, 106, 0.12);
}
body.room-contact-page .contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.room-contact-page .contact-form .btn--primary {
  margin-top: 4px;
  align-self: flex-start;
}

body.room-contact-page .note__mailto {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-weight: 500;
  color: var(--room-contact-faint);
}
body.room-contact-page .note__mailto a {
  color: var(--room-contact-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.room-contact-page .note__mailto a:hover {
  color: var(--room-contact-text);
}

.attrib {
  margin-top: auto;
  padding-top: 32px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 232, 0.22);
  text-align: center;
}
.attrib a { color: rgba(246, 241, 232, 0.35); }

@media (max-width: 768px) {
  .contact-stage {
    backdrop-filter: blur(12px) saturate(115%);
    -webkit-backdrop-filter: blur(12px) saturate(115%);
    background: rgba(246, 241, 232, 0.06);
  }
}

.top-bar__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 2vw, 14px);
}

.top-bar__end .verca-ambient-volume input[type='range'] {
  background: rgba(246, 241, 232, 0.14);
  accent-color: #d4886a;
}

.top-bar__end .verca-ambient-volume input[type='range']::-webkit-slider-thumb {
  background: #e8c4b5;
  border-color: rgba(36, 30, 24, 0.35);
}

.top-bar__end .verca-ambient-volume input[type='range']::-moz-range-thumb {
  background: #e8c4b5;
  border-color: rgba(36, 30, 24, 0.35);
}
.ambient-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid rgba(246, 241, 232, 0.18);
  background: rgba(246, 241, 232, 0.06);
  color: rgba(246, 241, 232, 0.62);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}
.ambient-toggle svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ambient-toggle .ambient-toggle-icon-on { display: none; }
.ambient-toggle.is-playing {
  border-color: rgba(212, 136, 106, 0.5);
  color: #E8C4B5;
  background: rgba(184, 100, 71, 0.14);
}
.ambient-toggle.is-playing .ambient-toggle-icon-off { display: none; }
.ambient-toggle.is-playing .ambient-toggle-icon-on { display: block; }
@media (hover: hover) {
  .ambient-toggle:hover {
    color: rgba(246, 241, 232, 0.92);
    border-color: rgba(246, 241, 232, 0.28);
    transform: translateY(-1px);
  }
  .ambient-toggle.is-playing:hover {
    color: #F6F1E8;
    border-color: rgba(212, 136, 106, 0.65);
  }
}

/* ═══ Kontakt (rezervace) — tokeny, čitelnost, layout slunce | formulář ═══ */
:root {
  --room-contact-surface: rgba(26, 22, 18, 0.92);
  --room-contact-surface-edge: rgba(246, 241, 232, 0.2);
  --room-contact-text: #f6f1e8;
  --room-contact-muted: rgba(246, 241, 232, 0.78);
  --room-contact-faint: rgba(246, 241, 232, 0.52);
  --room-contact-accent: #e8b89a;
  --room-contact-cta-border: rgba(212, 136, 106, 0.65);
}

.contact-skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 50;
  padding: 12px 18px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1510;
  background: #f6f1e8;
  border-radius: 10px;
  border: 2px solid rgba(184, 100, 71, 0.45);
  outline: 3px solid #d4886a;
  outline-offset: 2px;
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
}

body.room-sun-layout .contact-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
}

/* Esence / Tajemství / Alchymie: pravý okraj — .contact-stage má globálně margin:auto, což jinak věší kartu na střed i při flex-end */
@media (min-width: 960px) {
  body.room-sun-layout:not(.room-contact-page) .contact-wrap {
    align-items: flex-end;
    padding-right: max(12px, env(safe-area-inset-right));
  }
  body.room-sun-layout:not(.room-contact-page) .contact-wrap > .top-bar,
  body.room-sun-layout:not(.room-contact-page) .contact-wrap > .contact-stage,
  body.room-sun-layout:not(.room-contact-page) .contact-wrap > .attrib {
    width: 100%;
    max-width: min(38rem, calc(100vw - clamp(24px, 5vw, 72px)));
    margin-left: 0;
    margin-right: 0;
    align-self: flex-end;
  }
  body.room-sun-layout:not(.room-contact-page) .contact-wrap > .contact-stage {
    margin-top: 0;
    margin-bottom: 0;
  }
}

body.room-contact-page .contact-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  width: 100%;
}

@media (min-width: 960px) {
  body.room-contact-page .contact-layout {
    align-items: flex-end;
    max-width: min(1240px, 100%);
    margin-left: auto;
    margin-right: 0;
  }
}

body.room-contact-page .contact-layout__main {
  min-width: 0;
  width: 100%;
}

@media (min-width: 960px) {
  body.room-contact-page .contact-layout__main {
    max-width: min(520px, 46vw);
  }
}

body.room-contact-page .top-bar {
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
  background: var(--room-contact-surface);
  border: 1px solid var(--room-contact-surface-edge);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
}

body.room-contact-page .logo {
  color: var(--room-contact-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.room-contact-page .contact-stage {
  background: linear-gradient(168deg, rgba(28, 24, 20, 0.96) 0%, rgba(18, 15, 12, 0.98) 100%);
  border: 1px solid var(--room-contact-surface-edge);
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.room-contact-page .label {
  color: var(--room-contact-accent);
}

body.room-contact-page .lead {
  color: var(--room-contact-muted);
  max-width: 48ch;
}

body.room-contact-page h1 {
  color: var(--room-contact-text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

body.room-contact-page .note {
  color: var(--room-contact-faint);
}

body.room-contact-page .room-cross {
  color: var(--room-contact-faint);
}

.contact-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 44px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1510;
  background: linear-gradient(165deg, #f6f1e8 0%, #e8dcc8 100%);
  border: 2px solid var(--room-contact-cta-border);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-back__arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.contact-back:focus-visible {
  outline: 3px solid #f6f1e8;
  outline-offset: 3px;
}

@media (hover: hover) {
  .contact-back:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(184, 100, 71, 0.28);
    background: #fff9f2;
  }
}

.contact-subheading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 400;
  color: var(--room-contact-text);
  margin: 2rem 0 0.5rem;
}

.contact-calendly-zone {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 241, 232, 0.12);
}

.contact-calendly-fallback {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--room-contact-muted);
  max-width: 52ch;
}

.contact-calendly-fallback[hidden] {
  display: none;
}

.contact-code {
  font-family: ui-monospace, monospace;
  font-size: 0.82em;
  color: var(--room-contact-accent);
}

.contact-calendly-frame {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(246, 241, 232, 0.14);
  background: rgba(0, 0, 0, 0.2);
}

.contact-calendly-frame[hidden] {
  display: none;
}

body.room-contact-page .ambient-toggle {
  border-color: rgba(246, 241, 232, 0.28);
  background: rgba(0, 0, 0, 0.2);
  color: var(--room-contact-muted);
}

@media (max-width: 768px) {
  body.room-contact-page .contact-stage {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}
