.branches {
  --album-paper: #fff7e8;
  --album-line: rgba(255, 224, 206, .29);
  position: relative;
  margin-bottom: clamp(36px, 5vw, 78px);
  padding: clamp(24px, 4vw, 56px);
  color: var(--album-paper);
  background: radial-gradient(ellipse at 90% 0, #ac3d46 0, transparent 67%),
              linear-gradient(117deg, #801e2b, #721a29);
  border-radius: 20px;
  isolation: isolate;
  scroll-margin-top: 18px;
}
.branches::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px;
  border: 1px dashed rgba(255, 222, 186, .34);
  border-radius: 14px;
  pointer-events: none;
}
.branches-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: clamp(20px, 2.3vw, 33px);
}
.branches-head h2 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 66px);
  letter-spacing: -.058em;
  line-height: 1.03;
  color: var(--album-paper);
}
.branches-head h2 span { display: block; }
.branch-stamp {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(72px, 7.8vw, 104px);
  aspect-ratio: 4 / 4.5;
  color: #b77870;
  background: #ffecd4;
  outline: 1px solid #d4ada0;
  outline-offset: -7px;
  transform: rotate(8deg);
  margin-right: 6px;
  mask: radial-gradient(circle at 5px 0, transparent 2px, #000 2.7px) top / 10px 53% repeat-x,
        radial-gradient(circle at 5px 100%, transparent 2px, #000 2.7px) bottom / 10px 53% repeat-x;
}
.branch-stamp img { width: 82%; height: auto; object-fit: contain; }
.branches-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(26px,4vw,64px); list-style: none; padding: 0; margin: 0; }
.branch { border-top: 1px solid var(--album-line); min-width: 0; }
.branch article {
  position: relative;
  display: grid;
  grid-template-columns: clamp(88px, 8.6vw, 126px) minmax(0,1fr);
  align-items: center;
  column-gap: clamp(19px,2vw,29px);
  height: 100%;
  padding: clamp(18px,1.7vw,25px) 0;
}
.branch-print {
  --rotation: -2deg;
  position: relative;
  padding: 4px 4px 8px;
  background: var(--album-paper);
  box-shadow: 0 4px 10px #410f203b;
  transform: rotate(var(--rotation));
  transition: transform .22s ease-out;
}
.branch:nth-child(2n) .branch-print { --rotation: 2deg; }
.branch-print img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.branch-copy { min-width: 0; padding-right: 23px; }
.branch-place { color: #ffcfbb; font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.branch-copy h3 { margin: 5px 0 7px; font-size: clamp(18px,1.57vw,24px); line-height: 1.15; letter-spacing: -.032em; }
.branch-page { color: var(--album-paper); text-decoration: none; }
.branch-page::after { content: ""; position: absolute; inset: 2px 0; border-radius: 4px; }
.branch svg.branch-arrow { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #f4c2ad; width: 17px; height: 17px; }
.branch-address,.branch-tel { font-size: clamp(12px,1.04vw,15px); line-height: 1.5; color: #ffe7da; }
.branch-tel { position: relative; z-index: 1; display: inline-block; padding: 3px 0; text-underline-offset: 3px; text-decoration: underline; text-decoration-color: #cc9992; }
.branch a:focus-visible { outline-color: #fff1ca; }
.branch-page:focus-visible { outline: none; }
.branch-page:focus-visible::after { outline: 2px solid #fff1ca; outline-offset: 3px; }
@media (hover:hover) {
  .branch article:has(.branch-page:hover) .branch-print { transform: translateY(-2px) rotate(0deg); }
  .branch-page:hover,.branch-tel:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media(max-width:760px) {
  .branches-list { grid-template-columns: minmax(0,1fr); }
  .branch article { grid-template-columns: clamp(82px,17vw,110px) minmax(0,1fr); }
  .branch-copy h3 { font-size: clamp(18px,4.4vw,25px); }
  .branch-address,.branch-tel { font-size: 13px; }
}
@media(max-width:480px) {
  .branches { padding: 25px 18px 12px; border-radius: 15px; }
  .branches::before { inset: 5px; border-radius: 11px; }
  .branches-head { gap: 6px; }
  .branches-head h2 { font-size: clamp(24px,6.4vw,31px); }
  .branch-stamp { width: clamp(39px,10vw,52px); margin-right: 2px; outline-offset: -4px; }
  .branch article { grid-template-columns: clamp(61px,16vw,81px) minmax(0,1fr); gap: 13px; padding: 16px 0; }
  .branch-copy { padding-right: 0; }
  .branch-copy h3 { font-size: clamp(16px,3.8vw,19px); line-height: 1.18; }
  .branch-place { font-size: 9px; letter-spacing: .08em; }
  .branch svg.branch-arrow { display: none; }
}
@media(prefers-reduced-motion:reduce) {
  .branch-print { transition: none; }
  .branch article:has(.branch-page:hover) .branch-print { transform: rotate(var(--rotation)); }
}

@media (min-width:741px) and (max-width:1120px) {
  .desktop-nav .branches-nav { display: none; }
}
