/* Stingray site grid — one content edge and one chrome gutter on every page.
   Content edge: 4.2vw (60px at 1440), never under 20px; up to 96px on very wide screens; the content box stops growing at 2000px.
   Chrome gutter (fixed buttons, page index): 28px; 20px on phones. */
:root{--edge:max(clamp(20px,4.2vw,96px),calc((100vw - 2000px) / 2));--chrome:28px}
@media(max-width:640px){:root{--edge:20px;--chrome:20px}}

/* every page container, header and footer sit on --edge */
html body .wrap,html body .nav-in{max-width:none;padding-left:var(--edge);padding-right:var(--edge)}
html body .home .top .wrap,html body .cover .top .wrap{padding-left:var(--edge);padding-right:var(--edge)}

/* ORIGAMI and conversion pages: sections padded around a body */
html body section.sec:has(>.body),html body section.cover:has(>.body){padding-left:var(--edge);padding-right:var(--edge)}
html body section.sec>.body,html body section.cover>.body{max-width:none}

/* display type: no hyphenation, no breaks inside words — long words are fitted by ux.js instead */
h1,h2,h3,.cw,.num,.ct,.jt{-webkit-hyphens:manual!important;hyphens:manual!important;word-break:normal!important;overflow-wrap:break-word!important}

/* fixed controls sit in the chrome gutter */
html body #sy-c.sy-fixed{right:var(--chrome);bottom:var(--chrome)}
html[dir=rtl] body #sy-c.sy-fixed{right:auto;left:var(--chrome)}
@media(max-width:1100px){html body #sy-c{right:var(--chrome);bottom:var(--chrome)}html[dir=rtl] body #sy-c{right:auto;left:var(--chrome)}}
html body #sy-top{left:var(--chrome);bottom:var(--chrome)}
html[dir=rtl] body #sy-top{left:auto;right:var(--chrome)}

/* the last footer on a page clears the fixed controls, so nothing in it sits under Ask Marina or ↑ */
html body footer:last-of-type,html body .foot{padding-bottom:calc(var(--chrome) + 64px)}
html body .foot .wrap{flex-wrap:wrap;row-gap:14px}

/* current section in the header menu */
.nav-links a.on{color:var(--accent);font-weight:650}

/* phones and tablets: one header row — mark, Menu, Talk to us; the menu opens below the header */
.nav-m{display:none}
@media(max-width:1240px){
  html body header.nav{position:sticky}
  html body .nav-in>.nav-links{display:none}
  html body .nav-in{flex-wrap:nowrap;justify-content:flex-start;gap:10px}
  html body .nav-in>.lang{display:none}
  html body .nav-in .logo{margin-inline-end:auto}
  .nav-m{display:block}
  .nav-m>summary{list-style:none;cursor:pointer;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:8px 12px;border:1px solid #D8DEDE;color:#101416;white-space:nowrap}
  .nav-m>summary::-webkit-details-marker{display:none}
  .nav-m[open]>summary{border-color:#004850;color:#004850}
  .nav-m-p{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid #D8DEDE;box-shadow:0 14px 28px rgba(0,0,0,.10);padding:6px var(--edge) 18px;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px);overflow:auto}
  .nav-m-p a{display:block;padding:12px 0;border-bottom:1px solid #EBEBEB;color:#101416;text-decoration:none;font-size:16px}
  .nav-m-p a b{color:#004850;font-weight:700;font-size:12px;letter-spacing:.08em;margin-inline-end:8px}
  .nav-m-p a.on{color:#004850;font-weight:650}
  .nav-m-lang{padding-top:16px;font-size:13px;letter-spacing:.08em;color:#4A5558}
  .nav-m-lang a{display:inline;border:0;padding:0;font-size:13px;color:inherit}
  .nav-m-lang b{color:#101416}
}
@media(max-width:400px){html body .nav-in .logo svg{height:26px}}
@media(max-width:430px){html body header.nav .nav-in{flex-wrap:nowrap;row-gap:0}html body header.nav .nav-in>.logo{flex:0 1 auto;margin-inline-end:auto}}

/* desktop header with ten menu items: tighten before anything overflows */
@media(min-width:1241px) and (max-width:1560px){html body .nav-links{gap:14px;font-size:12.5px}html body .nav-links a[href$="#site"]{display:none}html body .nav-in{gap:16px}}
@media(min-width:1241px) and (max-width:1340px){html body .nav-links a.nav-home{display:none}html body .nav-in>.lang{font-size:10.5px;letter-spacing:.04em}html body .nav-links{gap:12px;font-size:12px}}
@media(min-width:1241px) and (max-width:1440px){html body .nav-links a b{display:none}}

/* 28 Nov 2026: «Инвестору» joined the menu; the logo already leads home, so «Home» steps aside on mid-size screens */
@media(min-width:1241px) and (max-width:1560px){html body .nav-links a.nav-home{display:none}}
