:root {
  --accent: #f0c860;
  --gold: #d4a028;
  --cream: #f6efe3;
  --charcoal: #121215;
  --space: 1rem;
  --max-width: 64rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  height: 100%;
  overflow: hidden;
  background: var(--charcoal);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100dvh;
  overflow: hidden;
  color: var(--cream);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.2;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html::before,
html::after,
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  will-change: transform;
}

html::before,
html::after {
  top: -35%;
  right: -35%;
  bottom: -35%;
  left: -35%;
}

body::before,
body::after {
  top: -20%;
  right: -20%;
  bottom: -20%;
  left: -20%;
}

html::before {
  z-index: -4;
  background:
    radial-gradient(60% 13% at 50% 30%, rgba(212, 160, 40, .5), rgba(212, 160, 40, 0)),
    radial-gradient(55% 10% at 46% 52%, rgba(255, 210, 100, .36), rgba(255, 210, 100, 0)),
    radial-gradient(62% 14% at 54% 70%, rgba(184, 134, 11, .52), rgba(184, 134, 11, 0));
  animation: sweep 38s linear infinite;
}

html::after {
  z-index: -3;
  background:
    radial-gradient(58% 12% at 48% 24%, rgba(255, 215, 120, .32), rgba(255, 215, 120, 0)),
    radial-gradient(52% 12% at 52% 78%, rgba(212, 160, 40, .38), rgba(212, 160, 40, 0));
  animation: sweep 55s linear infinite reverse;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(32% 28% at 82% 22%, rgba(230, 180, 60, .32), rgba(230, 180, 60, 0)),
    radial-gradient(34% 30% at 16% 78%, rgba(200, 150, 30, .3), rgba(200, 150, 30, 0));
  animation: drift 16s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(40% 34% at 30% 30%, rgba(18, 18, 21, .78), rgba(18, 18, 21, 0)),
    radial-gradient(44% 38% at 72% 62%, rgba(18, 18, 21, .8), rgba(18, 18, 21, 0)),
    radial-gradient(36% 30% at 50% 90%, rgba(18, 18, 21, .7), rgba(18, 18, 21, 0)),
    radial-gradient(ellipse at 50% 50%, rgba(18, 18, 21, .25), rgba(18, 18, 21, .55));
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes sweep {
  from { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.15); }
  to   { transform: rotate(360deg) scale(1); }
}

@keyframes drift {
  from { transform: translate3d(-8%, -6%, 0) scale(1); }
  50%  { transform: translate3d(9%, 7%, 0) scale(1.15); }
  to   { transform: translate3d(-3%, 7%, 0) scale(1.04); }
}

.mainheader {
  padding: .6rem var(--space);
  text-align: center;
  background: rgba(18, 18, 21, .72);
  border-bottom: 1px solid rgba(212, 160, 40, .4);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.mainheader h1 {
  color: var(--accent);
  font-size: clamp(1.1rem, 3vh, 1.9rem);
  line-height: 1.15;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: .7rem var(--space) .8rem;
}

.container h1 {
  margin-bottom: .6rem;
  font-size: clamp(1.1rem, 3vh, 1.8rem);
  text-align: center;
}

.columns-wrapper {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: .9rem;
  min-height: 0;
}

.left-side,
.right-side {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: .7rem;
}

.schedule-title,
.schedule-title2 {
  display: flex;
  min-height: 0;
}

.card-link {
  display: flex;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.service-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .5rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(212, 160, 40, .35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 233, 180, .1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.service-item:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 200, 96, .8);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5), 0 0 28px rgba(212, 160, 40, .2);
}

.card-link:focus-visible {
  outline: none;
}

.card-link:focus-visible .service-item {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 200, 96, .35);
}

.service-item h2 {
  margin-bottom: .15rem;
  font-size: clamp(.9rem, 2.6vh, 1.35rem);
  line-height: 1.15;
}

.details1,
.details2 {
  color: var(--accent);
}

.details1 h3,
.details2 h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(.72rem, 1.9vh, .95rem);
  font-weight: 500;
  letter-spacing: .02em;
}

.site-footer {
  padding: .6rem var(--space);
  text-align: center;
  font-size: .8rem;
  color: var(--gold);
  background: rgba(18, 18, 21, .6);
  border-top: 1px solid rgba(212, 160, 40, .4);
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: var(--space);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.modal:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(10, 10, 12, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: default;
}

.modal-card {
  position: relative;
  width: min(100%, 34rem);
  max-height: 80dvh;
  overflow-y: auto;
  padding: 2rem 2rem 1.75rem;
  border-radius: 22px;
  background: rgba(24, 20, 18, .88);
  border: 1px solid rgba(240, 200, 96, .55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(212, 160, 40, .15), inset 0 1px 0 rgba(255, 233, 180, .15);
  transform: translateY(14px) scale(.97);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.modal:target .modal-card {
  transform: none;
}

.modal-time {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: rgba(212, 160, 40, .16);
  border: 1px solid rgba(212, 160, 40, .4);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .03em;
}

.modal-card h2 {
  margin: .8rem 0 .6rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.1;
}

.modal-card p {
  margin-bottom: 1.4rem;
  color: rgba(246, 239, 227, .85);
  font-size: .95rem;
  line-height: 1.7;
}

.modal-more {
  display: inline-block;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0c860, #c99522);
  color: #1a1203;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(212, 160, 40, .28);
}

.modal-close {
  position: absolute;
  top: .8rem;
  right: .9rem;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
  transition: background .2s ease;
}

.modal-close:hover {
  background: rgba(212, 160, 40, .18);
}

@media (max-width: 700px) {
  html::before { animation-duration: 60s; }
  html::after  { animation-duration: 85s; }
  body::before { animation-duration: 24s; }
  body::after  { animation-duration: 32s; }
}

@media (max-height: 520px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .left-side,
  .right-side {
    grid-template-rows: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html::before,
  html::after,
  body::before,
  body::after {
    animation: none;
  }

  .service-item,
  .modal,
  .modal-card {
    transition: none;
  }
}
.center-bottom {
  width: calc(50% - 0.45rem);
  margin: 0.7rem auto 1.5rem;
  flex: 0.2;
}