:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --line: #e2e8f0;
  --accent: #0284c7;
  --accent-deep: #075985;
  --coral: #f43f5e;
  --coral-soft: #fb7185;
}

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

body {
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--paper-soft);
  color: var(--ink);
  overflow-x: hidden;
}

.font-display {
  font-family: "Playfair Display", "Georgia", serif;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--paper-soft);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.bg-cover-center {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.glass-light {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.text-stroke {
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.55);
  color: transparent;
}

.text-stroke-light {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  color: transparent;
}

.eyebrow {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
}

.grain-overlay {
  position: relative;
}

.grain-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 4px 4px;
}

.pachinkopl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    padding 0.4s ease;
}

.pachinkopl-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

.pachinkopl-header.scrolled .topbar {
  background: var(--ink);
  color: #e2e8f0;
  border-color: transparent;
}

.header-link {
  position: relative;
  transition: color 0.25s ease;
}

.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.3s ease;
}

.header-link:hover::after,
.header-link.active::after {
  width: 100%;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(24px);
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
}

.burger-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.burger-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.1s ease,
    transform 1.4s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide .slide-inner {
  position: relative;
  z-index: 2;
}

.slider-dot {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.35s ease;
  cursor: pointer;
}

.slider-dot.active {
  background: #fff;
  width: 52px;
}

.slider-arrow {
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-arrow:hover {
  background: #fff;
  color: var(--ink);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    padding 0.4s ease;
  opacity: 0;
}

.accordion-item.open .accordion-body {
  opacity: 1;
}

.accordion-item .accordion-chevron {
  transition: transform 0.4s ease;
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}

.service-accordion .accordion-row {
  transition: background 0.4s ease;
}

.tab-btn {
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeSlideUp 0.5s ease both;
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.45);
  }
  70% {
    box-shadow: 0 0 0 22px rgba(244, 63, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
  }
}

.pulse-btn {
  animation: pulseRing 2.4s infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.live-dot {
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.float-y {
  animation: floatY 7s ease-in-out infinite;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

.spin-slow {
  animation: spinSlow 22s linear infinite;
}

@keyframes spinOnce {
  to {
    transform: rotate(360deg);
  }
}

.hscroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 0.5rem;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.hscroll.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.hscroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring circle {
  transition: stroke-dashoffset 0.6s ease;
}

.kinetic-word {
  display: inline-block;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.kinetic-word.swap {
  opacity: 0;
  transform: translateY(12px);
}

.hover-lift {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.22);
}

.card-zoom-img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.group:hover .card-zoom-img,
.hover-zoom:hover .card-zoom-img {
  transform: scale(1.06);
}

.link-arrow i {
  transition: transform 0.3s ease;
}

.link-arrow:hover i {
  transform: translate(4px, -4px);
}

.cursor-preview {
  position: fixed;
  width: 280px;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 900;
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.4);
}

.cursor-preview.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.count-cell {
  min-width: 74px;
  text-align: center;
}

.count-cell .num {
  font-variant-numeric: tabular-nums;
}

.hotspot {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  z-index: 5;
}

.hotspot:hover,
.hotspot.active {
  transform: scale(1.15);
  background: var(--coral);
  color: #fff;
}

.hotspot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: pulseDot 2s ease-in-out infinite;
}

.field-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  outline: none;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.field-input.error {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--coral);
  margin-top: 0.35rem;
}

.field-error.show {
  display: block;
}

input[type="checkbox"].error {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  min-height: 1.3em;
  margin-top: 0.5rem;
}

.form-note.error {
  color: var(--coral);
}

.form-note.success {
  color: var(--accent);
}

.step-dot {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.35s ease;
}

.step-dot.active {
  background: var(--accent);
}

.step-dot.done {
  background: var(--coral);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinOnce 0.7s linear infinite;
}

.btn-loader.dark {
  border-color: rgba(15, 23, 42, 0.25);
  border-top-color: var(--ink);
}

.is-loading .btn-loader {
  display: inline-block;
}

.is-loading .btn-label {
  opacity: 0.6;
}

.form-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 0.9rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  z-index: 2000;
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 480px);
}

.form-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.form-toast.success {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.form-toast.error {
  background: #1e293b;
  border: 1px solid rgba(244, 63, 94, 0.5);
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 3000;
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.4rem 1.6rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.3);
  max-width: 880px;
  margin: 0 auto;
}

.cookie-banner.show {
  display: flex;
  animation: cookieIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--coral));
  z-index: 1200;
  width: 0;
  transition: width 0.1s linear;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.range-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: pointer;
}

.wave-bar {
  display: inline-block;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  animation: wavePulse 1.1s ease-in-out infinite;
}

@keyframes wavePulse {
  0%,
  100% {
    transform: scaleY(0.4);
  }
  50% {
    transform: scaleY(1);
  }
}

.tick-track {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 32px;
}

.tick-track span {
  flex: 1;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.35);
  min-width: 2px;
}

.tick-track span.up {
  background: var(--accent);
}

.tick-track span.down {
  background: rgba(244, 63, 94, 0.55);
}

.sticky-col {
  position: sticky;
  top: 110px;
  align-self: start;
}

.drop-cap::first-letter {
  font-family: "Playfair Display", serif;
  font-size: 4.6em;
  float: left;
  line-height: 0.82;
  padding-right: 0.12em;
  padding-top: 0.05em;
  color: var(--accent-deep);
  font-weight: 700;
}

.emblem-outline {
  -webkit-text-stroke: 1.5px rgba(148, 163, 184, 0.4);
  color: transparent;
  font-family: "Playfair Display", serif;
  line-height: 0.85;
}

.masonry {
  column-count: 3;
  column-gap: 1.25rem;
}

.masonry > * {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}

.switch {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.3s ease;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.switch.on {
  background: var(--accent);
}

.switch.on::after {
  transform: translateX(26px);
}

.dish-detail {
  animation: fadeSlideUp 0.45s ease both;
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.step-line::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 60px;
  bottom: -30px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.step-item:last-child .step-line::before {
  display: none;
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

.tick-sep {
  border-bottom: 1px dashed var(--line);
}

@media (max-width: 1023px) {
  .sticky-col {
    position: static;
  }

  .masonry {
    column-count: 2;
  }
}

@media (max-width: 767px) {
  html {
    max-width: 100%;
    overflow-x: hidden;
  }
  .masonry {
    column-count: 1;
  }

  .count-cell {
    min-width: 62px;
  }

  .drop-cap::first-letter {
    font-size: 3.4em;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
  }

  .hero-slide .slide-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .cursor-preview {
    display: none;
  }

  .step-line::before {
    left: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
