/* ==========================================================================
   FITNESS MOTIVACE — hlavní stylopis
   Černo–oranžovo–šedé UI, mobile-first, s animacemi a přístupností
   ========================================================================== */

:root {
  --black: #0e0e0f;
  --black-2: #111114;
  --gray-900: #15151a;
  --gray-800: #1c1c20;
  --gray-700: #232326;
  --gray-500: #87878f;
  --gray-300: #9b9896;
  --gray-100: #e9e8e7;
  --white: #ffffff;
  --orange: #ff6a1a;
  --orange-light: #ff8a4c;
  --orange-dark: #d6540f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Archivo", "Segoe UI", Arial, sans-serif;
  background: var(--black);
  color: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--tight {
  padding: 70px 0;
}

::selection {
  background: var(--orange);
  color: var(--black);
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--black);
  padding: 12px 20px;
  z-index: 999;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Eyebrow / labels
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: "Archivo", "Segoe UI", sans-serif;
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

h2.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lede {
  color: var(--gray-300);
  font-size: 1.05rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn--primary {
  background: var(--orange);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(255, 106, 26, 0.35);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--orange-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(255, 106, 26, 0.5);
}
.btn--primary:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}
.btn--primary svg {
  transition: transform 0.35s var(--ease);
}
.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  border: 1.5px solid var(--gray-700);
  color: var(--white);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-3px);
}
.btn--ghost:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: height 0.35s var(--ease);
}

/* Blur lives on a pseudo-element (not the header itself) so that
   backdrop-filter doesn't create a containing block for the
   position:fixed mobile nav panel, which would trap it inside
   the header's own box height. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 14, 15, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  height: 66px;
}
.site-header.is-scrolled::before {
  background: rgba(10, 10, 11, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 44px;
  width: auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-100);
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--orange);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.has-dropdown {
  position: relative;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dropdown-toggle .chev {
  transition: transform 0.3s var(--ease);
}
.has-dropdown:hover .dropdown-toggle .chev,
.has-dropdown:focus-within .dropdown-toggle .chev {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(6px);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-300);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--gray-800);
  color: var(--orange);
  padding-left: 16px;
}
.dropdown-menu .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: transform 0.15s var(--ease);
}
.nav-toggle:active {
  transform: scale(0.9);
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 90px;
  background:
    linear-gradient(0deg, rgba(14, 14, 15, 0.97) 0%, rgba(14, 14, 15, 0.75) 32%, rgba(14, 14, 15, 0.35) 60%, rgba(14, 14, 15, 0.55) 100%),
    url('/images/kounicova/hero-recepce-posilovna.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  margin-bottom: 26px;
}
.hero-logo-full {
  height: clamp(130px, 15vw, 190px);
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 6px 22px rgba(0, 0, 0, 0.75));
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-transform: uppercase;
  max-width: 900px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.hero h1 .accent {
  color: var(--orange);
}

.hero-text {
  max-width: 620px;
  color: var(--gray-300);
  font-size: 1.08rem;
  margin: 22px 0 36px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 70px;
}

/* Hero cards grid (the 4 clickable cards) */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
  text-align: left;
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  isolation: isolate;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  opacity: 0;
  transform: translateY(28px);
}
.hero-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.08);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.9) brightness(0.62);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 14, 15, 0.15) 0%, rgba(14, 14, 15, 0.92) 88%);
}

.hero-card:hover,
.hero-card:focus-visible {
  transform: translateY(-10px);
  border-color: var(--orange);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}
.hero-card:active {
  transform: translateY(-10px) scale(0.98);
  transition-duration: 0.1s;
}
.hero-card:hover::before,
.hero-card:focus-visible::before {
  transform: scale(1.16);
  filter: saturate(1.05) brightness(0.5);
}

.hero-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 106, 26, 0.15);
  border: 1px solid rgba(255, 106, 26, 0.4);
  color: var(--orange);
  margin-bottom: 16px;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.hero-card:hover .card-icon {
  background: var(--orange);
  color: var(--black);
  transform: rotate(-8deg) scale(1.05);
}

.hero-card .card-tag {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hero-card .card-address {
  color: var(--orange-light);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-card .card-desc {
  color: var(--gray-300);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.hero-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
}
.hero-card .card-link svg {
  transition: transform 0.35s var(--ease);
}
.hero-card:hover .card-link svg {
  transform: translateX(6px);
}

/* ==========================================================================
   Advantages / Why us
   ========================================================================== */
.why-us {
  background: var(--black-2);
}
.why-us-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.why-us-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
}
.why-us-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-800);
}
.why-us-item:last-child {
  border-bottom: 1px solid var(--gray-800);
}
.why-us-num {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}
.why-us-item h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.why-us-item p {
  color: var(--gray-300);
  font-size: 0.9rem;
}
.why-us-photo {
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  height: 100%;
  min-height: 480px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--orange);
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 46px 0;
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}
.stat {
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--orange);
  font-weight: 800;
}
.stat span {
  color: var(--gray-300);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   Accordion (Pobočky page)
   ========================================================================== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.accordion-item {
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-900);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}
.accordion-item.in-view {
  opacity: 1;
  transform: translateY(0);
}
.accordion-item.is-open {
  border-color: var(--orange);
  box-shadow: var(--shadow);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  text-align: left;
  transition: background 0.3s var(--ease), transform 0.1s var(--ease);
}
.accordion-trigger:hover {
  background: var(--gray-800);
}
.accordion-trigger:active {
  transform: scale(0.99);
}

.accordion-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.accordion-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 106, 26, 0.12);
}

.accordion-head {
  flex: 1;
  min-width: 0;
}
.accordion-head .branch-index {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 4px;
  display: block;
}
.accordion-head h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
}
.accordion-head .branch-address {
  color: var(--gray-300);
  font-size: 0.85rem;
  margin-top: 4px;
}

.accordion-plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.4s var(--ease);
}
.accordion-plus span {
  position: absolute;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.accordion-plus span:nth-child(1) {
  width: 16px;
  height: 2px;
}
.accordion-plus span:nth-child(2) {
  width: 2px;
  height: 16px;
}
.accordion-item.is-open .accordion-plus {
  background: var(--orange);
  border-color: var(--orange);
  transform: rotate(180deg);
}
.accordion-item.is-open .accordion-plus span:nth-child(2) {
  opacity: 0;
  transform: rotate(90deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}
.accordion-panel-inner {
  overflow: hidden;
}
.accordion-body {
  padding: 0 26px 30px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
}

.accordion-body .info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 22px;
}
.accordion-body .info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-300);
}
.accordion-body .info-list svg {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.accordion-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 200px;
  background-size: cover;
  background-position: center;
}

/* ==========================================================================
   Trainers page
   ========================================================================== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.tab-btn {
  padding: 11px 22px;
  border-radius: 50px;
  border: 1px solid var(--gray-700);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-300);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.15s var(--ease);
}
.tab-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.tab-btn:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}
.tab-btn.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.trainer-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}
.trainer-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.trainer-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange);
  box-shadow: var(--shadow);
}
.trainer-photo {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.trainer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.trainer-card:hover .trainer-photo img {
  transform: scale(1.08);
}
.trainer-photo .branch-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 14, 15, 0.75);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.trainer-photo--empty {
  background: var(--black-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trainer-photo--empty .placeholder-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
}
.trainer-info {
  padding: 22px 22px 26px;
}
.trainer-info h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.trainer-role {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.trainer-info p {
  color: var(--gray-300);
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.trainer-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trainer-specs span {
  font-size: 0.72rem;
  padding: 5px 11px;
  border-radius: 50px;
  border: 1px solid var(--gray-700);
  color: var(--gray-300);
}

/* ==========================================================================
   Programs (reused component)
   ========================================================================== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.program-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}
.program-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.program-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange);
}
.program-card:active {
  transform: translateY(-8px) scale(0.98);
  transition-duration: 0.1s;
}
.program-photo {
  height: 190px;
  background-size: cover;
  background-position: center;
}
.program-body {
  padding: 22px;
}
.program-body h3 {
  font-size: 1rem;
  text-transform: uppercase;
  margin: 12px 0 8px;
}
.program-body p {
  color: var(--gray-300);
  font-size: 0.87rem;
  margin-bottom: 14px;
}

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 70px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 106, 26, 0.16), transparent 50%),
    var(--black);
  text-align: center;
  overflow: hidden;
}
.page-header .breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--gray-300);
  font-size: 0.85rem;
  margin-top: 14px;
}
.page-header .breadcrumbs a {
  color: var(--gray-300);
  transition: color 0.3s var(--ease);
}
.page-header .breadcrumbs a:hover {
  color: var(--orange);
}
.page-header .breadcrumbs .sep {
  color: var(--gray-700);
}
.page-header .breadcrumbs .current {
  color: var(--orange);
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
}

/* ==========================================================================
   Branch detail page
   ========================================================================== */
.branch-hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  margin-top: var(--header-h);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.branch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(14, 14, 15, 0.4) 0%, rgba(14, 14, 15, 0.5) 35%, rgba(14, 14, 15, 0.92) 70%, rgba(14, 14, 15, 0.99) 100%);
}
.branch-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 54px;
  width: 100%;
}
.branch-hero .breadcrumbs {
  display: flex;
  gap: 8px;
  color: var(--gray-300);
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.branch-hero .breadcrumbs a:hover {
  color: var(--orange);
}
.branch-hero .breadcrumbs .sep {
  color: var(--gray-700);
}
.branch-hero .breadcrumbs .current {
  color: var(--orange);
}
.branch-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  text-transform: uppercase;
  max-width: 700px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.85);
}
.branch-hero .branch-tagline {
  color: var(--gray-100);
  max-width: 560px;
  margin-top: 14px;
  font-size: 1.02rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

.branch-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
}
.branch-content h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 34px 0 16px;
}
.branch-content h2:first-child {
  margin-top: 0;
}
.branch-content p {
  color: var(--gray-300);
  margin-bottom: 14px;
}

/* ==========================================================================
   Legal pages (Privacy / Terms) — long-form prose
   ========================================================================== */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}
.legal-content .legal-updated {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 44px 0 14px;
}
.legal-content h2:first-of-type {
  margin-top: 0;
}
.legal-content h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin: 22px 0 10px;
}
.legal-content p {
  color: var(--gray-300);
  margin-bottom: 14px;
}
.legal-content ul,
.legal-content ol {
  color: var(--gray-300);
  margin: 0 0 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-content li {
  list-style: disc;
}
.legal-content ol li {
  list-style: decimal;
}
.legal-content strong {
  color: var(--white);
}
.legal-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover {
  color: var(--orange-light);
}
.legal-content .legal-highlight {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.legal-content .legal-highlight p:last-child {
  margin-bottom: 0;
}
.legal-toc {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.legal-toc h2 {
  font-size: 0.95rem;
  margin: 0 0 14px;
}
.legal-toc ol {
  padding-left: 20px;
  margin: 0;
  gap: 6px;
}
.legal-toc a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.92rem;
}
.legal-toc a:hover {
  color: var(--orange);
}
.branch-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.branch-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--gray-100);
  padding: 12px 14px;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-sm);
}
.branch-feature-list svg {
  color: var(--orange);
  flex-shrink: 0;
}

.branch-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.branch-gallery div {
  border-radius: var(--radius-sm);
  height: 120px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s var(--ease);
}
.branch-gallery div:hover {
  transform: scale(1.04);
}

/* ==========================================================================
   Photo gallery (mosaic) + lightbox
   ========================================================================== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 14px;
  margin: 24px 0;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-800);
  isolation: isolate;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gallery-item.in-view {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--orange);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.96);
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.08);
  filter: saturate(1.05);
}
.gallery-item:active img {
  transform: scale(1.02);
  transition-duration: 0.1s;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 14, 15, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 14, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item:hover .gallery-zoom {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}

.gallery-item--big {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item--wide {
  grid-column: span 2;
}
.gallery-item--tall {
  grid-row: span 2;
}

@media (max-width: 860px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
}
@media (max-width: 520px) {
  .photo-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item--big,
  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 7, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  padding: 24px;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-figure {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}
.lightbox.is-open .lightbox-figure {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--gray-700);
}

.lightbox-caption {
  margin-top: 16px;
  color: var(--gray-300);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}

.lightbox-close {
  top: -18px;
  right: -18px;
}
.lightbox-prev {
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

@media (max-width: 640px) {
  .lightbox-close {
    top: -52px;
    right: 0;
  }
  .lightbox-prev {
    left: 0;
  }
  .lightbox-next {
    right: 0;
  }
}

/* Sidebar card */
.branch-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.info-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-800);
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.info-row:last-child {
  margin-bottom: 0;
}
.info-row svg {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}
.info-row strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.info-row span, .info-row a {
  color: var(--gray-300);
}
.info-row a:hover {
  color: var(--orange);
}

.hours-table {
  width: 100%;
  font-size: 0.88rem;
}
.hours-table tr {
  border-bottom: 1px solid var(--gray-800);
}
.hours-table tr:last-child {
  border-bottom: none;
}
.hours-table td {
  padding: 9px 0;
  color: var(--gray-300);
}
.hours-table td:last-child {
  text-align: right;
  color: var(--white);
  font-weight: 500;
}

.price-tables {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin: 20px 0 34px;
  align-items: start;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.9rem;
}
.price-table thead th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-800);
}
.price-table thead th:not(:first-child) {
  text-align: right;
}
.price-table tbody tr {
  border-bottom: 1px solid var(--gray-800);
}
.price-table tbody tr:last-child {
  border-bottom: none;
}
.price-table tbody tr:hover {
  background: var(--gray-800);
}
.price-table td {
  padding: 12px 16px;
  color: var(--gray-100);
}
.price-table td:not(:first-child) {
  text-align: right;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.price-table .price-note {
  display: block;
  color: var(--gray-500);
  font-size: 0.76rem;
  font-weight: 400;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .price-tables {
    grid-template-columns: 1fr;
  }
}

.branch-map {
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-800);
}

.other-branches {
  background: var(--black-2);
}
.other-branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--gray-700);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  display: none;
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 6px;
}
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #ff6b6b;
}
.form-group.has-error .field-error {
  display: block;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 14px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(255, 106, 26, 0.12);
  border: 1px solid var(--orange);
  color: var(--orange-light);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.form-success.is-visible {
  display: flex;
}
@starting-style {
  .form-success.is-visible {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.form-error {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid #ff6b6b;
  color: #ff9a9a;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.form-error a {
  color: inherit;
  text-decoration: underline;
}
.form-error.is-visible {
  display: flex;
}
@starting-style {
  .form-error.is-visible {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Map */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-800);
  height: 420px;
  position: relative;
}
#branches-map {
  width: 100%;
  height: 100%;
  background: var(--gray-800);
  filter: saturate(0.5) brightness(0.85) contrast(1.05);
}

.map-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.map-legend-item:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}
.map-legend-item .pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.18);
  flex-shrink: 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 26px;
}
.contact-mini-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-mini-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}
.contact-mini-card h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-mini-card p {
  color: var(--gray-300);
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.contact-mini-card a.mini-link {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.14), transparent 60%), var(--black-2);
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}
.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cta-band p {
  color: var(--gray-300);
  max-width: 520px;
  margin: 0 auto 30px;
}
.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--black-2);
  padding: 70px 0 26px;
  border-top: 1px solid var(--gray-800);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer-logo {
  height: 72px;
  width: auto;
}
.footer-about p {
  color: var(--gray-300);
  font-size: 0.9rem;
  margin: 18px 0 22px;
  max-width: 320px;
}
.social-row {
  display: flex;
  gap: 10px;
}
.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-700);
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-row a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.footer-col a:hover {
  color: var(--orange);
  padding-left: 4px;
}
.footer-branch {
  margin-bottom: 18px;
}
.footer-branch strong {
  display: block;
  color: var(--white);
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.footer-branch span {
  color: var(--gray-300);
  font-size: 0.82rem;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray-500);
  font-size: 0.82rem;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a:hover {
  color: var(--orange);
}

/* ==========================================================================
   Reveal-on-scroll utility
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.in-view { transition-delay: 0.06s; }
.reveal-delay-2.in-view { transition-delay: 0.12s; }
.reveal-delay-3.in-view { transition-delay: 0.18s; }
.reveal-delay-4.in-view { transition-delay: 0.24s; }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(255, 106, 26, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  z-index: 400;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
}
.back-to-top:active {
  transform: scale(0.92);
  transition-duration: 0.1s;
}

/* ==========================================================================
   Touch devices: neutralize hover-only "lift" transforms
   On a tap, :hover can stick until the next tap elsewhere. That's harmless
   for a color change but looks broken for elements that don't navigate away
   (buttons, back-to-top, map legend). :focus-visible keeps its own motion.
   ========================================================================== */
@media (hover: none) {
  .btn--primary:hover,
  .btn--ghost:hover,
  .map-legend-item:hover,
  .back-to-top:hover {
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .why-us-photo {
    min-height: 320px;
    order: -1;
  }
  .trainer-grid,
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .branch-body {
    grid-template-columns: 1fr;
  }
  .branch-sidebar {
    position: static;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black-2);
    padding: 20px;
    gap: 4px;
    overflow-y: auto;
    animation: slideDown 0.4s var(--ease);
  }
  .nav.mobile-open .nav-link {
    padding: 16px 12px;
    border-bottom: 1px solid var(--gray-800);
    width: 100%;
  }
  .nav.mobile-open .has-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    margin-left: 12px;
  }
  .nav.mobile-open .has-dropdown.is-open .dropdown-menu {
    display: block;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .other-branch-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .hero-cards { grid-template-columns: 1fr; }
  .why-us-photo { min-height: 240px; }
  .trainer-grid, .program-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .branch-feature-list { grid-template-columns: 1fr; }
  .branch-gallery { grid-template-columns: 1fr 1fr; }
  .other-branch-grid, .footer-grid { grid-template-columns: 1fr; }
  .map-legend { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .accordion-body { grid-template-columns: 1fr; }
  .accordion-trigger { padding: 18px; gap: 14px; }
  .accordion-thumb { width: 56px; height: 56px; }
}
