/* Pegas design polish — enhancement layer over the prebuilt bundle.
   Tokens: navy #0d3472 (--pegas), ink #0b1f3a, hairline var(--line). Font: Onest (Cyrillic). */
@font-face{font-family:Onest;font-style:normal;font-weight:100 900;font-display:swap;src:url("/fonts/Onest.ttf") format("truetype")}
:root{--pg-ink:#0b1f3a;--pg-text2:#475467;--pg-focus:#1d6fe0;--pg-r:14px;--pg-shadow:0 2px 12px rgba(13,52,114,.08)}
html{-webkit-text-size-adjust:100%}
body,button,input,select,textarea{font-family:"Onest",Inter,-apple-system,"Segoe UI",Arial,sans-serif!important}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3{text-wrap:balance;letter-spacing:-.015em}
h1,h2,h3,.hero-title{font-weight:800!important}
p{text-wrap:pretty}
.price-value,.price-table td{font-variant-numeric:tabular-nums}

/* focus + interaction */
:focus-visible{outline:3px solid var(--pg-focus)!important;outline-offset:2px!important}
a,button,[role=tab],summary,label{touch-action:manipulation}
button{min-width:44px;min-height:44px}
nav a{min-height:44px}
footer a{display:inline-flex;align-items:center;min-height:44px}
button:not(:disabled),a[href]{transition:background-color .15s,box-shadow .15s,transform .15s,border-color .15s,color .15s}
button:not(:disabled):active,.btn-primary:active,.btn-soft:active{transform:translateY(1px) scale(.99)}
button:disabled,[aria-disabled=true]{cursor:not-allowed;opacity:.6}
input,select,textarea{min-height:48px;font-size:16px!important}
textarea{min-height:96px}
input:focus,select:focus,textarea:focus{border-color:var(--pg-focus)!important;box-shadow:0 0 0 3px rgba(29,111,224,.22)!important}
input[aria-invalid=true],textarea[aria-invalid=true]{border-color:#b42318!important;box-shadow:0 0 0 3px rgba(180,35,24,.12)!important}
input[readonly]{background:#f3f6fa!important}

/* calmer surfaces: less glass, less shadow */
.glass-pill{box-shadow:var(--pg-shadow)!important}
.glass-pill:before{display:none!important}
.glass-card,.card{box-shadow:var(--pg-shadow)!important}
.desktop-header{border-bottom:1px solid var(--line);backdrop-filter:none!important}
.desktop-header nav{background:#fff!important;box-shadow:var(--pg-shadow)!important;border-radius:16px!important}
.desktop-header nav>div:first-child{display:none!important}
.desktop-header nav a{box-shadow:none!important}
.btn-primary,.btn-soft{border-radius:12px!important;box-shadow:none!important}
.btn-primary{background:var(--pegas)}
.btn-primary:hover{filter:brightness(1.12)}
.btn-soft{border:1px solid var(--line)!important}
.btn-soft:hover{border-color:var(--pegas)!important}
.pegas-media-note,.pegas-fleet-caption{color:var(--pg-text2)}

/* HERO: headline + offer on one band, panorama below (home) */
.hero-section{background:linear-gradient(180deg,#fff 0,#f4f7fb 100%)!important}
.hero-section .resp-hero{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)!important;gap:20px 56px!important;align-items:center!important}
.hero-section .resp-hero>div:first-child{display:contents}
.hero-section .resp-hero .hero-title{grid-column:1;grid-row:1/span 3;margin:0!important;font-size:clamp(40px,5.6vw,76px)!important;line-height:1.02!important;color:var(--pg-ink)}
.hero-section .resp-hero .hero-subtitle,.hero-section .resp-hero .hero-desc,.hero-section .resp-hero .hero-actions{grid-column:2}
.hero-section .resp-hero .hero-subtitle{margin:0!important;color:var(--pg-ink)!important;font-size:19px!important}
.hero-section .resp-hero .hero-desc{margin:0!important;color:var(--pg-text2)!important;font-size:16px!important}
.hero-section .resp-hero .hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-section .resp-hero>.resp-hide-mobile{display:none!important}
.pegas-panorama{position:relative;margin:0;border-radius:20px;overflow:hidden;background:#cfd8e6}
.pegas-panorama picture{display:block}
.pegas-panorama img{display:block;width:100%;height:auto;aspect-ratio:3/1;object-fit:cover;border-radius:0}
.pegas-panorama-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px;padding:12px 18px;background:#fff}
.pegas-panorama-links{display:flex;flex-wrap:wrap;gap:8px}
.pegas-panorama-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:#f3f6fa;color:var(--pg-ink);font-weight:700;font-size:14px;text-decoration:none}
.pegas-panorama-links a:hover{background:#fff;box-shadow:0 0 0 2px var(--pegas)}
.pegas-fleet-caption{margin:0;color:var(--pg-text2);font-size:12px;line-height:1.4;max-width:34ch;text-align:right}
.hero-section .pegas-panorama{margin-bottom:0}
.hero-section{padding-bottom:0!important}
.pegas-panorama-wrap{max-width:1260px;margin:0 auto;padding:0 28px;box-sizing:border-box}
@media(max-width:900px){
 .hero-section .resp-hero{grid-template-columns:1fr!important;gap:14px!important}
 .hero-section .resp-hero .hero-title{grid-row:auto;grid-column:1;font-size:clamp(34px,10vw,48px)!important}
 .hero-section .resp-hero .hero-subtitle,.hero-section .resp-hero .hero-desc,.hero-section .resp-hero .hero-actions{grid-column:1}
}
@media(max-width:720px){
 .pegas-panorama-wrap{padding:0 14px}
 .pegas-panorama{border-radius:16px}
 .pegas-panorama img{aspect-ratio:16/10;object-position:0% 50%}
 .pegas-panorama-links{display:none}
 .pegas-panorama{overflow:visible;background:none}
 .pegas-panorama img{border-radius:16px}
 .pegas-panorama-bar{position:static;padding:10px 2px 0}
 .pegas-fleet-caption{text-align:left;max-width:none;font-size:12px;color:var(--pg-text2)}
 .pegas-panorama-links a{min-height:44px;padding:0 14px}
 .hero-section .hero-actions .hero-btn{flex:1 1 100%;justify-content:center}
}

/* tables: scroll inside, never the page */
.pegas-scroll-x{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
.pegas-scroll-x .price-table{min-width:0}
.price-value{white-space:normal}
.pegas-document-request{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:10px;font-size:14px;line-height:1.4;text-align:center;font-weight:600;color:var(--pegas);text-decoration:underline;text-underline-offset:3px}

/* modal (order form) */
body.pegas-modal-open{overflow:hidden}
[data-pegas-modal]{overflow-y:auto!important;backdrop-filter:none!important;align-items:safe center!important;overscroll-behavior:contain}
[data-pegas-modal]>div{max-height:calc(100dvh - 40px);overflow-y:auto!important;overscroll-behavior:contain}
[data-pegas-modal] label{color:var(--pg-text2)!important}
.pegas-field-error{display:block;margin:6px 0 0;color:#b42318!important;font-size:13px!important;font-weight:600}
[data-pegas-modal] button[aria-label="Закрыть"]{min-width:44px;min-height:44px}
.pegas-order-draft{padding:16px;background:#f3f6fa;border:1px solid var(--line);border-radius:12px;color:var(--pg-ink)}
.pegas-order-draft p{margin:0 0 10px;font-size:14px;line-height:1.5}
.pegas-order-draft summary{min-height:44px;cursor:pointer;font-size:14px;font-weight:700;display:list-item}
.pegas-order-draft textarea{width:100%;height:144px;box-sizing:border-box;margin:8px 0 12px;border:1px solid var(--line);border-radius:8px;padding:10px;font-size:14px!important;line-height:1.5}
.pegas-order-draft button{width:100%;min-height:44px;margin-top:8px}
.pegas-order-draft .pegas-copy-result{margin-top:10px;font-size:13px}

/* fixed bars: safe-area + clearance */
.mobile-tab-bar{padding-bottom:env(safe-area-inset-bottom)!important;box-shadow:0 -1px 0 var(--line)!important}
.mobile-tab-bar span{font-size:11px!important}
.mobile-bottom-spacer{height:calc(76px + env(safe-area-inset-bottom))!important}
.mobile-header{padding-top:max(8px,env(safe-area-inset-top))!important}
.mobile-header a,.mobile-header button{min-width:44px;min-height:44px}
.mobile-header a[aria-label]{width:44px!important;height:44px!important}
.mobile-header button{height:44px!important}
@media(max-width:768px){main section{scroll-margin-top:72px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
