/* Branches — modern tech store network pages */

.page-branches {
  --br-bg: #f3f6fb;
  --br-ink: #0c1222;
  --br-muted: rgba(12, 18, 34, 0.64);
  --br-accent: #0b6bcb;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(11, 107, 203, 0.12), transparent 50%),
    var(--br-bg);
  color: var(--br-ink);
}

.page-branches main {
  background: transparent;
}

.br {
  width: min(1180px, calc(100% - 1.25rem));
  margin-inline: auto;
  padding: 1rem 0 3rem;
}

.br-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.35rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(34, 211, 238, 0.22), transparent 55%),
    linear-gradient(135deg, #0c1222 0%, #123056 55%, #0b6bcb 140%);
  animation: br-rise 0.65s ease both;
}

.br-hero--compact {
  padding: 1.35rem 1.5rem 1.5rem;
}

.br-hero__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  inset-inline-start: -80px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(59, 158, 255, 0.25);
  filter: blur(30px);
  pointer-events: none;
}

.br-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 700;
}

.br-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.br-hero__lead {
  margin: 0 0 1.1rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.br-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.br-hero__chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.br-hero__chips a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.br-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
}

.br-crumb a {
  color: #fff;
  text-decoration: none;
}

.br-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .br-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.br-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(12, 18, 34, 0.07);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  animation: br-rise 0.65s ease both;
  animation-delay: calc(var(--i, 0) * 0.06s);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.br-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 107, 203, 0.28);
  box-shadow: 0 22px 48px rgba(11, 107, 203, 0.12);
}

.br-card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.br-card__index {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0b6bcb, #22d3ee);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.br-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.br-card__addr,
.br-card__hours,
.br-card__note {
  margin: 0;
  color: var(--br-muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.br-card__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.br-card__phones a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #0b6bcb;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.br-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  background: #0c1222;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.br-card__cta:hover {
  background: #0b6bcb;
  color: #fff;
}

.br-detail {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .br-detail {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.br-detail__panel {
  padding: 1.4rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(12, 18, 34, 0.07);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.br-detail__panel h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.br-detail__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.br-detail__list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(12, 18, 34, 0.06);
}

.br-detail__list i {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5ff;
  color: #0b6bcb;
  flex-shrink: 0;
}

.br-detail__list strong {
  display: block;
  margin-bottom: 0.2rem;
}

.br-detail__list p {
  margin: 0;
  color: var(--br-muted);
  line-height: 1.7;
}

.br-detail__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.br-detail__phones a,
.br-detail__list a {
  color: #0b6bcb;
  text-decoration: none;
  font-weight: 700;
}

.br-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.br-btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(12, 18, 34, 0.14);
  color: var(--br-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  background: #fff;
}

.br-detail__map iframe,
.br-map-fallback {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 20px;
  background: #0c1222;
}

.br-map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #fff;
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(59, 158, 255, 0.3), transparent 45%),
    linear-gradient(160deg, #12203a, #070b14);
}

.br-map-fallback i {
  font-size: 2rem;
  color: #8ec8ff;
}

.br-map-fallback p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.br-map-fallback a {
  margin-top: 0.5rem;
  color: #fff;
  font-weight: 700;
}

.br-other {
  margin-top: 1.5rem;
}

.br-other h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.br-other__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.br-other__list a {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(12, 18, 34, 0.1);
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.br-other__list a:hover {
  border-color: #0b6bcb;
  color: #0b6bcb;
}

@keyframes br-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
