/* ================================================================
   HARMONY SAS BANK — DESKTOP LAYOUT SYSTEM
   Full 3-column grid layouts for all portal pages
   Breakpoints: ≥1280px full, ≥1024px medium, ≥768px compact
   ================================================================ */

/* ── Base page widths for desktop ── */
#bpage-transfer  { max-width: 1400px !important; padding: 28px 32px !important; }
#bpage-history   { max-width: 1440px !important; padding: 28px 32px !important; }
#bpage-cards     { max-width: 1440px !important; padding: 28px 32px !important; }
#bpage-loans     { max-width: 1400px !important; padding: 28px 32px !important; }
#bpage-profile   { max-width: 1200px !important; padding: 28px 32px !important; }
#bpage-support   { max-width: 1100px !important; padding: 28px 32px !important; }
#bpage-about     { max-width: 1440px !important; padding: 0 !important; }

/* ================================================================
   SIDEBAR PHOTO WIDGET — универсальный компонент для всех страниц
   ================================================================ */
.sidebar-photo-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-photo-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.sidebar-photo-widget:hover .sidebar-photo-img {
  transform: scale(1.04);
}

.sidebar-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(10, 36, 99, 0.35) 100%
  );
  pointer-events: none;
}

.sidebar-photo-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-photo-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sidebar-photo-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.sidebar-photo-contact {
  font-size: 12px;
  color: #2563eb;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Модификатор — для Loans левый сайдбар: чуть иначе */
.sidebar-photo-widget--loan .sidebar-photo-img-wrap {
  aspect-ratio: 4 / 3;
}

/* ================================================================
   TRANSFER PAGE — 3-column layout: sidebar | form | sidebar
   ================================================================ */
.transfer-page-grid {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 20px;
  align-items: start;
}

.transfer-main-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.transfer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 76px;
}

/* Widget base style */
.tpage-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.tpage-widget-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tpage-widget-title i { color: #2563eb; font-size: 13px; }

/* Exchange rates */
.tpage-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.tpage-rate-row:last-of-type { border-bottom: none; }
.tpage-rate-pair  { font-weight: 600; color: #1e293b; min-width: 80px; }
.tpage-rate-val   { font-weight: 700; color: #0f172a; font-family: var(--font-mono, monospace); font-size: 12px; }
.tpage-rate-chg   { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.tpage-rate-chg.up   { background: #dcfce7; color: #16a34a; }
.tpage-rate-chg.down { background: #fee2e2; color: #dc2626; }
.tpage-rates-note { font-size: 10px; color: #94a3b8; margin-top: 8px; display: flex; align-items: center; gap: 5px; }

/* Transfer types */
.tpage-type-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}
.tpage-type-item:last-child { border-bottom: none; }
.tpage-type-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.tpage-type-name { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 2px; }
.tpage-type-desc { font-size: 11px; color: #64748b; }

/* Security items */
.tpage-sec-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #374151;
  padding: 5px 0;
}
.tpage-sec-item i { color: #16a34a; font-size: 13px; }

/* Limits */
.tpage-limit-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
}
.tpage-limit-row:last-of-type { border-bottom: none; }
.tpage-limit-val { font-weight: 700; color: #0f172a; }
.tpage-limits-note { font-size: 11px; color: #94a3b8; margin-top: 8px; line-height: 1.5; }

/* Tips */
.tpage-tip {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: #475569;
  padding: 6px 0;
  line-height: 1.5;
}
.tpage-tip i { flex-shrink: 0; margin-top: 2px; font-size: 12px; }
.tpage-tip .fa-triangle-exclamation { color: #f59e0b; }
.tpage-tip .fa-info-circle { color: #3b82f6; }

/* Steps bar */
.transfer-steps {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 24px;
  gap: 0;
}
.tstep {
  display: flex; align-items: center; gap: 10px;
  flex: 1;
  position: relative;
}
.tstep::after {
  content: '';
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  width: calc(100% - 36px); height: 2px;
  background: #e2e8f0;
  margin-left: 36px;
}
.tstep:last-child::after { display: none; }
.tstep-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.tstep.active .tstep-num { background: #2563eb; color: #fff; }
.tstep-label { font-size: 13px; font-weight: 600; color: #94a3b8; z-index: 1; }
.tstep.active .tstep-label { color: #1e293b; }

/* ================================================================
   HISTORY PAGE — 3-column: sidebar | table | sidebar
   ================================================================ */
.hpage-layout {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 20px;
  align-items: start;
}

.hpage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 76px;
}

.hpage-main { min-width: 0; }

.hpage-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.hpage-widget-title {
  font-size: 12px; font-weight: 700;
  color: #0f172a;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 7px;
}
.hpage-widget-title i { color: #2563eb; font-size: 13px; }

.hpage-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: 12px; color: #475569;
  border-bottom: 1px solid #f8fafc;
}
.hpage-stat-row:last-child { border-bottom: none; }
.hpage-stat-row span:last-child { font-weight: 700; color: #1e293b; }

.hpage-tip-item {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: #475569; line-height: 1.55;
  padding: 5px 0;
}
.hpage-tip-item i { flex-shrink: 0; margin-top: 2px; }

.hpage-export-btn {
  width: 100%;
  padding: 9px 14px;
  background: #0A4FD4;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .2s;
}
.hpage-export-btn:hover { background: #0A2463; }

/* FGDR widget */
.hpage-fgdr-widget {
  background: linear-gradient(135deg, #0A2463, #0A4FD4);
  border: none !important;
  text-align: center;
  padding: 20px 16px !important;
}
.hpage-fgdr-logo { font-size: 28px; color: rgba(255,255,255,.85); margin-bottom: 8px; }
.hpage-fgdr-title { font-size: 11px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.hpage-fgdr-amount { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.hpage-fgdr-sub { font-size: 10px; color: rgba(255,255,255,.65); line-height: 1.5; }

/* Categories */
.hpage-cat-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #475569;
  padding: 4px 0;
}
.hpage-cat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hpage-security-widget { border-left: 3px solid #f59e0b !important; }

/* History layout: table takes full width in main col */
.history-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  align-items: start;
}
.history-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px; align-items: center;
}
.hist-filter-input { width: 220px; }
.hist-filter-select { width: auto; min-width: 120px; padding: 8px 12px; }

/* ================================================================
   CARDS PAGE — 3-column: sidebar | grid | sidebar
   ================================================================ */
.cpage-layout {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 20px;
  align-items: start;
}

.cpage-main { min-width: 0; }

.cpage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 76px;
}

.cpage-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.cpage-widget-title {
  font-size: 12px; font-weight: 700; color: #0f172a;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 7px;
}
.cpage-widget-title i { color: #2563eb; }

/* Cashback widget */
.cpage-cashback {
  background: linear-gradient(135deg, #0A2463, #0A4FD4) !important;
  border: none !important;
  color: #fff;
}
.cpage-cashback-icon { font-size: 28px; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.cpage-cashback-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.cpage-cashback-sub { font-size: 11px; color: rgba(255,255,255,.7); margin-bottom: 12px; line-height: 1.5; }
.cpage-cashback-list { display: flex; flex-direction: column; gap: 4px; }
.cpage-cb-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.85);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.cpage-cb-row:last-child { border-bottom: none; }
.cpage-cb-row span { font-weight: 700; color: #fff; }

/* Digital wallets */
.cpage-wallet-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  font-size: 13px; color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  gap: 8px;
}
.cpage-wallet-row:last-of-type { border-bottom: none; }
.cpage-wallet-row span:first-of-type { flex: 1; }
.cpage-wallet-badge {
  background: #dcfce7; color: #16a34a;
  font-size: 10px; font-weight: 700;
  border-radius: 6px; padding: 2px 8px;
}

/* Insurance / Security */
.cpage-insurance { border-left: 3px solid #2563eb !important; }
.cpage-ins-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #374151; padding: 5px 0;
}
.cpage-ins-item i { color: #16a34a; }
.cpage-ins-note { font-size: 10px; color: #94a3b8; margin-top: 8px; line-height: 1.5; }

.cpage-sec-feature {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; color: #374151; padding: 6px 0;
  border-bottom: 1px solid #f8fafc;
}
.cpage-sec-feature:last-child { border-bottom: none; }

/* Card fees */
.cpage-fee-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 12px; color: #475569;
  border-bottom: 1px solid #f8fafc;
}
.cpage-fee-row:last-child { border-bottom: none; }
.cpage-fee-row span:last-child { font-weight: 600; color: #1e293b; }
.cpage-fee-free { color: #16a34a !important; font-weight: 700 !important; }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

/* ================================================================
   LOANS PAGE — 3-column: sidebar | content | sidebar
   ================================================================ */
.lpage-layout {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 20px;
  align-items: start;
}

.lpage-main { min-width: 0; }

.lpage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 76px;
}

.lpage-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.lpage-widget-title {
  font-size: 12px; font-weight: 700; color: #0f172a;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 7px;
}
.lpage-widget-title i { color: #2563eb; }

/* Why Harmony */
.lpage-why {
  background: linear-gradient(135deg, #0A2463, #0A4FD4) !important;
  border: none !important;
}
.lpage-why-icon { font-size: 28px; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.lpage-why-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.lpage-why-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.85);
  padding: 5px 0;
}
.lpage-why-item i { color: rgba(255,255,255,.7); width: 16px; text-align: center; }

.lpage-tip-item {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: #475569; padding: 5px 0;
  line-height: 1.5;
}
.lpage-tip-item i { flex-shrink: 0; margin-top: 2px; }

.lpage-legal { border-left: 3px solid #0A4FD4 !important; }
.lpage-legal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #EFF6FF; color: #1d4ed8;
  font-size: 11px; font-weight: 600;
  border-radius: 8px; padding: 5px 10px;
  margin: 4px 4px 0 0;
}

.lpage-elig-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #374151; padding: 5px 0;
}

.lpage-contact-box { background: #f8fafc !important; }

/* ================================================================
   PROFILE PAGE — centered, wide content
   ================================================================ */
.bank-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

/* ================================================================
   DESKTOP — wider Dashboard sections
   ================================================================ */
.db-promo-strip,
.db-news-strip { padding: 0 32px 24px; }

.db-lifestyle-banner { margin: 0 32px 24px; }

.db-compliance-strip { padding: 0 32px; }

/* Dashboard content area wider */
.db-content-area { padding: 16px 32px 20px; }

/* ================================================================
   MEDIA QUERIES — Progressive narrowing
   ================================================================ */

/* 1400px+ — Extra wide: максимально широкие сайдбары */
@media (min-width: 1400px) {
  .transfer-page-grid { grid-template-columns: 300px 1fr 300px; }
  .hpage-layout       { grid-template-columns: 280px 1fr 280px; }
  .cpage-layout       { grid-template-columns: 280px 1fr 280px; }
  .lpage-layout       { grid-template-columns: 280px 1fr 280px; }
}

/* 1280px — Standard desktop: full 3-col */
@media (min-width: 1280px) and (max-width: 1399px) {
  .transfer-page-grid { grid-template-columns: 270px 1fr 270px; }
  .hpage-layout       { grid-template-columns: 250px 1fr 250px; }
  .cpage-layout       { grid-template-columns: 250px 1fr 250px; }
  .lpage-layout       { grid-template-columns: 250px 1fr 250px; }
}

/* 1024px — Medium desktop: слегка уже */
@media (max-width: 1279px) and (min-width: 1024px) {
  .transfer-page-grid { grid-template-columns: 240px 1fr 240px; }
  .hpage-layout       { grid-template-columns: 220px 1fr 220px; }
  .cpage-layout       { grid-template-columns: 220px 1fr 220px; }
  .lpage-layout       { grid-template-columns: 220px 1fr 220px; }
  .lpage-products-row { grid-template-columns: repeat(3, 1fr); }
}

/* 900px — Collapse right sidebars, keep left */
@media (max-width: 1023px) and (min-width: 768px) {
  .transfer-page-grid { grid-template-columns: 220px 1fr; }
  .transfer-page-grid .transfer-sidebar:last-of-type { display: none; }
  .hpage-layout { grid-template-columns: 220px 1fr; }
  .hpage-layout .hpage-sidebar:last-of-type { display: none; }
  .cpage-layout { grid-template-columns: 220px 1fr; }
  .cpage-layout .cpage-sidebar:last-of-type { display: none; }
  .lpage-layout { grid-template-columns: 220px 1fr; }
  .lpage-layout .lpage-sidebar:last-of-type { display: none; }
  .lpage-products-row { grid-template-columns: repeat(3, 1fr); }
  .db-news-grid { grid-template-columns: repeat(2, 1fr); }
  .db-promo-inner { grid-template-columns: repeat(2, 1fr); }
  .sidebar-photo-img-wrap { aspect-ratio: 16/8; }
}

/* 768px — Mobile: all collapse to single column (handled by mobile-bank.css) */
@media (max-width: 767px) {
  .transfer-page-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .transfer-sidebar { position: static; }
  .hpage-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hpage-sidebar { position: static; }
  .cpage-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .cpage-sidebar { position: static; }
  .lpage-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .lpage-sidebar { position: static; }
  .history-layout { grid-template-columns: 1fr; }
  .lpage-products-row { grid-template-columns: repeat(2, 1fr); }
  .db-promo-strip, .db-news-strip { padding: 0 12px 16px; }
  .db-lifestyle-banner { margin: 0 12px 16px; }
  .db-compliance-strip { padding: 0 12px; }
  .db-content-area { padding: 12px 12px 16px; }
}

/* ================================================================
   DESKTOP NAV — wider top-nav items
   ================================================================ */
@media (min-width: 1280px) {
  .bank-nav { padding: 0 40px; }
  .bank-nav-items { gap: 4px; }
}

/* ================================================================
   DASHBOARD — desktop wider layout
   ================================================================ */
@media (min-width: 1280px) {
  .db-hero-section  { padding: 24px 48px 28px; }
  .db-content-area  { padding: 20px 48px 24px; }
  .db-hero-grid     { grid-template-columns: 360px 1fr; gap: 36px; }
  .db-content-grid  { grid-template-columns: 1fr 340px; gap: 18px; }
  .db-promo-strip   { padding: 0 48px 28px; }
  .db-news-strip    { padding: 0 48px 28px; }
  .db-lifestyle-banner { margin: 0 48px 28px; }
  .db-compliance-strip { padding: 0 48px; }
  .db-bankcard      { max-width: 340px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .db-hero-section  { padding: 20px 36px 24px; }
  .db-content-area  { padding: 16px 36px 20px; }
  .db-hero-grid     { grid-template-columns: 320px 1fr; gap: 28px; }
  .db-content-grid  { grid-template-columns: 1fr 300px; gap: 14px; }
  .db-promo-strip   { padding: 0 36px 24px; }
  .db-news-strip    { padding: 0 36px 24px; }
  .db-lifestyle-banner { margin: 0 36px 24px; }
  .db-compliance-strip { padding: 0 36px; }
}

/* ================================================================
   TRANSFER STEPS — desktop wide
   ================================================================ */
@media (min-width: 1024px) {
  .transfer-steps { padding: 16px 32px; }
  .tstep-label { font-size: 14px; }
}

/* ================================================================
   TABLE — desktop optimised
   ================================================================ */
@media (min-width: 1024px) {
  .data-table th, .data-table td { padding: 12px 16px; }
  .table-wrap-bank { border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
}

/* ================================================================
   ABOUT PAGE — wider on large screens
   ================================================================ */
@media (min-width: 1280px) {
  .about-body { max-width: 1280px; padding: 40px 48px; }
  .about-hero { height: 480px; }
  .about-team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .about-stats-row { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .about-section-grid { grid-template-columns: 1fr 340px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .about-body { max-width: 1100px; padding: 36px 36px; }
  .about-hero { height: 420px; }
}

/* ================================================================
   PROFILE PAGE — wider Why+Contact grid on desktop
   ================================================================ */
@media (min-width: 1024px) {
  .profile-bottom-grid {
    grid-template-columns: 3fr 2fr;
    gap: 24px;
  }
  /* Фото в contact card — выше на десктопе */
  .profile-contact-photo-wrap {
    height: 280px;
  }
  /* Why card получает больше места */
  .profile-why-card { padding: 32px; }
  .profile-why-title { font-size: 17px; }
  .profile-why-item strong { font-size: 14px; }
  .profile-why-item p { font-size: 13px; }
}

@media (min-width: 1280px) {
  .profile-contact-photo-wrap { height: 320px; }
  .profile-bottom-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ================================================================
   LOANS photo banner — desktop tall
   ================================================================ */
@media (min-width: 1280px) {
  .lpage-photo-banner { height: 360px; }
  .lpage-photo-title  { font-size: 30px; }
  .lpage-photo-sub    { font-size: 14px; }
  .lpage-photo-overlay { padding: 40px 60px; }
  .lpage-products-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .lpage-product-pill { padding: 18px 20px; }
  .lpp-title { font-size: 14px; }
  .lpp-rate  { font-size: 13px; }
  .lpage-product-pill > i { font-size: 28px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .lpage-photo-banner { height: 300px; }
  .lpage-photo-title  { font-size: 24px; }
  .lpage-products-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

/* ================================================================
   TRANSFER HERO — bigger on large screens
   ================================================================ */
@media (min-width: 1280px) {
  .tpage-hero-banner   { min-height: 220px; }
  .tpage-hero-title    { font-size: 34px; }
  .tpage-hero-content  { padding: 40px 40px 36px; }
  .tpage-hero-img-wrap { width: 360px; }
  .tpage-hero-num      { font-size: 24px; }
}

/* ================================================================
   HISTORY promo strip — bigger on desktop
   ================================================================ */
@media (min-width: 1024px) {
  .hpage-promo-cards { grid-template-columns: repeat(3, 1fr); }
  .hpage-promo-card  { padding: 24px 24px 20px; }
  .hpage-promo-title { font-size: 15px; }
}

/* ================================================================
   LIFESTYLE BANNER — 3-col on big desktop
   ================================================================ */
@media (min-width: 1280px) {
  .db-lifestyle-banner  { grid-template-columns: 1fr 260px 1fr; }
  .db-lifestyle-left,
  .db-lifestyle-right   { height: 300px; }
  .db-lifestyle-center  { width: 260px; }
  .db-ls-num            { font-size: 22px; }
}

/* ================================================================
   SUPPORT PAGE — wider on desktop
   ================================================================ */
@media (min-width: 1024px) {
  #bpage-support { max-width: 1200px !important; padding: 28px 36px !important; }
  .support-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
  }
}

/* ================================================================
   PROFILE LEGAL STRIP — горизонтально на десктопе
   ================================================================ */
@media (min-width: 1024px) {
  .profile-legal-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
    padding: 20px 24px;
  }
}

@media (min-width: 1280px) {
  .profile-legal-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================================
   CARDS PROMO STRIP — красивее на десктопе
   ================================================================ */
@media (min-width: 1024px) {
  .cpage-promo-strip { margin-top: 24px; border-radius: 16px; }
  .cpage-promo-inner { gap: 0; }
  .cpage-promo-item  { padding: 14px 24px; }
  .cpage-promo-icon-wrap { width: 48px; height: 48px; font-size: 18px; border-radius: 12px; }
  .cpage-promo-label { font-size: 13px; }
  .cpage-promo-desc  { font-size: 12px; }
}

/* ================================================================
   HISTORY PROMO — добавляем вертикальный padding на десктопе
   ================================================================ */
@media (min-width: 1024px) {
  .hpage-promo-strip { margin-top: 24px; }
  .hpage-promo-card  { border-radius: 20px; gap: 16px; }
  .hpage-promo-icon  { font-size: 36px; }
  .hpage-promo-sub   { font-size: 12px; }
}

/* ================================================================
   SIDEBAR PHOTO — пропорции на десктопе
   ================================================================ */
@media (min-width: 1024px) {
  .sidebar-photo-img-wrap { aspect-ratio: 16 / 8; }
  .sidebar-photo-body     { padding: 16px 18px 18px; }
  .sidebar-photo-title    { font-size: 14px; }
  .sidebar-photo-text     { font-size: 12px; }
}

@media (min-width: 1280px) {
  .sidebar-photo-img-wrap { aspect-ratio: 3 / 2; }
}

/* ================================================================
   TRANSFER BOTTOM BANNER — шире на десктопе
   ================================================================ */
@media (min-width: 1280px) {
  .tpage-bottom-banner { padding: 24px 32px; }
  .tpage-bottom-title  { font-size: 15px; }
  .tpage-bottom-sub    { font-size: 13px; }
  .tpage-bottom-badge  { font-size: 12px; padding: 6px 16px; }
}

/* ================================================================
   FIX: убираем sticky для сайдбаров чтобы не конфликтовал с контентом
   ================================================================ */
@media (min-width: 1024px) {
  .transfer-sidebar,
  .hpage-sidebar,
  .cpage-sidebar,
  .lpage-sidebar {
    /* Sticky только если контент достаточно длинный */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
  }
  .transfer-sidebar::-webkit-scrollbar,
  .hpage-sidebar::-webkit-scrollbar,
  .cpage-sidebar::-webkit-scrollbar,
  .lpage-sidebar::-webkit-scrollbar {
    width: 4px;
  }
  .transfer-sidebar::-webkit-scrollbar-thumb,
  .hpage-sidebar::-webkit-scrollbar-thumb,
  .cpage-sidebar::-webkit-scrollbar-thumb,
  .lpage-sidebar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
  }
}
