/* ==========================================================================
   Responsive — breakpoints (desktop-first refinements)
   1280 · 1180 (nav switch) · 1024 · 860 · 768 · 600 · 430 · 390 · 360
   ========================================================================== */

@media (max-width: 1280px) {
  .nav__link { padding-inline: 0.625rem; font-size: 0.9rem; }
  .brand__text small { display: none; }
  .quick__item { padding-inline: 1rem; }
}

/* ---- Navigation switches to off-canvas ---- */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-burger { display: grid; }
  .header__actions { margin-left: auto; }
  .brand__text small { display: block; }
  .quick__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick__item:nth-child(4) { border-left: 0; }
  .quick__item:nth-child(n + 4) { border-top: 1px solid var(--border); }
  .dash { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .hero__visual > .media { --ratio: 16 / 10; }
  .hero__trust { left: auto; right: 1rem; bottom: -1.5rem; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .why__item:nth-child(3)::before { left: 0; }
  .calc-wrap, .calc-embed, .app-wrap, .branch-preview, .contact-wrap, .chairman, .editorial-2, .fin-layout { grid-template-columns: 1fr; }
  .editorial-2__label, .fin-aside { position: static; }
  .product-layout { grid-template-columns: 1fr; }
  .product-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .footer__branches { grid-column: 1 / -1; }
  .footer__branches ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .directors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offices { grid-template-columns: 1fr 1fr; }
  .offices > :last-child { grid-column: 1 / -1; }
  .branch-finder { grid-template-columns: 260px minmax(0, 1fr); }
  .branch-panel { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; justify-items: stretch; }
  .flow__hub { width: 200px; justify-self: center; }
  .flow__arrow { transform: rotate(90deg); justify-self: center; }
  .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach li:nth-child(3n) { border-right: 1px solid var(--border); }
  .approach li:nth-child(2n) { border-right: 0; }
  .approach li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--border); }
  .approach li:nth-last-child(-n + 2) { border-bottom: 0; }
  .gold-panel { grid-template-columns: 1fr; }
  .dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .growth__art { width: 100%; opacity: 0.4; }
  .chairman__photo { max-width: 420px; }
}

@media (max-width: 860px) {
  .split, .feature-row { grid-template-columns: 1fr; }
  .split--reverse > :first-child, .feature-row--reverse > :first-child { order: 0; }
  .products-duo { grid-template-columns: 1fr; }
  .page-hero__grid { grid-template-columns: 1fr; }
  .hero-emblem { display: none; }
  .hero-facts { max-width: 520px; }
  .growth__pillars { grid-template-columns: 1fr; max-width: 420px; }
  .cta-band { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .points li:nth-child(odd) { padding-right: 0; }
  .points li:nth-child(even) { padding-left: 0; border-left: 0; }
  .est-strip { grid-template-columns: 1fr; }
  .est-strip > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .category-duo { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; --header-h-compact: 60px; }
  .topbar__email { display: none; }
  .grid--2 { grid-template-columns: 1fr; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .branch-finder { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .branch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; border-right: 0; border-bottom: 1px solid var(--border); }
  .branch-list__label { grid-column: 1 / -1; }
  .branch-tab .ico-arrow { display: none; }
  .branch-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offices { grid-template-columns: 1fr; }
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top, .footer__links { grid-template-columns: 1fr; }
  .footer__branches ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .product-aside { grid-template-columns: 1fr; }
  .facts__row { grid-template-columns: 1fr; gap: 0.25rem; }
  .elements li { grid-template-columns: 3rem 1fr; }
  .elements li .ico { display: none; }
}

@media (max-width: 600px) {
  .cta-band .btn { white-space: normal; text-align: center; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick__item { min-height: 128px; padding: 1.125rem 1rem; }
  .quick__item:nth-child(n) { border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
  .quick__item:nth-child(odd) { border-left: 0; }
  .quick__item:nth-child(-n + 2) { border-top: 0; }
  .why { grid-template-columns: 1fr; }
  .why__item + .why__item { padding-left: 0; border-left: 0; }
  .why__item + .why__item::before { left: 0; }
  .prod-panel--loans .prod-list { grid-template-columns: 1fr; }
  .form-grid, .calc__row { grid-template-columns: 1fr; }
  .calc__actions { grid-template-columns: 1fr; }
  .app-features { grid-template-columns: 1fr; }
  .directors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: 1fr; }
  .orgs, .check-list--2 { grid-template-columns: 1fr; }
  .approach { grid-template-columns: 1fr; }
  .approach li { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .approach li:last-child { border-bottom: 0 !important; }
  .doc-card { flex-wrap: wrap; }
  .doc-card__actions { width: 100%; }
  .doc-card__actions .btn { flex: 1; }
  .hero__trust { position: relative; right: auto; bottom: auto; width: auto; margin: -2.5rem 1rem 0; }
  .tenure__track { grid-template-columns: 1fr; gap: 1.25rem; }
  .tenure__track::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--light-blue), var(--primary-blue)); }
  .tenure__stop { grid-template-columns: 24px 1fr; align-items: center; column-gap: 1rem; row-gap: 0; }
  .tenure__stop::before { grid-row: span 2; }
  .header__cta { display: none; }
  .blood-note { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .topbar ul { gap: 0.875rem; }
  .topbar__branches { display: none; }
  .brand__text small { display: none; }
  .brand__mark { width: 40px; height: 40px; }
  .hero__sub span + span::before { margin-right: 0.5rem; }
  .branch-chips { grid-template-columns: 1fr 1fr; }
  .branch-list { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
  .tile { min-height: 130px; padding: 1rem; }
  .tile--wide { grid-column: 1 / -1; }
  .footer__branches ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-row .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; }
  .store-btn { width: 100%; justify-content: center; }
}

@media (max-width: 360px) {
  .quick__item strong { font-size: 0.875rem; }
  .directors-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .director__body { padding: 0.75rem; }
  .director__body h3 { font-size: 0.9375rem; }
  .dash { grid-template-columns: 1fr; }
}
