/* Shared layout rules for the public site and its demonstrations. */
html { overflow-x: clip; }
body { min-width: 0; }
html { scroll-padding-top: 100px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 2147483002; padding: 12px 20px; background: #fff; color: #111; border-radius: 6px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.dr-site .nav-cta, .dr-site .btn-primary, .dr-site .notebook-send { background: #117653; color: #fff; }
.dr-site .postit strong { color: #635027; }
.dr-site footer p { opacity: 1 !important; }
.dr-site .step-num { opacity: 1; }
[data-theme="light"] .dr-site { --text-dim: #526678; --accent: #087252; }
.dr-site .t1-nlabel { color: #9eabc0; }
.dr-site .t1-main .dm-table th { color: #53647a !important; }
.demo-disclosure { margin-top: 24px !important; font-size: .95rem !important; }
img, video { max-width: 100%; }
input, select, textarea { min-width: 0; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent, #1d9e75); outline-offset: 4px; }
.dr-site > nav { position: fixed; z-index: 1000; }

.dr-site .hero::before, .dr-site .blog-hero::before {
  right: 0;
  max-width: 100%;
}
.dr-site .cta-section::before { width: min(500px, 100%); }
.dr-demo-kawiarnia .hero-cafe::before { max-width: 100%; }
.dr-demo-fryzjer-premium .doświadczenie::before { right: 0; max-width: 100%; }
.dr-site .container, .dr-site .dm-main, .dr-site .dm-card,
.dr-site .demo-panel, .dr-site .demo-cta-row > *, .dr-site .blog-card { min-width: 0; }
.dr-site .dm-card { overflow-x: auto; }
.dr-site .faq-q { list-style: none; cursor: pointer; }
.dr-site .faq-q::-webkit-details-marker { display: none; }
.dr-site .faq-item[open] .faq-a { max-height: none; padding: 0 20px 16px; }
.dr-site .faq-item[open] .faq-arrow { transform: rotate(45deg); }
.dr-site .dpf-tab { text-decoration: none; }
.dr-site .dpf-tab:hover, .dr-site .dpf-tab:focus-visible {
  background: rgba(29, 158, 117, .18);
  border-color: var(--accent);
  color: var(--text-bright);
}
.dr-site .dpf-cursor, .dr-site .dpf-click-burst, .dr-site .dpf-label { pointer-events: none; }

.mobile-menu { display: none; }
.mobile-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-bright);
  cursor: pointer;
  list-style: none;
}
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu[open] > summary { border-color: var(--accent); background: var(--accent-dim); }
.mobile-menu-panel {
  z-index: 1;
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  padding: 12px;
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.mobile-menu-panel > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--text-bright);
  text-decoration: none;
  font-size: 1rem;
}
.mobile-menu-panel a:hover { background: var(--accent-dim); }
.mobile-menu-languages { display: flex; gap: 8px; padding: 12px 8px 4px; border-top: 1px solid var(--border); }
.mobile-menu-languages a {
  display: grid;
  place-items: center;
  min-width: 52px;
  min-height: 44px;
  color: var(--text-bright);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
}
.mobile-menu-languages [aria-current] { border-color: var(--accent); color: var(--accent); }

@media (max-width: 768px) {
  .dr-site > nav .container { gap: 8px; padding-inline: 16px; }
  .dr-site .nav-right { gap: 8px; min-width: 0; }
  .dr-site .nav-links, .dr-site .lang-switch, .dr-site .nav-right > .lang-btn { display: none; }
  .dr-site .mobile-menu { display: block; }
  .dr-site .logo { white-space: nowrap; }
  .dr-site .theme-btn, .dr-site .nav-toggle { flex-shrink: 0; }
  .dr-site .nav-cta { white-space: nowrap; padding: 8px 12px; font-size: .8rem; }
  .dr-site .hero { padding-top: 120px; padding-bottom: 56px; }
  .dr-site .postit { max-width: 100% !important; transform: none !important; }
  .dr-site .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .dr-site .dm-row { grid-template-columns: minmax(0, 1fr) !important; }
  .dr-site .dm-main { padding: 16px; }
  .dr-site .dm-h { flex-wrap: wrap; gap: 12px; }
  .dr-site .dm-side { max-width: 100%; }
  .dr-site .dm-nav { flex-shrink: 0; }
  .dr-site .hero-actions .btn { justify-content: center; text-align: center; }
  .dr-site .section-title, .dr-site .blog-card h2, .dr-site article { overflow-wrap: anywhere; }
  .dr-site .notebook-form { transform: none; }
  .dr-site .walkbot, .dr-site .wb-projectile, .dr-site .wb-rocket, .dr-site .wb-boom { display: none; }
  .dr-demo .booking-row, .dr-demo .booking-row-2, .dr-demo .book-row { grid-template-columns: minmax(0, 1fr) !important; }
  .dr-demo .booking-row > *, .dr-demo .booking-row-2 > *, .dr-demo .book-row > *, .dr-demo .field-group, .dr-demo .contact-grid > * { min-width: 0; }
  .dr-demo .field-group input, .dr-demo .field-group select { width: 100%; }
  .dr-demo .chat-input input { min-width: 0; }
  .dr-demo .toast { max-width: calc(100vw - 32px); overflow-wrap: anywhere; }
  .dr-demo .services-grid { grid-template-columns: minmax(0, 1fr); }
  .dr-demo-fryzjer .contact-list li { flex-wrap: wrap; gap: 6px; overflow-wrap: anywhere; }
  .dr-demo-fryzjer .booking-section, .dr-demo-fryzjer .contact-section { padding-inline: 18px; }
  .dr-demo-fryzjer .hero-est { letter-spacing: .12em; }
  .dr-demo-fryzjer-premium .cennik-item { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .dr-demo-fryzjer-premium .cennik-tabs { flex-wrap: wrap; }
  .dr-demo-fryzjer-premium .cennik-tab { padding-inline: 14px; }
  .dr-demo-fryzjer-premium .cennik-item > div:first-child { grid-column: 1 / -1; }
  .dr-demo-fryzjer-premium .adres-info li { flex-wrap: wrap; overflow-wrap: anywhere; }
  .dr-demo-kawiarnia .tables-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .dr-demo-kawiarnia .table-spot { flex-direction: column; min-width: 0; }
}

@media (max-width: 380px) {
  .dr-site .container { padding-inline: 20px; }
  .dr-site > nav .container { padding-inline: 12px; }
  .dr-site .nav-right { gap: 5px; }
  .dr-site .process-grid { grid-template-columns: minmax(0, 1fr); }
  .dr-site .demo-cta-row { padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .dr-site, .dr-site *, .dr-site *::before, .dr-site *::after { animation: none !important; transition: none !important; }
  .dr-site .hero-bg-video, .dr-site .page-bg-video, .dr-site .walkbot { display: none !important; }
  .dr-site .reveal { opacity: 1; transform: none; transition: none; }
}

/* Contact form shared by PL, EN and DE. */
.notebook-form{position:relative;max-width:560px;margin:40px auto 24px;padding:54px 38px 36px 72px;background:#fffef0;border-radius:3px;box-shadow:0 18px 50px rgba(0,0,0,.4),0 4px 10px rgba(0,0,0,.2);transform:rotate(-.4deg);text-align:left;color:#1a2a3a}
.notebook-form::before{content:'';position:absolute;left:54px;top:14px;bottom:14px;width:1.5px;background:#ff8a8a;opacity:.8}
.notebook-spiral{position:absolute;top:14px;left:18px;right:18px;display:flex;justify-content:space-between;pointer-events:none}
.notebook-spiral span{width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#5a5a5a,#1a1a1a 60%,#0a0a0a);box-shadow:inset 0 1px 2px rgba(255,255,255,.15),0 2px 3px rgba(0,0,0,.4)}
.notebook-corner{position:absolute;top:0;right:0;width:30px;height:30px;background:linear-gradient(225deg,transparent 50%,#f0e6c0 50%);border-radius:0 3px 0 0;box-shadow:-2px 2px 4px rgba(0,0,0,.12);pointer-events:none}
.notebook-title{font-family:'Caveat','Comic Sans MS',cursive;font-size:2.1rem;color:#2a4a6a;margin:0 0 18px;transform:rotate(-1deg);display:inline-block;line-height:1}
.nb-field{margin-bottom:14px}
.nb-field label{display:block;font-family:'Caveat','Comic Sans MS',cursive;color:#3a5a7a;font-size:1.2rem;margin-bottom:2px;line-height:1.2}
.nb-field input,.nb-field textarea{width:100%;background:transparent;border:none;border-bottom:1px solid #cee0ec;font-family:'Caveat','Comic Sans MS',cursive;font-size:1.45rem;color:#1a2a3a;padding:4px 0 6px;outline:none;line-height:32px}
.nb-field textarea{background-image:linear-gradient(transparent 31px,#cee0ec 31px,#cee0ec 32px,transparent 32px);background-size:100% 32px;background-position:0 0;resize:vertical;min-height:128px;padding:0}
.nb-field input:focus,.nb-field textarea:focus{border-bottom-color:#3a5a7a}
.nb-field input::placeholder,.nb-field textarea::placeholder{color:#9aaab8;opacity:.7}
.notebook-send{margin-top:14px;font-family:'Caveat','Comic Sans MS',cursive;font-size:1.5rem;background:#1d9e75;color:#fff;border:none;padding:8px 30px;border-radius:6px;cursor:pointer;transform:rotate(-1.5deg);box-shadow:0 4px 0 #166b50,0 8px 14px rgba(0,0,0,.22);transition:transform .15s ease,box-shadow .15s ease;font-weight:600}
.notebook-send:hover{transform:rotate(-1.5deg) translateY(-2px);box-shadow:0 6px 0 #166b50,0 10px 18px rgba(0,0,0,.25)}
.notebook-send:active{transform:rotate(-1.5deg) translateY(2px);box-shadow:0 2px 0 #166b50,0 4px 8px rgba(0,0,0,.2)}
.notebook-note{font-family:'Caveat','Comic Sans MS',cursive;color:#5a6a7a;font-size:1.1rem;margin:14px 0 0}
.notebook-note a{color:#2a4a6a;border-bottom:1px solid #2a4a6a;text-decoration:none}
.notebook-success{display:none;font-family:'Caveat','Comic Sans MS',cursive;color:#1d9e75;font-size:1.5rem;margin-top:12px;transform:rotate(-1deg)}
.notebook-success.show{display:block}
@media(max-width:600px){
.notebook-form{padding:48px 18px 28px 50px;margin:28px 8px 16px;transform:rotate(-.2deg)}
.notebook-form::before{left:36px}
.notebook-title{font-size:1.85rem}
.nb-field input,.nb-field textarea{font-size:1.3rem}
}

.dr-site .contact-help { font: .85rem/1.55 'DM Sans', system-ui, sans-serif; color: #435567; margin: 0 0 18px; }
.dr-site .contact-help a { color: #175c48; text-decoration: underline; }
.dr-site .nb-field input:focus-visible, .dr-site .nb-field textarea:focus-visible { outline: 2px solid #117653; outline-offset: 3px; }
.dr-site .nb-field input::placeholder, .dr-site .nb-field textarea::placeholder { color: #54687a; opacity: 1; }
.dr-site .notebook-send:disabled { cursor: wait; transform: none; }
.dr-site .contact-status { font: 600 .95rem/1.6 'DM Sans', system-ui, sans-serif; color: #175c48; margin-top: 18px; overflow-wrap: anywhere; }
.dr-site .contact-status:empty { display: none; }
.dr-site .contact-status[data-state="error"] { color: #992b20; }
