/* Egyoldalas nézet, kijelzőhöz igazítva – header nélkül */
html {
  height: 100%;
}

body.onepage {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Háttérkép: minimális skálázás / szűrő, hogy a fotó éles maradjon */
body.onepage::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--onepage-hero-image, url("../hero.jpg")) center / cover no-repeat;
  background-color: #2a221e;
  animation: onepage-bg-breathe 32s ease-in-out infinite alternate;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.onepage.onepage--static-bg::before {
  animation: none;
}

body.onepage::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: calc(var(--onepage-scrim, 88) / 100);
  /* normal: nem „piszkosítja” a fotót a multiply mód */
  mix-blend-mode: normal;
  background:
    radial-gradient(ellipse 92% 72% at 50% 100%, rgba(250, 246, 240, 0.62) 0%, transparent 58%),
    radial-gradient(ellipse 68% 48% at 85% 18%, rgba(255, 255, 255, 0.14), transparent 46%),
    linear-gradient(165deg, rgba(250, 246, 240, 0.38) 0%, rgba(196, 92, 62, 0.1) 45%, rgba(61, 47, 42, 0.2) 100%);
}

@keyframes onepage-bg-breathe {
  0% {
    transform: scale(1) translateZ(0);
  }
  100% {
    transform: scale(1.008) translateZ(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.onepage::before {
    animation: none;
  }
}

html {
  --onepage-scrim: 88;
}

body.modal-open {
  overflow: hidden;
}

/* —— Látványréteg: mélység-illúzió, színfoltok, finom rács (nem fogad kattintást) —— */
.onepage__ambient {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(calc(var(--px-x, 0) * 1px), calc(var(--px-y, 0) * 1px), 0);
  will-change: transform;
}

.onepage__ambient::before {
  content: "";
  position: absolute;
  inset: -45%;
  opacity: 0.42;
  background:
    radial-gradient(ellipse 55% 45% at 22% 28%, rgba(255, 186, 168, 0.32) 0%, transparent 52%),
    radial-gradient(ellipse 50% 42% at 82% 22%, rgba(186, 168, 216, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse 70% 55% at 55% 92%, rgba(250, 246, 240, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(196, 92, 62, 0.06) 0%, transparent 62%);
  animation: onepage-mesh-drift 26s ease-in-out infinite alternate;
  mix-blend-mode: normal;
}

.onepage__ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 41px,
      rgba(255, 255, 255, 0.045) 41px,
      rgba(255, 255, 255, 0.045) 42px
    ),
    repeating-linear-gradient(
      72deg,
      transparent,
      transparent 54px,
      rgba(61, 47, 42, 0.028) 54px,
      rgba(61, 47, 42, 0.028) 55px
    );
  mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, black 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, black 12%, transparent 72%);
}

.onepage__shine {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.05) 48%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 52%,
    transparent 68%
  );
  animation: onepage-shine-sweep 14s ease-in-out infinite;
  mix-blend-mode: normal;
  opacity: 0.65;
}

.onepage__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.36;
  mix-blend-mode: normal;
  animation: onepage-orb-float 19s ease-in-out infinite;
  will-change: transform;
}

.onepage__orb--a {
  width: min(62vmin, 440px);
  height: min(62vmin, 440px);
  background: radial-gradient(circle, rgba(255, 210, 195, 0.95) 0%, transparent 68%);
  top: -12%;
  left: -18%;
  animation-duration: 21s;
}

.onepage__orb--b {
  width: min(48vmin, 360px);
  height: min(48vmin, 360px);
  background: radial-gradient(circle, rgba(196, 92, 62, 0.55) 0%, transparent 65%);
  bottom: 8%;
  right: -12%;
  animation-duration: 17s;
  animation-delay: -4s;
}

.onepage__orb--c {
  width: min(40vmin, 300px);
  height: min(40vmin, 300px);
  background: radial-gradient(circle, rgba(186, 175, 210, 0.5) 0%, transparent 62%);
  top: 38%;
  left: -8%;
  animation-duration: 23s;
  animation-delay: -9s;
}

.onepage__orb--d {
  width: min(36vmin, 280px);
  height: min(36vmin, 280px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 60%);
  top: 12%;
  right: 5%;
  animation-duration: 18s;
  animation-delay: -2s;
}

.onepage__orb--e {
  width: min(44vmin, 320px);
  height: min(44vmin, 320px);
  background: radial-gradient(circle, rgba(250, 230, 210, 0.65) 0%, transparent 62%);
  bottom: 28%;
  left: 22%;
  animation-duration: 24s;
  animation-delay: -11s;
}

.onepage__shine--slow {
  animation-duration: 28s;
  animation-delay: -7s;
  transform: rotate(18deg);
  opacity: 0.4;
  mix-blend-mode: normal;
}

.onepage__bokeh {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.onepage__bokeh::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 11%;
  top: 22%;
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.95);
  opacity: 0.32;
  filter: blur(0.8px);
  box-shadow:
    12vw 6vh 0 2px rgba(255, 210, 195, 0.5),
    28vw 18vh 0 3px rgba(255, 255, 255, 0.35),
    72vw 14vh 0 4px rgba(186, 175, 210, 0.35),
    88vw 28vh 0 2px rgba(255, 248, 245, 0.45),
    6vw 52vh 0 5px rgba(255, 200, 185, 0.28),
    42vw 48vh 0 3px rgba(255, 255, 255, 0.32),
    58vw 62vh 0 4px rgba(196, 92, 62, 0.18),
    92vw 72vh 0 3px rgba(255, 255, 255, 0.28),
    22vw 78vh 0 2px rgba(240, 220, 255, 0.35),
    76vw 88vh 0 5px rgba(255, 235, 225, 0.25),
    48vw 8vh 0 2px rgba(255, 255, 255, 0.38),
    34vw 34vh 0 6px rgba(255, 255, 255, 0.15),
    64vw 38vh 0 2px rgba(255, 210, 195, 0.32),
    14vw 88vh 0 4px rgba(255, 255, 255, 0.22),
    52vw 92vh 0 3px rgba(186, 168, 216, 0.22),
    84vw 52vh 0 2px rgba(255, 255, 255, 0.3),
    38vw 72vh 0 5px rgba(255, 255, 255, 0.12),
    66vw 22vh 0 3px rgba(250, 246, 240, 0.45);
  animation: onepage-bokeh-drift 58s linear infinite;
}

.onepage__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 55% at 50% -10%, rgba(255, 255, 255, 0.1), transparent 58%),
    radial-gradient(ellipse 90% 50% at 100% 60%, rgba(196, 92, 62, 0.04), transparent 45%);
  animation: onepage-veil-pulse 11s ease-in-out infinite alternate;
  mix-blend-mode: normal;
  opacity: 0.55;
}

.onepage__rings {
  position: absolute;
  inset: -25%;
  pointer-events: none;
}

.onepage__ring {
  position: absolute;
  left: 50%;
  top: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.04) inset;
  transform: translate(-50%, -50%);
}

.onepage__ring--1 {
  width: min(115vmin, 920px);
  animation: onepage-ring-spin 140s linear infinite;
  opacity: 0.55;
}

.onepage__ring--2 {
  width: min(95vmin, 760px);
  animation: onepage-ring-spin-rev 190s linear infinite;
  border-color: rgba(196, 92, 62, 0.14);
  opacity: 0.45;
}

.onepage__ring--3 {
  width: min(72vmin, 580px);
  animation: onepage-ring-spin 95s linear infinite;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  opacity: 0.4;
}

.onepage__ring--4 {
  width: min(52vmin, 420px);
  animation: onepage-ring-spin-rev 72s linear infinite;
  border-color: rgba(155, 140, 184, 0.18);
  opacity: 0.5;
}

.onepage__ring--5 {
  width: min(34vmin, 280px);
  animation: onepage-ring-spin 48s linear infinite;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 0.35;
}

@keyframes onepage-ring-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes onepage-ring-spin-rev {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes onepage-bokeh-drift {
  from {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(3vw, -2vh);
  }
  66% {
    transform: translate(-2vw, 3vh);
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes onepage-veil-pulse {
  from {
    opacity: 0.55;
    transform: scale(1);
  }
  to {
    opacity: 0.92;
    transform: scale(1.03);
  }
}

.onepage__sparkles {
  position: absolute;
  inset: 0;
}

.onepage__sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 248, 240, 0.55) 45%, transparent 72%);
  box-shadow:
    0 0 6px 3px rgba(255, 255, 255, 0.95),
    0 0 18px 8px rgba(255, 240, 230, 0.75),
    0 0 36px 14px rgba(255, 210, 195, 0.45),
    0 0 52px 20px rgba(255, 190, 170, 0.22);
  opacity: 0;
  animation: onepage-twinkle 4.2s ease-in-out infinite;
  mix-blend-mode: screen;
}

.onepage__sparkle:nth-child(1) {
  left: 7%;
  top: 14%;
  animation-delay: 0s;
}
.onepage__sparkle:nth-child(2) {
  left: 18%;
  top: 8%;
  animation-delay: -0.7s;
}
.onepage__sparkle:nth-child(3) {
  left: 92%;
  top: 11%;
  animation-delay: -1.2s;
}
.onepage__sparkle:nth-child(4) {
  left: 84%;
  top: 22%;
  animation-delay: -2.1s;
}
.onepage__sparkle:nth-child(5) {
  left: 14%;
  top: 38%;
  animation-delay: -0.4s;
}
.onepage__sparkle:nth-child(6) {
  left: 52%;
  top: 6%;
  animation-delay: -3s;
}
.onepage__sparkle:nth-child(7) {
  left: 72%;
  top: 18%;
  animation-delay: -1.8s;
}
.onepage__sparkle:nth-child(8) {
  left: 38%;
  top: 28%;
  animation-delay: -4.2s;
}
.onepage__sparkle:nth-child(9) {
  left: 62%;
  top: 42%;
  animation-delay: -2.6s;
}
.onepage__sparkle:nth-child(10) {
  left: 8%;
  top: 62%;
  animation-delay: -3.8s;
}
.onepage__sparkle:nth-child(11) {
  left: 96%;
  top: 48%;
  animation-delay: -0.9s;
}
.onepage__sparkle:nth-child(12) {
  left: 44%;
  top: 58%;
  animation-delay: -5s;
}
.onepage__sparkle:nth-child(13) {
  left: 26%;
  top: 72%;
  animation-delay: -1.5s;
}
.onepage__sparkle:nth-child(14) {
  left: 78%;
  top: 68%;
  animation-delay: -4.5s;
}
.onepage__sparkle:nth-child(15) {
  left: 56%;
  top: 82%;
  animation-delay: -2.2s;
}
.onepage__sparkle:nth-child(16) {
  left: 32%;
  top: 88%;
  animation-delay: -3.3s;
}
.onepage__sparkle:nth-child(17) {
  left: 66%;
  top: 92%;
  animation-delay: -1.1s;
}
.onepage__sparkle:nth-child(18) {
  left: 88%;
  top: 78%;
  animation-delay: -4.8s;
}
.onepage__sparkle:nth-child(19) {
  left: 4%;
  top: 88%;
  animation-delay: -2.9s;
}
.onepage__sparkle:nth-child(20) {
  left: 48%;
  top: 96%;
  animation-delay: -0.2s;
}
.onepage__sparkle:nth-child(21) {
  left: 22%;
  top: 52%;
  animation-delay: -5.2s;
}
.onepage__sparkle:nth-child(22) {
  left: 58%;
  top: 34%;
  animation-delay: -3.6s;
}

@keyframes onepage-twinkle {
  0%,
  28%,
  100% {
    opacity: 0;
    transform: scale(0.25);
    filter: brightness(0.85);
  }
  40% {
    opacity: 0.75;
    transform: scale(1.05);
    filter: brightness(1.15);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
    filter: brightness(1.35);
  }
  60% {
    opacity: 0.85;
    transform: scale(1.08);
    filter: brightness(1.2);
  }
  72% {
    opacity: 0.25;
    transform: scale(0.65);
    filter: brightness(1);
  }
}

.onepage__shape {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: normal;
}

.onepage__shape--dia {
  width: min(16vmin, 120px);
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(196, 92, 62, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
  border-radius: 5px;
  opacity: 0.42;
  animation: onepage-shape-float 16s ease-in-out infinite;
}

.onepage__shape--1 {
  left: 6%;
  top: 26%;
  animation-delay: -3s;
}

.onepage__shape--2 {
  right: 8%;
  top: 58%;
  left: auto;
  animation-delay: -8s;
  width: min(11vmin, 88px);
}

.onepage__shape--sq {
  width: min(13vmin, 100px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0.34;
  animation: onepage-shape-float-sq 22s ease-in-out infinite reverse;
}

.onepage__shape--3 {
  right: 14%;
  top: 18%;
  left: auto;
  transform: rotate(-12deg);
}

.onepage__shape--4 {
  left: 18%;
  bottom: 16%;
  top: auto;
  transform: rotate(18deg);
}

.onepage__shape--4.onepage__shape--sq {
  animation: onepage-shape-float-sq2 24s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes onepage-shape-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(45deg);
  }
  50% {
    transform: translate(12px, -18px) rotate(48deg);
  }
}

@keyframes onepage-shape-float-sq {
  0%,
  100% {
    transform: translate(0, 0) rotate(-12deg);
  }
  50% {
    transform: translate(-16px, 10px) rotate(-8deg);
  }
}

@keyframes onepage-shape-float-sq2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(18deg);
  }
  50% {
    transform: translate(14px, -12px) rotate(22deg);
  }
}

.onepage__arc {
  position: absolute;
  width: min(165vw, 1680px);
  height: min(82vw, 840px);
  left: 50%;
  bottom: min(-38vw, -420px);
  translate: -50% 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-bottom-color: transparent;
  opacity: 0.45;
  animation: onepage-arc-sway 32s ease-in-out infinite alternate;
  filter: blur(0.3px);
}

@keyframes onepage-arc-sway {
  from {
    transform: translateX(-2%) rotate(-2deg);
    opacity: 0.35;
  }
  to {
    transform: translateX(2%) rotate(3deg);
    opacity: 0.58;
  }
}

@keyframes onepage-mesh-drift {
  from {
    transform: translate(-3%, -2%) rotate(0deg) scale(1);
  }
  to {
    transform: translate(4%, 3%) rotate(4deg) scale(1.03);
  }
}

@keyframes onepage-shine-sweep {
  0%,
  30% {
    transform: translate(-18%, -8%) rotate(-12deg);
    opacity: 0.35;
  }
  45% {
    opacity: 0.85;
  }
  70%,
  100% {
    transform: translate(22%, 12%) rotate(-12deg);
    opacity: 0.35;
  }
}

@keyframes onepage-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(6%, -7%) scale(1.06);
  }
  66% {
    transform: translate(-5%, 5%) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .onepage__ambient {
    transform: none !important;
    will-change: auto;
  }

  .onepage__ambient::before,
  .onepage__shine,
  .onepage__orb,
  .onepage__bokeh::before,
  .onepage__veil,
  .onepage__ring,
  .onepage__sparkle,
  .onepage__shape,
  .onepage__arc {
    animation: none !important;
  }

  .onepage__shine {
    opacity: 0.25;
  }

  .onepage__sparkle {
    opacity: 0.58;
    mix-blend-mode: normal;
    filter: none;
    transform: scale(1);
  }

  .onepage__bokeh::before {
    opacity: 0.3;
  }

  .onepage__intro::before,
  .onepage__intro::after {
    animation: none;
    opacity: 0.65;
  }

  .onepage__title {
    animation: none;
  }

  .onepage__intro-card {
    animation: op-in 0.65s ease both;
    animation-delay: 0.08s;
  }

  .onepage__intro-card::before {
    animation: none;
    opacity: 0.25;
  }

  .onepage__tile::before {
    transition: none;
    transform: translateX(-120%) skewX(-12deg);
  }

  .onepage__tiles::before {
    animation: none;
    opacity: 0.55;
    transform: none;
  }
}

.onepage__screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.22);
}

.onepage__intro {
  flex: 0 0 auto;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(0.5rem, 2vh, 1.25rem);
  animation: op-in 0.7s ease both;
  position: relative;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.onepage__intro::before,
.onepage__intro::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(2rem, 8vw, 3.5rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 92, 62, 0.55),
    rgba(155, 140, 184, 0.45),
    transparent
  );
  opacity: 0.85;
  transform: translateY(-50%);
  animation: onepage-line-glow 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.onepage__intro::before {
  left: 0;
}

.onepage__intro::after {
  right: 0;
  transform: translateY(-50%) scaleX(-1);
}

@keyframes onepage-line-glow {
  from {
    opacity: 0.45;
    filter: blur(0);
  }
  to {
    opacity: 1;
    filter: blur(0.5px);
  }
}

.onepage__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 600;
  color: #4a3028;
  margin: 0 0 0.35rem;
  line-height: 1.15;
  text-wrap: balance;
  filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.65));
  position: relative;
  display: inline-block;
  max-width: 100%;
  animation: onepage-title-glow 8s ease-in-out infinite alternate;
}

@keyframes onepage-title-glow {
  from {
    filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.65))
      drop-shadow(0 0 22px rgba(196, 92, 62, 0.12));
  }
  to {
    filter: drop-shadow(0 2px 14px rgba(255, 255, 255, 0.75))
      drop-shadow(0 0 36px rgba(155, 140, 184, 0.18));
  }
}

.onepage__lead {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--muted);
  line-height: 1.45;
  text-wrap: balance;
}

.onepage__intro-card {
  max-width: min(46rem, 94vw);
  margin: 0 auto clamp(1rem, 3vh, 1.75rem);
  padding: clamp(1.1rem, 2.8vw, 1.5rem) clamp(1.25rem, 4vw, 1.9rem);
  border-radius: clamp(20px, 3.5vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(
    152deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(255, 255, 255, 0.09) 42%,
    rgba(45, 36, 32, 0.1) 100%
  );
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.04),
    0 20px 56px rgba(61, 47, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: clamp(0.9rem, 2.1vw, 1.05rem);
  line-height: 1.65;
  letter-spacing: 0.012em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
  animation: op-in 0.65s ease both, onepage-card-float 10s ease-in-out infinite;
  animation-delay: 0.08s, 0.5s;
  position: relative;
  overflow: hidden;
}

.onepage__intro-card::before {
  content: "";
  position: absolute;
  inset: -35% -25%;
  background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.22) 0%, transparent 45%);
  opacity: 0.22;
  pointer-events: none;
  animation: onepage-card-sheen 16s ease-in-out infinite;
}

@keyframes onepage-card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes onepage-card-sheen {
  0%,
  100% {
    transform: translate(-8%, -8%) rotate(0deg);
  }
  50% {
    transform: translate(6%, 10%) rotate(8deg);
  }
}

.onepage__intro-card p {
  margin: 0;
}

.onepage__intro-card > * {
  position: relative;
  z-index: 1;
}

.onepage__tiles {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.85rem, 2.4vw, 1.25rem);
  align-content: center;
  min-height: 0;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 0;
}

.onepage__tiles::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: clamp(24px, 5vw, 36px);
  background:
    radial-gradient(ellipse 82% 72% at 50% 50%, rgba(255, 255, 255, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 48% 42% at 12% 88%, rgba(196, 92, 62, 0.07), transparent 55%),
    radial-gradient(ellipse 44% 38% at 90% 78%, rgba(155, 140, 184, 0.06), transparent 52%);
  opacity: 0.62;
  pointer-events: none;
  animation: onepage-tiles-halo 18s ease-in-out infinite alternate;
}

@keyframes onepage-tiles-halo {
  from {
    opacity: 0.48;
    transform: scale(0.995);
  }
  to {
    opacity: 0.72;
    transform: scale(1.008);
  }
}

@media (min-width: 700px) {
  .onepage__tiles {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
  }
}

.onepage__tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: clamp(18px, 3vw, 24px);
  /* Olvasási zóna: enyhe egész-lap sötétítés + erősebb alsó sáv a szöveg mögött */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, transparent 36%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(to top, rgba(10, 8, 7, 0.62) 0%, rgba(10, 8, 7, 0.2) 40%, transparent 64%),
    linear-gradient(
      158deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.09) 48%,
      rgba(26, 20, 18, 0.12) 100%
    );
  backdrop-filter: blur(22px) saturate(1.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.05),
    0 14px 40px rgba(61, 47, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  animation: op-in 0.6s ease both;
  min-height: 0;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.onepage__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent 36%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.45) 52%,
    transparent 64%
  );
  transform: translateX(-120%) skewX(-12deg);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  opacity: 0.85;
}

.onepage__tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55),
    rgba(196, 92, 62, 0.16),
    rgba(155, 140, 184, 0.2),
    rgba(255, 255, 255, 0.38)
  );
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  pointer-events: none;
  opacity: 0.38;
  transition: opacity 0.35s ease;
}

.onepage__tile:nth-child(1) {
  animation-delay: 0.05s;
}
.onepage__tile:nth-child(2) {
  animation-delay: 0.1s;
}
.onepage__tile:nth-child(3) {
  animation-delay: 0.15s;
}
.onepage__tile:nth-child(4) {
  animation-delay: 0.2s;
}

.onepage__tile:hover {
  transform: translateY(-4px) perspective(800px) rotateX(1.5deg);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 34%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(to top, rgba(10, 8, 7, 0.5) 0%, rgba(10, 8, 7, 0.12) 40%, transparent 64%),
    linear-gradient(
      158deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.12) 48%,
      rgba(32, 26, 24, 0.06) 100%
    );
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.06),
    0 22px 52px rgba(61, 47, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.48);
}

.onepage__tile:hover::before {
  transform: translateX(120%) skewX(-12deg);
}

.onepage__tile:hover::after {
  opacity: 0.62;
}

.onepage__tile:active {
  transform: translateY(-2px) perspective(720px) rotateX(0.5deg) scale(0.99);
}

.onepage__tile > * {
  position: relative;
  z-index: 1;
}

.onepage__tile--empty {
  visibility: hidden;
  pointer-events: none;
}

.onepage__tile--empty::before,
.onepage__tile--empty::after {
  display: none;
}

.onepage__tile-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.08rem, 2.5vw, 1.32rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff8f5;
  margin-bottom: 0.4rem;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.75),
    0 1px 3px rgba(0, 0, 0, 0.55),
    0 0 12px rgba(0, 0, 0, 0.35);
}

.onepage__tile-short {
  font-size: clamp(0.82rem, 1.85vw, 0.95rem);
  color: rgba(255, 250, 246, 0.94);
  line-height: 1.45;
  letter-spacing: 0.01em;
  flex: 1;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.7),
    0 1px 4px rgba(0, 0, 0, 0.5);
}

.onepage__tile-more {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd4c4;
  opacity: 1;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.65),
    0 1px 4px rgba(0, 0, 0, 0.45);
}

.onepage__foot {
  flex: 0 0 auto;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 1rem;
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(196, 92, 62, 0.38),
    rgba(155, 140, 184, 0.35),
    transparent
  );
  background-size: min(22rem, 72vw) 2px;
  background-position: center 0;
  background-repeat: no-repeat;
}

.onepage__admin {
  color: var(--lavender);
  font-size: 0.78rem;
}

@keyframes op-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modál */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  isolation: isolate;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(61, 47, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__box {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  max-height: min(88vh, 640px);
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--cream-dark);
  pointer-events: auto;
}

.modal__box--wide {
  width: min(100%, 720px);
  max-width: min(96vw, 720px);
  max-height: min(92vh, 900px);
}

.modal__x {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  border-radius: 8px;
}

.modal__x:hover {
  background: var(--cream-dark);
  color: var(--ink);
}

.modal__box h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0 0 0.75rem;
  padding-right: 2rem;
  color: var(--terracotta-dark);
}

.modal__body {
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.modal__book {
  width: 100%;
}

.modal__hint {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Naptár */
.cal {
  margin-bottom: 1rem;
}

.cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.cal__label {
  font-weight: 600;
  color: var(--terracotta-dark);
}

.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal__cell {
  aspect-ratio: 1;
  max-height: 3rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}

.cal__cell--pad {
  border: none;
  background: transparent;
  pointer-events: none;
}

.cal__cell--past,
.cal__cell--emptyday {
  opacity: 0.35;
  cursor: default;
}

.cal__cell--has {
  background: linear-gradient(145deg, #fff8f5, #fde8e0);
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

.cal__cell--has:hover {
  filter: brightness(1.03);
}

.cal__cell--sel {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
}

.book-step__h {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--terracotta-dark);
}

.book-step {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.time-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.time-btns__btn {
  font-size: 0.92rem !important;
  position: relative;
  z-index: 4;
  pointer-events: auto !important;
  cursor: pointer !important;
  min-height: 2.85rem;
  padding: 0.55rem 1rem !important;
}

.time-btns__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.time-btns__btn.time-btns__btn--selected {
  background: var(--white);
  color: var(--terracotta-dark);
  border: 2px solid var(--terracotta-dark);
  box-shadow:
    0 0 0 3px rgba(196, 92, 62, 0.28),
    0 6px 16px rgba(92, 61, 74, 0.14);
  font-weight: 700;
  transform: translateY(0);
  filter: none;
}

.time-btns__btn.time-btns__btn--selected:hover {
  background: var(--cream);
  color: var(--terracotta-dark);
  filter: none;
  transform: translateY(-1px);
}

.book-slot-summary {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--terracotta);
  color: var(--terracotta-dark);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 2px 10px rgba(92, 61, 74, 0.08);
}

.book-form {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  max-width: none;
}

.book-form .form-grid {
  max-width: none;
}
