:root {
  --lime: #add500;
  --lime-2: #c6f000;
  --ink: #080908;
  --charcoal: #111311;
  --panel: #181a17;
  --paper: #f8f9f2;
  --soft: #e8eddf;
  --line: rgba(17, 19, 17, 0.14);
  --muted: #111311;
  --white: #fff;
  --radius: 8px;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-display: "Teko", Impact, sans-serif;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(238, 243, 229, 0.9), rgba(238, 243, 229, 0.9)),
    radial-gradient(circle at 20% 20%, rgba(173, 213, 0, 0.18), transparent 22rem),
    #eef3e5;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid var(--lime);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(8, 9, 8, 0.08);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 142px;
}

.brand-link img {
  width: 154px;
  max-height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.nav-links a,
.nav-links .branch-main-link,
.mobile-nav a {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links .branch-main-link:hover,
.mobile-nav a:hover {
  color: #6f8d00;
}

.branch-dropdown {
  position: relative;
}

.branch-main-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.branch-main-link::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.branch-dropdown:hover .branch-main-link::after,
.branch-dropdown:focus-within .branch-main-link::after,
.branch-dropdown.is-open .branch-main-link::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.branch-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 190px;
  padding: 12px;
  border: 1px solid rgba(17, 19, 17, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(8, 9, 8, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.branch-dropdown:hover .branch-menu,
.branch-dropdown:focus-within .branch-menu,
.branch-dropdown.is-open .branch-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.branch-menu::before {
  content: "";
  position: absolute;
  inset: -18px 0 auto;
  height: 18px;
}

.branch-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 1.12rem;
  white-space: nowrap;
}

.branch-menu a:hover {
  background: rgba(173, 213, 0, 0.16);
}

.mobile-nav-label {
  margin-top: 4px;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 19, 17, 0.18);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 76px 0 auto;
  z-index: 49;
  padding: 16px 22px 22px;
  background: #000;
  border-bottom: 2px solid var(--lime);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.mobile-nav a {
  color: var(--white);
}

.branch-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px clamp(18px, 4vw, 64px);
  overflow-x: auto;
  background: #0b0c0b;
  border-top: 1px solid rgba(173, 213, 0, 0.25);
  border-bottom: 1px solid rgba(173, 213, 0, 0.18);
  scrollbar-width: none;
}

.branch-page {
  --branch-subnav-height: 52px;
}

.branch-page .branch-subnav {
  position: fixed;
  inset: 76px 0 auto;
  z-index: 48;
  min-height: var(--branch-subnav-height);
  backdrop-filter: blur(16px);
}

.branch-page .mobile-nav {
  inset: calc(76px + var(--branch-subnav-height)) 0 auto;
}

.branch-page .page-hero {
  padding-top: calc(104px + var(--branch-subnav-height));
}

.branch-subnav::-webkit-scrollbar {
  display: none;
}

.branch-subnav span,
.branch-subnav a {
  white-space: nowrap;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.branch-subnav span {
  margin-right: 12px;
  color: var(--lime);
  font-size: 1.24rem;
}

.branch-subnav a {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #dce3d2;
  font-size: 1rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.branch-subnav a:hover {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 24px;
  border: 2px solid var(--lime);
  border-radius: 4px;
  background: var(--lime);
  color: #10120e;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(173, 213, 0, 0.25);
}

.btn-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.btn-outline {
  background: transparent;
  color: var(--lime);
}

.btn-light-outline {
  border-color: rgba(255, 255, 255, 0.86);
  background: transparent;
  color: var(--white);
}

.btn-outline-dark {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.nav-links a.btn {
  min-height: 44px;
  padding: 9px 24px;
  border: 2px solid var(--lime);
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-links a.btn:hover {
  background: var(--lime);
  color: var(--ink) !important;
  box-shadow: 0 12px 24px rgba(173, 213, 0, 0.25);
}

.hero {
  position: relative;
  min-height: clamp(560px, 72vh, 680px);
  display: grid;
  place-items: center;
  padding: 104px 20px 56px;
  overflow: hidden;
  background: #050505;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.68)),
    var(--hero-image, url("../images/branches/vastrapur-strength.webp")) center / cover;
  transform: scale(1.02);
}

.hero-slideshow::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.58));
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1200ms ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  text-align: center;
  color: var(--white);
}

.hero-logo {
  width: min(360px, 70vw);
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 26px rgba(173, 213, 0, 0.44));
}

.event-logo {
  width: min(280px, 70vw);
  margin: 0 0 24px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.42));
}

.section-event-logo {
  width: min(240px, 64vw);
  margin: 0 auto 22px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}

.event-section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  width: min(1040px, 100%);
  margin: 0 auto 34px;
}

.event-section-heading img {
  width: clamp(86px, 12vw, 150px);
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.16));
}

.event-section-heading .section-title {
  margin: 0;
  text-align: left;
}

.legacy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 26px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(173, 213, 0, 0.08);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
.display {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 16px;
  color: var(--lime);
  font-size: clamp(2.8rem, 5.2vw, 4.9rem);
  font-weight: 400;
}

.hero-subtitle {
  margin: 10px auto 0;
  color: #f4f4f4;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-proof {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px auto 0;
  color: #d8ddd0;
}

.proof-item strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.hero-actions,
.section-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-actions {
  margin-top: 24px;
}

.section {
  padding: clamp(76px, 9vw, 126px) clamp(18px, 5vw, 72px);
}

.section-dark {
  background: var(--soft);
  color: var(--ink);
}

.section-soft {
  background: var(--soft);
}

.section-lime {
  background: var(--lime);
  color: var(--ink);
}

.section-title {
  margin: 0 auto 54px;
  max-width: 980px;
  text-align: center;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
}

.section-title span {
  display: inline-block;
  padding: 0 12px;
  background: var(--lime);
  color: var(--ink);
  transform: skew(-5deg);
}

.section-lime .section-title span {
  background: var(--ink);
  color: var(--lime);
}

.legal-section {
  background: var(--soft);
}

.legal-copy {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  background: var(--white);
  border: 1px solid rgba(16, 19, 16, 0.09);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 19, 16, 0.08);
}

.legal-copy h2 {
  margin: 34px 0 10px;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 0.95;
}

.legal-copy h2:first-of-type {
  margin-top: 22px;
}

.legal-copy p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.75;
}

.legal-copy ul {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--ink);
}

.legal-copy li {
  margin-bottom: 10px;
  line-height: 1.68;
}

.section-kicker {
  max-width: 780px;
  margin: -32px auto 54px;
  color: var(--muted);
  text-align: center;
  font-size: 1.08rem;
}

.section-dark .section-kicker {
  color: var(--ink);
}

.branch-overview-grid,
.cards-grid,
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.branch-card,
.class-card,
.plan-card,
.contact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.branch-card img,
.class-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.card-body h3,
.plan-card h3,
.contact-card h3 {
  color: var(--ink);
  font-size: 2.35rem;
}

.plan-card h3 {
  min-height: 2.45rem;
  display: flex;
  align-items: center;
  max-width: 100%;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 0.95;
  white-space: nowrap;
}

.card-body p,
.plan-card p,
.contact-card p {
  color: var(--muted);
}

.section-lime .cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.section-lime .class-card {
  min-width: 0;
}

.contact-card .btn + .btn {
  margin-top: 10px;
}

.content-grid,
.event-grid,
.branch-update-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.leaderboard-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.repathlon-event-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(940px, 100%);
}

.repathlon-leaderboard-block {
  width: min(1240px, 100%);
  margin: 42px auto 0;
}

.repathlon-leaderboard-block > h3 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-align: center;
}

.leaderboard-image-card {
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.leaderboard-image-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
  background: transparent;
}

.leaderboard-image-card div {
  padding: 18px 2px 0;
}

.leaderboard-image-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-image-card h3 {
  color: var(--ink);
  font-size: 2rem;
}

.leaderboard-image-card p {
  margin-top: 6px;
  color: var(--muted);
}

.event-feature-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.event-feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(8, 9, 8, 0.14);
}

.event-feature-card-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
}

.school-tour-media {
  display: grid;
  gap: 16px;
}

.school-tour-media img,
.school-tour-media video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(8, 9, 8, 0.14);
}

.school-tour-media video {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  object-fit: cover;
}

.school-tour-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.school-tour-video-card {
  min-width: 0;
  margin: 0;
}

.school-tour-video-card video {
  box-shadow: 0 14px 30px rgba(8, 9, 8, 0.12);
}

.school-tour-video-card figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.35;
}

.event-feature-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-feature-card h2 {
  color: var(--ink);
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.9;
}

.event-feature-card p {
  color: var(--muted);
}

.content-card,
.branch-update-card,
.event-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.content-card,
.event-board {
  padding: 28px;
}

.content-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-card h3,
.branch-update-card h3,
.event-board h3 {
  color: var(--ink);
  font-size: 2.25rem;
}

.content-card p,
.branch-update-card p,
.event-board p,
.content-card small {
  color: var(--muted);
}

.content-card small {
  display: block;
  margin-top: 14px;
  font-size: 0.95rem;
}

.branch-update-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.branch-update-card div {
  padding: 24px;
}

.editor-note {
  width: min(980px, 100%);
  margin: 34px auto 0;
  padding: 24px;
  border-left: 8px solid var(--lime);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.editor-note h3 {
  color: var(--lime);
  font-size: 2rem;
}

.editor-note p {
  color: #dce3d2;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(8, 9, 8, 0.12);
  text-align: left;
}

.leaderboard-table th {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leaderboard-table td:first-child {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}

.aerobics-schedule-card {
  width: min(960px, 100%);
  margin: 34px auto 0;
  padding: clamp(22px, 3vw, 30px);
  border-left: 8px solid var(--lime);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.aerobics-schedule-card h3 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.aerobics-schedule-card p {
  color: var(--muted);
}

.schedule-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

.schedule-table th,
.schedule-table td {
  padding: 14px 12px;
  border: 1px solid rgba(8, 9, 8, 0.12);
  text-align: left;
}

.schedule-table th {
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-table td {
  background: #f9faf5;
  color: var(--ink);
  font-weight: 800;
}

.mini-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.mini-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  background: var(--lime);
  transform: skew(-12deg);
}

.local-seo-grid,
.faq-grid,
.local-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.seo-panel,
.faq-item,
.local-link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 28px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.seo-panel h3,
.faq-item h3,
.local-link-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 2rem;
}

.seo-panel p,
.faq-item p,
.local-link-card p {
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.reviews-grid-branch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(900px, 100%);
}

.review-card {
  display: grid;
  align-content: space-between;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(8, 9, 8, 0.08);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.review-card-top span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-card-top strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.86rem;
}

.review-card blockquote {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 600;
  line-height: 0.96;
}

.review-card p {
  margin: 24px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.nap-block {
  display: grid;
  gap: 10px;
  width: min(900px, 100%);
  margin: 34px auto 0;
  border-left: 8px solid var(--lime);
  background: var(--ink);
  color: var(--white);
  padding: 26px;
}

.nap-block h3 {
  color: var(--white);
  font-size: 2.15rem;
}

.nap-block p,
.nap-block a {
  color: #dfe6d8;
}

.branch-finder {
  padding-top: clamp(54px, 6vw, 82px);
  padding-bottom: clamp(56px, 6vw, 86px);
  border-bottom: 4px solid var(--lime);
  background:
    linear-gradient(180deg, var(--soft), rgba(248, 249, 242, 0.96));
}

.branch-finder .section-title {
  margin-bottom: 34px;
}

.branch-finder .section-kicker {
  margin-bottom: 34px;
}

.branch-choice-grid {
  width: min(1120px, 100%);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.branch-choice {
  position: relative;
  min-height: 228px;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 17, 0.12);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(8, 9, 8, 0.08);
}

.branch-choice::before {
  content: "Selected";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.branch-choice::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 132px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(8, 9, 8, 0.18));
}

.branch-choice img {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 132px;
  object-fit: cover;
  opacity: 0.98;
  transition: transform 220ms ease, opacity 220ms ease;
}

.branch-choice span,
.branch-choice small {
  position: relative;
  z-index: 1;
  display: block;
  padding-inline: 18px;
}

.branch-choice span {
  margin-top: 152px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.branch-choice small {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 700;
}

.branch-choice:hover img,
.branch-choice.is-active img {
  transform: scale(1.05);
  opacity: 1;
}

.branch-choice.is-active {
  border-color: var(--lime);
  background: linear-gradient(180deg, var(--paper), rgba(173, 213, 0, 0.12));
  box-shadow: 0 18px 38px rgba(8, 9, 8, 0.14), 0 0 0 4px rgba(173, 213, 0, 0.2);
}

.branch-choice.is-active::before {
  opacity: 1;
  transform: translateY(0);
}

.branch-detail-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(173, 213, 0, 0.64);
  background:
    linear-gradient(115deg, rgba(173, 213, 0, 0.2), rgba(255, 255, 255, 0.36) 46%, rgba(173, 213, 0, 0.12)),
    var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 58px rgba(8, 9, 8, 0.12);
}

.branch-detail-copy {
  padding: clamp(22px, 3.4vw, 38px);
  display: grid;
  align-content: center;
}

.branch-step {
  margin: 0 0 12px;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.branch-detail-card .branch-step {
  display: inline-flex;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
}

.branch-detail-copy h3 {
  color: var(--ink);
  font-size: clamp(3.6rem, 7vw, 6rem);
}

.branch-detail-copy p {
  color: var(--ink);
}

.branch-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 0;
}

.branch-info-grid div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(17, 19, 17, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 18px rgba(8, 9, 8, 0.05);
}

.branch-info-grid strong {
  display: block;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.branch-info-grid span,
.branch-info-grid a {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  text-decoration: none;
}

.branch-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2px;
}

.branch-detail-actions .btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}

.branch-detail-media {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  min-height: 0;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.24);
}

.branch-main-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(8, 9, 8, 0.12);
}

.branch-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0;
}

.branch-photo-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  object-fit: cover;
}

.branch-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 92vh;
  border-top: 4px solid var(--lime);
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.76)),
    var(--branch-bg) center / cover fixed;
  color: var(--white);
}

.branch-panel {
  align-self: center;
  margin: 78px clamp(18px, 5vw, 70px);
  padding: clamp(30px, 5vw, 54px);
  border-left: 8px solid var(--lime);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.branch-panel h2 {
  color: var(--white);
  font-size: clamp(3.5rem, 7vw, 6rem);
}

.branch-address {
  margin: 24px 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8ecdf;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.branch-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.branch-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.branch-meta strong {
  display: block;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  text-transform: uppercase;
}

.branch-media {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 80px clamp(18px, 5vw, 70px) 80px 0;
}

.media-feature {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

.media-feature img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.caption {
  position: absolute;
  inset: auto 0 0;
  padding: 16px 20px;
  border-top: 2px solid var(--lime);
  background: rgba(0, 0, 0, 0.86);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.thumb-row img {
  width: 100%;
  height: 154px;
  border-radius: var(--radius);
  object-fit: cover;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.plan-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card .price {
  min-height: 5.4rem;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  column-gap: 8px;
}

.plan-card p {
  min-height: 3.3rem;
}

.plan-card .mini-list {
  margin-top: 8px;
}

.plan-card.featured {
  border: 2px solid var(--lime);
  background: linear-gradient(180deg, rgba(173, 213, 0, 0.16), var(--paper) 44%);
  box-shadow: 0 18px 42px rgba(8, 9, 8, 0.12), 0 0 0 4px rgba(173, 213, 0, 0.12);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.14);
}

.pricing-durations {
  width: min(1120px, 100%);
  margin: 34px auto 0;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius);
  border: 1px solid rgba(173, 213, 0, 0.5);
  background: linear-gradient(135deg, rgba(173, 213, 0, 0.22), var(--paper));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.pricing-durations h3 {
  color: var(--ink);
  font-size: 3rem;
}

.pricing-durations p {
  color: var(--ink);
}

.duration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.duration-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.52);
}

.duration-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
}

.duration-grid span {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.service-assurance {
  width: min(1120px, 100%);
  margin: 38px auto 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

.assurance-intro {
  width: min(780px, 100%);
  margin-bottom: 26px;
}

.assurance-intro h2 {
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.9;
}

.assurance-intro h2 span {
  color: var(--lime);
}

.assurance-intro p {
  color: var(--muted);
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.assurance-card {
  grid-column: span 2;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f9f5;
}

.assurance-card-top {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(173, 213, 0, 0.18), #f8f9f5);
}

.assurance-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.8rem;
}

.assurance-card p {
  color: var(--muted);
}

.assurance-explainers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  padding: clamp(22px, 3vw, 30px);
  border-left: 8px solid var(--lime);
  border-radius: var(--radius);
  background: rgba(173, 213, 0, 0.18);
  color: var(--ink);
}

.assurance-explainers h3 {
  color: var(--lime);
  font-size: 2rem;
}

.assurance-explainers p {
  color: var(--ink);
}

.consultation-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
  margin-top: 20px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius);
  background: #f4f6ee;
}

.consultation-panel h3 {
  color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.9;
}

.consultation-panel p {
  color: var(--muted);
}

.consultation-panel .mini-list {
  margin: 0;
}

.hiit-section {
  background:
    linear-gradient(135deg, rgba(232, 237, 223, 0.96), rgba(248, 249, 242, 0.9)),
    url("../images/branches/science-city-cardio.webp") center / cover;
  color: var(--ink);
}

.hiit-section .copy-block h2,
.hiit-section .copy-block p {
  color: var(--ink);
}

.hiit-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hiit-proof-grid article {
  min-width: 0;
  min-height: 142px;
  padding: 22px;
  border: 1px solid rgba(173, 213, 0, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.hiit-proof-grid strong {
  display: block;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-transform: uppercase;
}

.hiit-proof-grid span {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.hiit-system {
  width: min(1120px, 100%);
  margin: 44px auto 0;
  padding: clamp(24px, 4vw, 38px);
  border-left: 8px solid var(--lime);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.hiit-system h3 {
  color: var(--ink);
  font-size: clamp(2.7rem, 5vw, 4.6rem);
}

.hiit-system p,
.hiit-system .mini-list li {
  color: var(--muted);
}

.assurance-actions {
  justify-content: flex-start;
  margin-top: 22px;
}

.guided-advisor {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.advisor-form {
  display: grid;
  gap: 16px;
}

.advisor-form fieldset,
.advisor-result {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.advisor-form fieldset::after {
  content: "";
  display: block;
  clear: both;
}

.advisor-progress {
  display: grid;
  gap: 10px;
  width: min(760px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.advisor-progress div {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(8, 9, 8, 0.12);
}

.advisor-progress i {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width 220ms ease;
}

.advisor-step {
  display: none;
}

.advisor-step.is-active {
  display: block;
}

.advisor-form .advisor-step,
.advisor-result {
  width: min(820px, 100%);
  margin-inline: auto;
}

.advisor-form legend {
  float: left;
  width: 100%;
  margin: 0 0 16px;
  max-width: 100%;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-transform: uppercase;
}

.advisor-form legend + label {
  clear: both;
}

.advisor-form label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.advisor-form input {
  margin-top: 4px;
  flex: 0 0 auto;
  accent-color: var(--lime);
}

.advisor-form p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.advisor-nav {
  width: min(820px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.advisor-nav [hidden] {
  display: none;
}

.advisor-result {
  background: linear-gradient(135deg, rgba(173, 213, 0, 0.22), var(--paper));
  color: var(--ink);
}

.advisor-result h3 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.advisor-result p {
  color: var(--ink);
}

.advisor-result .price {
  color: var(--ink);
}

.advisor-result .price small {
  color: var(--ink);
}

.advisor-periods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.advisor-periods strong {
  grid-column: 1 / -1;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
  text-transform: uppercase;
}

.advisor-periods span {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(17, 19, 17, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.advisor-periods small {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
}

.advisor-periods em {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.advisor-periods b {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.advisor-result .mini-list li {
  color: var(--ink);
}

.advisor-hiit {
  margin: 18px 0;
  padding: 14px;
  border-left: 5px solid var(--lime);
  background: rgba(173, 213, 0, 0.12);
  color: var(--ink);
  font-weight: 700;
}

.price {
  margin: 12px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 5rem);
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: none;
}

.calculator {
  width: min(1060px, 100%);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  border: 1px solid rgba(173, 213, 0, 0.5);
  background: var(--soft);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.calculator h3 {
  color: var(--ink);
  font-size: 3rem;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

select,
input[type="checkbox"] {
  font: inherit;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}

.check-row {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.calc-result {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
}

.calc-result .price {
  margin: 16px 0 8px;
}

.calc-note {
  margin-top: 0;
  font-weight: 700;
}

.calc-result .btn {
  width: 100%;
  margin-top: auto;
}

.branch-detail-actions .btn,
.advisor-nav .btn,
.section-actions .btn {
  min-width: 168px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 76px);
  width: min(1160px, 100%);
  margin: 0 auto;
  align-items: center;
}

.copy-block h2,
.copy-block h1 {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  overflow-wrap: anywhere;
}

.copy-block p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .copy-block p {
  color: var(--ink);
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 16px;
  align-items: end;
}

.image-stack img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-stack img:first-child {
  aspect-ratio: 4 / 5;
}

.image-stack img:last-child {
  aspect-ratio: 4 / 3;
  margin-bottom: 42px;
}

.founder-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(26px, 5vw, 62px);
  align-items: center;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.founder-card img {
  border: 4px solid var(--lime);
  border-radius: var(--radius);
}

.founder-card .copy-block h2 {
  font-size: clamp(2.35rem, 4vw, 3.75rem);
  line-height: 1;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.founder-actions {
  justify-content: flex-start;
}

.legacy-links {
  margin-top: 34px;
}

.legacy-archive-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 15% 8%, rgba(173, 213, 0, 0.22), transparent 22rem),
    #fff;
}

.legacy-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.legacy-photo-card {
  overflow: hidden;
  border: 1px solid rgba(8, 9, 8, 0.12);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.legacy-photo-card.is-featured {
  grid-column: span 2;
}

.legacy-photo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}

.legacy-photo-card.is-featured img {
  height: 430px;
}

.legacy-photo-card div {
  padding: 22px;
  border-top: 4px solid var(--lime);
}

.legacy-photo-card h3 {
  color: var(--ink);
  font-size: 2rem;
}

.legacy-photo-card p {
  color: var(--muted);
}

.branch-memory-grid {
  display: grid;
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.branch-memory-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.branch-memory-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  border-left: 8px solid var(--lime);
  padding: 18px 0 18px 22px;
}

.branch-memory-copy h3 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.branch-memory-copy p {
  color: var(--muted);
}

.branch-memory-copy .btn {
  width: fit-content;
}

.branch-memory-photos {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.branch-memory-photos img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  border-radius: var(--radius);
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}

.branch-memory-photos img:first-child {
  grid-row: span 2;
}

blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 5px solid var(--lime);
  background: var(--soft);
  color: var(--ink);
  font-size: 1.18rem;
  font-style: italic;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.contact-card {
  padding: 28px;
}

.map-frame {
  overflow: hidden;
  height: 230px;
  margin: 20px 0;
  border-radius: var(--radius);
  background: #111;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-preview-link {
  position: relative;
  display: block;
  overflow: hidden;
  height: 230px;
  margin: 20px 0;
  border-radius: var(--radius);
  background: #111;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.map-preview-link iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.map-preview-link span {
  position: absolute;
  inset: auto 14px 14px;
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.branch-location-section {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding-block: clamp(54px, 8vw, 96px);
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62)),
    var(--branch-bg) center / cover;
}

#branch-overview,
#branch-photos,
#branch-updates,
#branch-local-guide,
#branch-reviews,
#branch-faqs,
#branch-location {
  scroll-margin-top: 150px;
}

.branch-location-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(26px, 4vw, 48px);
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px);
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.9);
  color: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.branch-location-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: var(--lime);
}

.branch-location-copy {
  min-width: 0;
}

.branch-location-copy h2 {
  color: var(--white);
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 0.82;
  margin-bottom: 36px;
  text-transform: uppercase;
}

.branch-location-copy p {
  margin: 0 0 12px;
  color: #dce2d4;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.branch-location-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.branch-location-actions .btn {
  min-height: 56px;
  border-radius: 999px;
}

.branch-map-preview {
  position: relative;
  align-self: end;
  display: block;
  overflow: hidden;
  min-height: 310px;
  border-radius: 8px;
  background: #111;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.branch-map-preview iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  pointer-events: none;
}

.branch-map-preview span {
  position: absolute;
  inset: 18px auto auto 18px;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #5ea7ff;
  font-weight: 800;
  letter-spacing: 0;
}

.branch-map-preview span::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 9px;
  border: 2px solid currentColor;
  border-left: 0;
  border-bottom: 0;
  transform: translateY(2px) rotate(45deg);
}

.page-hero {
  position: relative;
  min-height: clamp(440px, 52vh, 540px);
  display: grid;
  align-items: end;
  padding: 132px clamp(18px, 5vw, 72px) 58px;
  background:
    linear-gradient(130deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.5)),
    var(--hero-image, url("../images/branches/satellite-hero.webp")) center / cover;
  color: var(--white);
}

.page-hero > div {
  position: relative;
  z-index: 1;
}

.events-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 42%, rgba(173, 213, 0, 0.3), rgba(173, 213, 0, 0.08) 32%, transparent 58%),
    linear-gradient(115deg, rgba(173, 213, 0, 0.18), rgba(0, 0, 0, 0.9) 38%, rgba(18, 20, 18, 0.76)),
    #0b0c0b;
}

.events-hero::after {
  content: "";
  position: absolute;
  inset: 76px clamp(18px, 5vw, 72px) 22px auto;
  width: min(520px, 48vw);
  background: url("../images/logos/main-logo-green.png") center / contain no-repeat;
  opacity: 0.34;
  filter: drop-shadow(0 0 34px rgba(173, 213, 0, 0.34));
  pointer-events: none;
}

.page-hero h1 {
  max-width: 920px;
  color: var(--white);
  font-size: clamp(3.25rem, 6.4vw, 5.4rem);
}

.page-hero p {
  max-width: 680px;
  color: #e6ebdd;
  font-size: 1.08rem;
}

.page-hero .btn {
  width: fit-content;
  margin-top: 16px;
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--lime);
}

.facts-strip div {
  padding: 28px 20px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.facts-strip strong {
  display: block;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(5, minmax(120px, 0.75fr));
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
  padding: 54px clamp(22px, 5vw, 70px) 32px;
  border-top: 3px solid rgba(173, 213, 0, 0.8);
  background: #000;
  color: #9ca494;
  text-align: left;
}

.footer-brand-block {
  display: grid;
  gap: 12px;
}

.site-footer img {
  width: min(180px, 54vw);
  margin: 0;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-brand-block h3,
.footer-column h3 {
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1;
}

.footer-brand-block p,
.footer-column a,
.footer-bottom {
  margin: 0;
  color: #9ca494;
  font-weight: 400;
  line-height: 1.55;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--lime);
}

.footer-instagram-links {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.footer-instagram-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #d6dccd;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
}

.footer-instagram-links a::before {
  flex: 0 0 auto;
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.8 2h8.4A5.8 5.8 0 0 1 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8A5.8 5.8 0 0 1 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2Zm0 2A3.8 3.8 0 0 0 4 7.8v8.4A3.8 3.8 0 0 0 7.8 20h8.4a3.8 3.8 0 0 0 3.8-3.8V7.8A3.8 3.8 0 0 0 16.2 4H7.8Zm8.95 1.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.8 2h8.4A5.8 5.8 0 0 1 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8A5.8 5.8 0 0 1 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2Zm0 2A3.8 3.8 0 0 0 4 7.8v8.4A3.8 3.8 0 0 0 7.8 20h8.4a3.8 3.8 0 0 0 3.8-3.8V7.8A3.8 3.8 0 0 0 16.2 4H7.8Zm8.95 1.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-instagram-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 1180px) {
  .hiit-section .two-col {
    grid-template-columns: 1fr;
  }

  .hiit-proof-grid {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .branch-overview-grid,
  .assurance-grid,
  .cards-grid,
  .content-grid,
  .event-grid,
  .leaderboard-gallery,
  .repathlon-event-gallery,
  .repathlon-leaderboard-gallery,
  .legacy-archive-grid,
  .branch-update-grid,
  .reviews-grid,
  .plans-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .assurance-card,
  .assurance-card-top {
    grid-column: span 2;
  }

  .section-lime .cards-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .assurance-explainers,
  .consultation-panel,
  .hiit-proof-grid,
  .branch-memory-card,
  .branch-split,
  .branch-detail-card,
  .branch-location-card,
  .event-feature-card,
  .calculator,
  .guided-advisor,
  .two-col,
  .founder-card {
    grid-template-columns: 1fr;
  }

  .branch-choice-grid,
  .duration-grid {
    grid-template-columns: 1fr;
  }

  .branch-memory-photos {
    grid-template-columns: 1fr 1fr;
  }

  .branch-memory-photos img:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .branch-media {
    padding: 0 clamp(18px, 5vw, 70px) 70px;
  }

  .site-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 70px;
    padding: 12px 16px;
  }

  .brand-link img {
    width: 132px;
  }

  .mobile-nav {
    inset: 70px 0 auto;
  }

  .branch-page {
    --branch-subnav-height: 50px;
  }

  .branch-subnav {
    padding: 9px 16px;
  }

  .branch-page .branch-subnav {
    inset: 70px 0 auto;
  }

  .branch-page .mobile-nav {
    inset: calc(70px + var(--branch-subnav-height)) 0 auto;
  }

  .branch-page .page-hero {
    padding-top: calc(92px + var(--branch-subnav-height));
  }

  .branch-subnav span {
    font-size: 1.18rem;
  }

  .branch-subnav a {
    padding: 8px 12px;
    font-size: 1rem;
  }

  .hero {
    min-height: 72vh;
    padding-top: 104px;
    padding-bottom: 54px;
  }

  .hero-content {
    width: 100%;
    max-width: calc(100vw - 40px);
  }

  .legacy-badge {
    font-size: 1.08rem;
    letter-spacing: 0.08em;
    padding-inline: 16px;
  }

  .hero-proof {
    gap: 14px;
  }

  .proof-item {
    flex: 1 1 130px;
  }

  .branch-overview-grid,
  .assurance-grid,
  .cards-grid,
  .content-grid,
  .event-grid,
  .leaderboard-gallery,
  .legacy-archive-grid,
  .branch-update-grid,
  .reviews-grid,
  .plans-grid,
  .local-seo-grid,
  .faq-grid,
  .local-link-grid,
  .contact-grid,
  .facts-strip {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: left;
  }

  .footer-brand-block {
    justify-items: start;
  }

  .assurance-card,
  .assurance-card-top {
    grid-column: auto;
  }

  .legacy-photo-card.is-featured {
    grid-column: auto;
  }

  .legacy-photo-card img,
  .legacy-photo-card.is-featured img {
    height: 280px;
  }

  .branch-panel {
    margin: 58px 18px 28px;
  }

  .branch-detail-copy {
    padding: 24px;
  }

  .branch-info-grid {
    grid-template-columns: 1fr;
  }

  .branch-detail-media {
    min-height: auto;
  }

  .branch-main-photo {
    aspect-ratio: 16 / 9;
  }

  .branch-photo-strip {
    grid-template-columns: repeat(4, minmax(148px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .branch-photo-strip img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .branch-meta {
    grid-template-columns: 1fr;
  }

  .branch-location-section {
    min-height: auto;
    padding-block: 42px;
  }

  .branch-location-card {
    width: calc(100% - 28px);
    padding: 34px 24px 24px 30px;
  }

  .branch-location-card::before {
    width: 8px;
  }

  .branch-location-copy h2 {
    margin-bottom: 28px;
    font-size: clamp(4rem, 18vw, 6.2rem);
  }

  .branch-location-copy p {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }

  .branch-location-actions {
    margin-top: 32px;
    padding-top: 24px;
  }

  .branch-location-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .event-section-heading {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
  }

  .event-section-heading img {
    width: 96px;
  }

  .event-section-heading .section-title {
    text-align: center;
  }

  .school-tour-video-grid {
    grid-template-columns: 1fr;
  }

  .events-hero::after {
    inset: auto 0 24px;
    width: 100%;
    opacity: 0.16;
  }

  .advisor-periods {
    grid-template-columns: 1fr;
  }

  .guided-advisor,
  .advisor-progress,
  .advisor-form,
  .advisor-form .advisor-step,
  .advisor-result,
  .advisor-nav {
    width: 100%;
    max-width: 100%;
  }

  .advisor-form fieldset,
  .advisor-result {
    padding: 18px 14px;
  }

  .advisor-form legend {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
    line-height: 1;
  }

  .advisor-form label {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    font-size: 0.98rem;
  }

  .advisor-result h3 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .advisor-result .price {
    font-size: clamp(2.8rem, 12vw, 3.8rem);
  }

  .advisor-periods strong {
    font-size: 1.35rem;
  }

  .advisor-periods span {
    padding: 12px;
  }

  .advisor-periods b {
    font-size: 1.18rem;
  }

  .advisor-nav {
    flex-direction: column-reverse;
  }

  .advisor-nav .btn,
  .advisor-result .branch-detail-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .branch-map-preview {
    min-height: 230px;
  }

  .media-feature,
  .media-feature img {
    min-height: 300px;
  }

  .thumb-row {
    grid-template-columns: 1fr;
  }

  .thumb-row img {
    height: 190px;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img:last-child {
    margin-bottom: 0;
  }

  .calculator {
    padding: 22px;
  }

  .calc-result {
    padding: 22px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   VALA'S GYM AI CHAT WIDGET
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Floating Action Button ──────────────────────────────────── */
#valas-ai-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-body);
}

.vac-fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime) 0%, #8ab300 100%);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(173, 213, 0, 0.35), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.vac-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(173, 213, 0, 0.45), 0 4px 12px rgba(0,0,0,0.18);
}

.vac-fab:active {
  transform: scale(0.95);
}

.vac-fab-icon,
.vac-fab-close {
  width: 26px;
  height: 26px;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.vac-fab-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

#valas-ai-chat.is-open .vac-fab-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

#valas-ai-chat.is-open .vac-fab-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Pulse animation */
.vac-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  animation: vac-pulse 2.5s ease-out infinite;
}

#valas-ai-chat.is-open .vac-fab-pulse {
  display: none;
}

@keyframes vac-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ─── Chat Panel ──────────────────────────────────────────────── */
.vac-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(173, 213, 0, 0.25);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(255,255,255,0.3) inset;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#valas-ai-chat.is-open .vac-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ─── Header ──────────────────────────────────────────────────── */
.vac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a1d19 100%);
  color: #fff;
  border-bottom: 2px solid var(--lime);
  flex-shrink: 0;
}

.vac-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vac-header-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vac-header-info small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 1px;
}

.vac-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

.vac-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.vac-close-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.vac-close-btn svg {
  width: 18px;
  height: 18px;
}

/* ─── Messages Area ───────────────────────────────────────────── */
.vac-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 380px;
  scroll-behavior: smooth;
}

.vac-messages::-webkit-scrollbar {
  width: 4px;
}

.vac-messages::-webkit-scrollbar-track {
  background: transparent;
}

.vac-messages::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 4px;
}

.vac-msg {
  max-width: 88%;
  animation: vac-msg-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vac-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vac-msg p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  word-wrap: break-word;
}

.vac-msg-bot {
  align-self: flex-start;
}

.vac-msg-bot p {
  background: var(--soft);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.vac-msg-user {
  align-self: flex-end;
}

.vac-msg-user p {
  background: linear-gradient(135deg, var(--lime) 0%, #c6f000 100%);
  color: var(--ink);
  border-bottom-right-radius: 4px;
}

/* ─── Action Links in Bot Messages ────────────────────────────── */
.vac-action-link {
  display: inline-block;
  margin: 4px 4px 4px 0;
  padding: 5px 12px;
  background: var(--charcoal);
  color: var(--lime) !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.vac-action-link:hover {
  background: #222;
  transform: translateY(-1px);
}

/* ─── Typing Indicator ────────────────────────────────────────── */
.vac-typing-dots {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--soft);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.vac-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.3;
  animation: vac-typing 1.2s ease-in-out infinite;
}

.vac-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.vac-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes vac-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ─── Quick Action Chips ──────────────────────────────────────── */
.vac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
  flex-shrink: 0;
}

.vac-chip {
  padding: 6px 12px;
  background: rgba(173, 213, 0, 0.12);
  border: 1px solid rgba(173, 213, 0, 0.3);
  border-radius: 20px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.vac-chip:hover {
  background: rgba(173, 213, 0, 0.25);
  border-color: var(--lime);
  transform: translateY(-1px);
}

/* ─── Input Bar ───────────────────────────────────────────────── */
.vac-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

.vac-input-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.vac-input-bar input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(173, 213, 0, 0.18);
}

.vac-input-bar input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vac-input-bar button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime) 0%, #8ab300 100%);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.vac-input-bar button[type="submit"]:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(173, 213, 0, 0.35);
}

.vac-input-bar button[type="submit"] svg {
  width: 18px;
  height: 18px;
}

/* ─── Mobile Responsive ───────────────────────────────────────── */
@media (max-width: 480px) {
  #valas-ai-chat {
    bottom: 16px;
    right: 16px;
  }

  .vac-fab {
    width: 54px;
    height: 54px;
  }

  .vac-panel {
    bottom: 80px;
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 110px);
    border-radius: 16px;
  }

  .vac-messages {
    max-height: 320px;
  }

  .vac-chip {
    font-size: 0.72rem;
    padding: 5px 10px;
  }
}
