@font-face {
  font-family: Modam;
  src: url("/assets/fonts/ModamWeb-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Modam;
  src: url("/assets/fonts/ModamWeb-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Modam;
  src: url("/assets/fonts/ModamWeb-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Modam, Tahoma, sans-serif;
  color: #27202b;
  background: #f7f3f6;
  --muted: #655a68;
  --line: #e5dce6;
  --accent: #8b2852;
  --tint: #faeef4;
  --shadow: 0 10px 30px rgb(54 23 46 / 7%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.65; }

.campaign {
  width: min(1100px, calc(100% - 48px));
  margin: 30px auto 60px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 265px;
  overflow: hidden;
  border-radius: 27px;
  padding: clamp(22px, 5vw, 48px);
  background: linear-gradient(108deg, #4f1931, #231524 66%, #1c1420);
  color: #fff8fa;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 47%;
  z-index: -1;
  background: url("/assets/black-friday-offers-hero-20261125.webp") left 15% / auto 155% no-repeat;
  mask-image: linear-gradient(to right, #000 57%, transparent 100%);
}

.hero-content { max-width: 60%; }
.hero h1 {
  margin: 9px 0 14px;
  color: #fff9fb;
  font-size: clamp(32px, 5vw, 59px);
  font-weight: 900;
  line-height: 1.13;
}

.member-link {
  display: inline-block;
  min-height: 34px;
  padding: 3px 0;
  color: #ffc2d4;
  font-weight: 700;
  text-underline-offset: 5px;
}

#campaignTime {
  width: fit-content;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgb(255 197 215 / 35%);
  border-radius: 10px;
  background: rgb(38 18 36 / 82%);
  color: #fff1f6;
  font-size: .88rem;
}

#message { margin: 0; }
#message:not(:empty), #login {
  display: block;
  width: fit-content;
  margin-top: 16px;
  padding: 10px 15px;
  border: 1px solid #e9cbd8;
  border-radius: 12px;
  background: #fff2f6;
  color: #742347;
}
#login { font-weight: 700; text-underline-offset: 4px; }

.branch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px 20px;
  margin: 20px 0 18px;
  padding: 12px 20px;
  border: 1px solid #ead8e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.branch span { color: #51263f; font-size: 1rem; }
.branch select {
  flex: 0 1 300px;
  border-color: #dfb7ce;
  background: #fdf4f9;
  color: #51263f;
  font-weight: 700;
}

.offers {
  display: grid;
  grid-template: "classes massage" auto "classes fitness" 1fr / minmax(0, 1.14fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  min-width: 0;
  padding: clamp(16px, 2.4vw, 25px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.offer-panel { border-block-start: 4px solid var(--accent); }
.classes-panel { grid-area: classes; }
.massage-panel {
  --accent: #653b99;
  --tint: #f4edfb;
  grid-area: massage;
}
.fitness-panel {
  --accent: #136553;
  --tint: #eaf7f2;
  grid-area: fitness;
}

.panel h2 {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.4;
}

.panel > p { margin: 0 0 13px; color: var(--muted); }
.panel > .price {
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 7px;
  padding: 5px 12px;
  border-radius: 11px;
  background: var(--tint);
  color: var(--accent);
}
.price strong { font-size: clamp(21px, 2.5vw, 30px); font-weight: 900; }

.rates {
  overflow: hidden;
  margin-bottom: 17px;
  border: 1px solid #efdae7;
  border-radius: 12px;
}

.rates table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.rates th, .rates td { padding: 8px 10px; }
.rates th { text-align: start; }
.rates thead { background: var(--tint); color: #672241; }
.rates thead th:not(:first-child), .rates td {
  text-align: center;
  white-space: nowrap;
}
.rates tbody tr + tr { border-block-start: 1px solid #f1e6ee; }
.rates tbody th { color: #4d414e; font-weight: 400; }
.rates td { color: var(--accent); font-weight: 900; }

form, label { display: grid; }
form { gap: 12px; }
label { gap: 4px; font-size: .88rem; font-weight: 700; }

#classes {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  column-gap: 10px;
}
#programField, #classNote, #classes > button { grid-column: 1 / -1; }

select, button {
  min-width: 0;
  min-height: 45px;
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
}

select {
  width: 100%;
  border: 1px solid #dcd2de;
  background: #fff;
  color: #332835;
  font-size: .88rem;
  font-weight: 400;
}

button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
button:hover:enabled { filter: brightness(.9); }
button:disabled { opacity: .62; cursor: wait; }
:is(a, button, select):focus-visible {
  outline: 3px solid #234b86;
  outline-offset: 3px;
}
.hero a:focus-visible { outline-color: #ffd4e2; }

#classNote, #purchasedPeriodNote {
  margin: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--tint);
  color: #542a43;
  font-size: .84rem;
}
#classNote:empty, #purchasedPeriodNote:empty, #fitnessNote:empty, #checkoutDates:empty {
  display: none;
}

#fitnessNote:not(:empty) {
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--tint);
  color: #28564a;
  font-size: .86rem;
}

.fitness-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 9px;
}
.fitness-offers article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tint);
}
.fitness-offers h3, .fitness-offers p { margin: 0; font-size: .86rem; }
.fitness-offers h3 { color: var(--accent); }
.fitness-offers article button {
  width: 100%;
  margin-top: auto;
  padding-inline: 7px;
  font-size: .84rem;
}

.checkout { margin-top: 18px; }
.checkout dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 13px;
  border-radius: 11px;
  background: var(--tint);
}
.checkout dd { margin: 0; color: var(--accent); font-weight: 700; }
.checkout form:not(:first-child) { margin-top: 12px; }
.checkout form h3 { margin: 0; }

@media (max-width: 760px) {
  .campaign { width: calc(100% - 32px); margin-top: 16px; }
  .offers { grid-template: "classes" "massage" "fitness" / minmax(0, 1fr); gap: 13px; }
  .hero { min-height: 210px; border-radius: 21px; }
  .hero-content { max-width: 74%; }
  .hero::before { width: 43%; opacity: .8; background-position: 27% 4%; background-size: auto 130%; }
}

@media (max-width: 420px) {
  .campaign { width: calc(100% - 24px); }
  .hero { padding: 20px 16px; }
  .hero-content { max-width: 88%; }
  .hero::before { opacity: .56; }
  .hero h1 { font-size: 31px; }
  #campaignTime { font-size: .76rem; }
  .branch { padding: 10px 13px; }
  .branch select { flex: 1 1 100%; }
  #classes { grid-template-columns: minmax(0, 1fr); }
  .rates th, .rates td { padding: 7px 6px; }
}
