:root {
  --bg: #04060d;
  --text: #e8edf5;
  --muted: #94a3b8;
  --card-bg: rgba(8, 16, 32, 0.82);
  --card-border: rgba(56, 189, 248, 0.35);
  --accent: #38bdf8;
  --accent-strong: #2563eb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18), transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.08), transparent 35%),
    linear-gradient(180deg, #04060d 0%, #070b14 45%, #04060d 100%);
  overflow-x: hidden;
}

.branches-shell,
.site-header,
.branches-hero,
.branches-section,
.site-footer {
  position: relative;
  z-index: 2;
}

.branches-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand__sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  color: #dbeafe;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(15, 23, 42, 0.55);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.header-link:hover,
.header-link:focus-visible {
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(30, 58, 138, 0.45);
  outline: none;
}

.header-link svg {
  width: 16px;
  height: 16px;
}

.branches-hero {
  text-align: center;
  padding: 28px 0 18px;
}

.branches-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.branches-hero__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.branches-hero__title span {
  color: var(--accent);
}

.branches-hero__subtitle {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
}

.branches-section {
  margin-top: 18px;
}

.branches-section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.branches-section__icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
}

.branches-section__title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.branch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px 16px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 30px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.branch-card:hover,
.branch-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(37, 99, 235, 0.18);
  outline: none;
}

.branch-card__logo {
  width: 112px;
  height: 112px;
  margin-bottom: 12px;
}

.branch-seal {
  width: 100%;
  height: 100%;
}

.branch-seal__svg,
.branch-seal__photo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.branch-seal__svg {
  filter: drop-shadow(0 0 14px rgba(37, 99, 235, 0.35));
}

.branch-seal__photo {
  filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.25));
}

.branch-card__logo-ring {
  display: none;
}

.branch-card__name {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
}

.branch-card__cta {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.branch-card[data-live="true"]::after {
  content: "LIVE";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent-strong);
}

.branch-card {
  position: relative;
}

.branch-card--soon {
  cursor: pointer;
}

.site-footer {
  margin-top: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer__tagline {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.site-footer p {
  margin: 0 0 14px;
}

.site-footer strong {
  color: #cbd5e1;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
  transition: color 0.2s ease, background 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #fff;
  background: rgba(96, 165, 250, 0.25);
  outline: none;
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.branch-modal[hidden] {
  display: none !important;
}

.branch-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.branch-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.branch-modal__box {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.96);
  text-align: center;
}

.branch-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.6rem;
  cursor: pointer;
}

.branch-modal__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.branch-modal__text {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1200px) {
  .branch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .branch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .branch-grid {
    grid-template-columns: 1fr;
  }
}
