/* ═══════════ RESPONSIVE ═══════════ */
.burger, .m-top, .side-dim { display: none; }
.burger { width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; color: inherit; opacity: .9; }
.burger i { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
body.nav-open .burger i:first-child, body.side-open .m-top .burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
body.nav-open .burger i:last-child, body.side-open .m-top .burger i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ── tablet ≤ 1024 ── */
@media (max-width: 1024px) {
  .wrap, .site-header .inner, .hero .content { padding-left: 24px; padding-right: 24px; }
  section.block { padding: 88px 0; }
  .gnb { gap: 20px; }
  .gnb a { white-space: nowrap; }
  .header-right .pl, .header-right .tel { display: none; }
  .site-header .inner { gap: 24px; }
  .manifesto { grid-template-columns: 1fr; gap: 24px; }
  .m-row { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .two-col { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .apply-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cta-band .wrap { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .top > div:first-child { grid-column: 1 / -1; }
  .hero .side-txt { display: none; }

  /* console: sidebar → drawer */
  .console { grid-template-columns: 1fr; }
  .m-top { display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 70; height: 60px; padding: 0 16px; background: var(--forest); color: #ece6d6; }
  .m-top .logo .txt small { display: none; }
  .m-top .logo .txt b { font-size: 16px; }
  .m-top .logo .mark { width: 28px; height: 28px; font-size: 14px; }
  .m-top .m-tag { margin-left: auto; font-size: 10.5px; letter-spacing: .2em; color: var(--brass-2); }
  .burger.dark { display: flex; color: #ece6d6; width: 36px; height: 36px; }
  .side { position: fixed; z-index: 120; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .35s var(--ease); box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  body.side-open .side { transform: none; }
  .side-dim { position: fixed; inset: 0; z-index: 110; background: rgba(8,20,15,.5); }
  body.side-open .side-dim { display: block; }
  .main { padding: 24px 20px 110px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .split, .split.even { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .login { grid-template-columns: 1fr; }
  .login .art { min-height: 300px; }
  .login .box { padding: 40px 0 80px; }
}

/* ── phone ≤ 760 ── */
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .site-header .inner { height: 64px; gap: 12px; }
  .header-right .tel { display: none; }
  .burger { display: flex; }
  .gnb { position: fixed; inset: 64px 0 auto 0; height: calc(100vh - 64px); background: var(--forest); color: #ece6d6; flex-direction: column; justify-content: flex-start; gap: 0; padding: 18px 24px 40px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
  .gnb a { font-family: var(--serif); font-size: 26px; font-weight: 600; padding: 18px 0; border-bottom: 1px solid rgba(236,230,214,.12); opacity: 1; }
  .gnb a::after { display: none; }
  .gnb a.on { color: var(--brass-2); }
  body.nav-open { overflow: hidden; }
  body.nav-open .gnb { opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open .site-header { background: var(--forest); color: #fff; border-color: transparent; }
  .logo .txt b { font-size: 17px; letter-spacing: .22em; }
  .logo .txt small { font-size: 8px; }
  .logo .mark { width: 30px; height: 30px; font-size: 15px; }

  .hero { height: 92vh; min-height: 620px; }
  .hero .content { bottom: 216px; }
  .hero .kicker { font-size: 16px; }
  .hero h1 { font-size: 34px; margin: 12px 0 14px; }
  .hero p { font-size: 15px; }
  .hero .cta { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .hero .slide-ctl { right: auto; left: 24px; bottom: 170px; font-size: 13px; }
  .hero .slide-ctl .bar { width: 70px; }
  .scorecard .wrap { grid-template-columns: 1fr 1fr; padding: 0; }
  .scorecard .cell { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.12); }
  .scorecard .cell:first-child { display: none; }
  .scorecard .cell:nth-child(2), .scorecard .cell:nth-child(4) { border-left: 0; }
  .scorecard b { font-size: 24px; }

  section.block { padding: 64px 0; }
  .h-section { font-size: 30px; }
  .lead { font-size: 15.5px; }
  .figures { grid-template-columns: 1fr; margin-top: 36px; }
  .figures div { border-right: 0; border-bottom: 1px solid var(--hair); padding: 18px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .figures b { font-size: 40px; }
  .m-row { margin-top: 36px; gap: 56px; }
  .mcard .plate { padding: 20px 22px; border-radius: 16px; }
  .plate .p-name { font-size: 38px; }
  .plate .p-name span { display: block; margin: 8px 0 0; font-size: 13px; }
  .plate .p-no { font-size: 15px; }
  .mcard:hover .plate { transform: none; }
  .mcard .price b { font-size: 32px; }
  .mcard dl { grid-template-columns: 110px 1fr; }
  .mcard .acts { grid-template-columns: 1fr; }
  .g-head { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 8px; margin-top: 28px; }
  .gallery .item, .gallery .item:nth-child(6n+2), .gallery .item:nth-child(6n+3) { grid-column: span 1; grid-row: span 1; }
  .gallery .item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
  .gallery .item .cap { padding: 26px 12px 10px; font-size: 12px; }
  .gallery .item .cap em { display: none; }
  .cta-band .wrap { padding-top: 64px; padding-bottom: 64px; }
  .cta-tile { padding: 16px 18px; }

  .page-head { padding: 120px 0 44px; }
  .crumb { margin-bottom: 16px; }
  .sc-table { display: block; overflow-x: auto; }
  .sc-table th, .sc-table td { padding: 12px 14px; font-size: 13px; min-width: 150px; }
  .sc-table tbody th { min-width: 120px; }
  .tbl-plain { display: block; overflow-x: auto; white-space: nowrap; }
  .docs { grid-template-columns: 1fr; }
  .docs div, .docs div + div { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--hair); }
  .steps { overflow-x: auto; }
  .steps div { min-width: 76px; font-size: 12px; }
  .form-card { padding: 22px 18px; border-radius: 14px; }
  .grid2, .grid3, .choice { grid-template-columns: 1fr; }
  .grid2 .field[style*="grid-column"] { grid-column: auto !important; }
  .summary { padding: 22px; }
  .summary .mini { max-width: 260px; }
  .done-hero { padding: 120px 0 30px; }
  .site-footer { padding: 56px 0 100px; }
  .site-footer .top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .big { font-size: 34px; }
  .site-footer .bottom { flex-direction: column; gap: 8px; }

  .cc-fab { right: 14px; bottom: 16px; padding: 8px 16px 8px 8px; }
  .cc-fab .ico { width: 38px; height: 38px; }
  .cc-label b { font-size: 14.5px; }
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; }
  .proto-bar { left: 10px; bottom: 18px; transform: scale(.9); transform-origin: left bottom; }
  body.nav-open .proto-bar, body.side-open .proto-bar { display: none; }

  /* console */
  .main { padding: 18px 14px 100px; }
  .main-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; }
  .main-head h1 { font-size: 24px; }
  .row-actions { flex-wrap: wrap; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px 16px; border-radius: 14px; }
  .kpi b { font-size: 26px; }
  .card { padding: 18px 16px; border-radius: 14px; }
  .card .ch, .card > h3 { flex-wrap: wrap; font-size: 16px; }
  .card.flush > h3 { padding: 16px 16px 4px; }
  .toolbar { padding: 12px 16px; }
  .toolbar .input { flex: 1 1 140px; }
  .tbl td:first-child, .tbl th:first-child { padding-left: 16px; }
  /* table rows → stacked cards */
  .console .tbl, .console .tbl tbody { display: block; }
  .console .tbl tr:has(th) { display: none; }
  .console .tbl tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
  .console .tbl td { display: block; border: 0; padding: 0 !important; white-space: normal; font-size: 13px; }
  .console .tbl td:first-child { flex-basis: 100%; font-weight: 700; font-size: 13.5px; }
  .console .tbl td:last-child:not(:first-child) { margin-left: auto; }
  .console .tbl td.num { text-align: left; }
  .console .tbl td:empty { display: none; }
  .console .tbl td .sub { display: inline; margin-left: 4px; }
  .console .tbl td.num[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 500; letter-spacing: .02em; }
  .console .tbl td.num { min-width: 64px; }
  .kpi b { white-space: normal; font-size: 22px; }
  .region-wrap { grid-template-columns: 1fr; }
  .tilemap { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 62px; max-width: 320px; }
  .pyramid { grid-template-columns: 1fr 64px 1fr; }
  .age-insight div b { font-size: 20px; }
  .dup-grid { grid-template-columns: 1fr; gap: 26px; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .inv-grid { grid-template-columns: repeat(10, 1fr); }
  .tree .node { padding: 12px 16px; flex-wrap: wrap; }
  .tree .node.l1 { padding-left: 30px; }
  .tree .node.l2 { padding-left: 46px; }
  .bars .row { grid-template-columns: 78px 1fr 40px; }
  .steps-h div { font-size: 12px; }
  .login .art { padding: 28px 22px; min-height: 260px; }
  .login .art h2 { font-size: 28px; }
  .login .box { width: auto; padding: 32px 22px 80px; }
}
