html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0f0f0f;
  color: #ffffff;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes floatUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(196, 122, 74, 0);
  }
  50% {
    box-shadow: 0 0 28px rgba(196, 122, 74, 0.35);
  }
}

.animate-float-up {
  animation: floatUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pulse-neon {
  animation: softPulse 1.8s ease-in-out infinite;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none), (pointer: coarse) {
  button,
  a,
  label,
  [data-touchable],
  [data-mobile-nav],
  [data-open-gallery],
  [data-open-video],
  [data-open-quiz],
  [data-open-consult],
  [data-gallery-prev],
  [data-gallery-next],
  [data-close-gallery],
  [data-close-video],
  [data-close-quiz],
  [data-close-consult],
  [data-mobile-menu],
  [data-close-mobile-menu] {
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s ease, filter 0.18s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  button:active,
  a:active,
  label:active,
  [data-touchable]:active,
  [data-mobile-nav]:active,
  [data-open-gallery]:active,
  [data-open-video]:active,
  [data-open-quiz]:active,
  [data-open-consult]:active,
  [data-gallery-prev]:active,
  [data-gallery-next]:active,
  [data-close-gallery]:active,
  [data-close-video]:active,
  [data-close-quiz]:active,
  [data-close-consult]:active,
  [data-mobile-menu]:active,
  [data-close-mobile-menu]:active,
  .touch-press {
    filter: brightness(1.08) saturate(1.05);
    transform: translateY(-1px) scale(0.985);
  }
}

/* Mobile 2-col cards: font scales with card width; no hyphenation / no breaking inside words */
.mobile-cq-card {
  container-type: inline-size;
  min-width: 0;
}

.mobile-cq-heading-why,
.mobile-cq-heading-services {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  line-break: auto;
}

/* Sentence-case titles (“Чому кав’ярня”) — wrap only at spaces */
.mobile-cq-heading-why {
  line-height: 1.15;
  font-size: min(1.12rem, 5.4cqw + 0.4rem);
}

/* Short caps service titles — shrink so one word stays on one line */
.mobile-cq-heading-services {
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: min(0.78rem, 4.55cqw + 0.36rem);
}

/* Inline admin (admin/index.html): banner + drawer */
.admin-inline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #b8895a, #c47a4a);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.admin-inline-banner a {
  color: #111;
  text-decoration: underline;
  font-weight: 700;
}

body.admin-inline-active {
  padding-top: 48px;
}

[data-admin-panel] {
  top: 48px;
  height: calc(100vh - 48px);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}

[data-admin-panel] label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  margin-bottom: 4px;
}

[data-admin-panel] input[type="text"],
[data-admin-panel] textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
}

[data-admin-img-preview-wrap] {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0a0a;
  padding: 8px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-admin-img-preview] {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
}

[data-admin-img-preview].is-hidden {
  display: none;
}

[data-admin-apply] {
  flex: 1;
  background: #c47a4a !important;
  color: #111 !important;
  font-weight: 700 !important;
}

[data-admin-cancel] {
  flex: 1;
  background: transparent !important;
  color: #e5e5e5 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
