.rail{gap:20px;overflow-y:auto;overscroll-behavior:contain}
.rail-nav{gap:2px}
.rail-nav a{min-height:44px;padding:8px 12px;line-height:1.25;border-radius:12px}
.rail-contact{margin-top:8px}
.rail-bottom{margin-top:auto}
.mobile-menu nav{max-height:min(70vh,640px);overflow-y:auto}
.mobile-menu nav a>span:first-child{display:none}
@media(max-width:900px){.rail{overflow:visible}.mobile-menu nav{max-height:min(75vh,640px)}}
.mobile-menu-panel{position:relative}
/* Клавиатурный переход виден поверх липкой мобильной шапки. */
.skip{position:fixed;z-index:40}
.mobile-menu-close{display:none}
.round3-gallery-dialog{width:min(96vw,1200px);max-width:none;max-height:96dvh;padding:24px;border:0;border-radius:var(--radius-card);background:var(--surface);color:var(--ink)}
.round3-gallery-dialog::backdrop{background:var(--round3-dialog-backdrop,rgba(0,0,0,.78))}
.round3-gallery-dialog-image{display:block;max-width:100%;max-height:calc(96dvh - 96px);margin:auto;object-fit:contain;cursor:zoom-in}
.round3-gallery-dialog-image.is-zoomed{max-width:none;max-height:none;cursor:zoom-out}
.round3-gallery-dialog-caption{margin:16px 0 0;color:var(--muted);text-align:center}
.round3-gallery-close{display:block;min-height:48px;padding:8px 16px;margin-left:auto;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font:inherit}
.round3-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.round3-gallery-controls button{min-width:48px;min-height:48px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--paper);color:var(--ink);font:inherit}
.round3-gallery-count{color:var(--muted);font-size:14px}
.round3-gallery-all{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;color:var(--brand);font-weight:600}
.round3-load-sentinel{display:block;height:1px}
.mobile-header-phone{display:none}
.import-price-note{margin-top:8px;color:var(--muted);font-size:16px}
@media(max-width:900px){.rail-top{display:flex;align-items:center;justify-content:space-between}.rail-top .mobile-menu{order:-1}.mobile-header-phone{display:flex;align-items:center;justify-content:center;min-height:48px;max-width:96px;padding:8px;color:var(--brand);font-size:16px;font-weight:600}}
.round3-car-layout .round3-form-section{margin-top:24px}
.round3-car-layout .round3-form-section{display:block;padding:0;background:transparent;box-shadow:none}
.round3-car-layout .round3-form-section>div:first-child{margin-bottom:12px}
.round3-car-layout .round3-form-section>div:first-child>p:last-child{margin-top:8px}
.round3-car-layout .round3-form-card{background:var(--surface);box-shadow:var(--shadow-panel)}
.round3-car-layout>div{min-width:0}
.round3-gallery .round3-thumbs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:8px;scroll-snap-type:x mandatory}
.round3-gallery .round3-thumbs a{flex:0 0 clamp(96px,18vw,160px);scroll-snap-align:start}
@media(max-width:700px){.round3-gallery .round3-thumbs a{flex-basis:112px}footer{padding:24px;background:var(--surface);border-radius:var(--radius-card);box-shadow:var(--shadow-panel)}}
@media(max-width:640px){.rail-top{gap:8px}.rail-top .logo{width:136px;max-width:100%;min-width:0;font-size:28px}.rail-top .logo img{width:136px;max-width:100%;max-height:40px}.rail-top .logo span{display:none}.mobile-header-phone{max-width:80px;padding-inline:0}}
@media(max-width:900px){.rail{position:sticky;top:0;z-index:10}.mobile-menu-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--shadow-hover)}.mobile-menu-close{display:block;width:100%;min-height:48px;margin-bottom:8px;padding:8px 16px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--paper);color:var(--ink);font:inherit;text-align:left}.mobile-menu nav{position:static;max-height:min(70vh,640px);padding:0;border:0;box-shadow:none}}
@media(max-width:640px){
  .rail-column{position:sticky;top:0;z-index:30;box-shadow:var(--shadow-panel)}
  .rail{position:static;padding:8px 16px}
  .rail-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:56px;gap:8px}
  .rail-top .mobile-menu{grid-column:1;grid-row:1;justify-self:start}
  .rail-top .logo{grid-column:2;grid-row:1;justify-self:center;width:136px}
  .rail-top .mobile-header-phone{grid-column:3;grid-row:1;justify-self:end}
  .mobile-menu-panel{top:100%;left:8px;right:8px}
  html{scroll-padding-top:80px}
  .mobile-menu summary{gap:6px}
  .mobile-menu summary svg{width:18px;height:18px}
  .mobile-menu-close{display:flex;align-items:center;justify-content:space-between}
  .mobile-menu-close span{font-size:24px;line-height:1}
  .mobile-menu summary{width:48px;justify-content:center;padding:8px}
  .mobile-menu-close{width:48px;justify-content:center;margin-bottom:8px;padding:0}
  .mobile-header-phone{width:48px;min-width:48px;max-width:48px}
  .mobile-header-phone svg{width:22px;height:22px}
  .round3-gallery-dialog{padding:12px;width:100vw;max-height:100dvh;border-radius:0}
  .round3-gallery-dialog-image{max-height:calc(100dvh - 150px)}
}
