/* PinPilot unified site styles — single standard for all inner pages */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #ffffff;
    color: #0E1424;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.doc { padding-top: 36px; padding-bottom: 56px; }
.doc h1 { margin-top: 0; }
.doc .meta { color: #5A6478; font-size: 14px; }
.doc ul + p, .doc ol + p, .doc table + p { margin-top: 14px; }
.doc p + ul, .doc p + ol { margin-top: 10px; }
.doc a { text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { text-decoration: underline; }
.doc .footer a { color: inherit; }
h1 { font-size: 32px; font-weight: 800; line-height: 1.25; color: #0E1424; margin: 0 0 12px; }
h2 { font-size: 22px; font-weight: 700; line-height: 1.3; color: #0E1424; margin: 26px 0 10px; }
h3 { font-size: 18px; font-weight: 700; color: #0E1424; margin: 20px 0 8px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: #E60023; text-decoration: none; }
a:hover { color: #C5001E; }
img { max-width: 100%; height: auto; }
hr { border: none; border-top: 1px solid #E8EAF1; margin: 28px 0; }
code { background: #F5F6FA; border: 1px solid #E8EAF1; border-radius: 6px; padding: 1px 6px; font-size: 14px; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; }
th, td { border: 1px solid #E8EAF1; padding: 8px 12px; text-align: left; font-size: 14.5px; }
th { background: #F7F8FB; }

nav { position: sticky; top: 0; z-index: 1000; background: #ffffff; border-bottom: 1px solid #E8EAF1; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #0E1424; font-weight: 800; font-size: 22px; }
.logo img { height: 32px; width: auto; }
.logo:hover { color: #0E1424; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: #5A6478; transition: color .15s; }
.nav-links a:hover { color: #E60023; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 100; }
.hamburger span { display: block; width: 22px; height: 2px; background: #0E1424; margin: 5px 0; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Language switcher — ставится в .nav-right, вне .nav-links, чтобы не прятаться в свёрнутом меню */
.nav-inner > .nav-links { margin-left: auto; }
.nav-right { display: flex; align-items: center; flex-shrink: 0; margin-left: 22px; }
.lang-dd { position: relative; }
.lang-dd-btn { display: flex; gap: 6px; align-items: center; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 700; color: #0E1424; padding: 0; }
.lang-dd-btn .lang-arrow { font-size: 10px; color: #5A6478; transition: transform .2s; }
.lang-dd.open .lang-dd-btn .lang-arrow { transform: rotate(180deg); }
.lang-dd-list { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid #E8EAF1; border-radius: 12px; box-shadow: 0 12px 30px rgba(11,16,32,.14); padding: 6px; min-width: 110px; z-index: 200; }
.lang-dd.open .lang-dd-list { display: block; }
.lang-dd-list a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 13.5px; font-weight: 500; color: #5A6478; white-space: nowrap; }
.lang-dd-list a:hover { background: #F6F7FC; color: #E60023; }
.lang-dd-list a.active { color: #E60023; font-weight: 700; }

footer { background: #F7F8FB; color: #5A6478; padding: 40px 0 32px; text-align: center; }
footer .f-links { margin-bottom: 10px; }
footer a { color: #5A6478; text-decoration: none; font-size: 13.5px; }
footer a:hover { color: #E60023; }
footer .f-links a + a::before { content: "·"; margin: 0 10px; color: #A8B0C0; }
footer p { font-size: 12.5px; margin-top: 4px; }

@media (max-width: 768px) {
    .hamburger { display: block !important; }
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #ffffff; flex-direction: column; padding: 8px 24px 16px; gap: 0; border-bottom: 1px solid #E8EAF1; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid #EFF1F6; font-size: 16px; }
    .nav-links a:last-child { border-bottom: none; }
    .hamburger { margin-left: auto; }
    .nav-right { margin-left: 14px; }
    .lang-dd-list { position: fixed; top: 64px; left: 0; right: 0; background: #fff; border: none; border-bottom: 1px solid #E8EAF1; box-shadow: 0 8px 24px rgba(0,0,0,0.1); padding: 12px 24px; min-width: 0; border-radius: 0; }
    .lang-dd.open .lang-dd-list { display: flex; gap: 8px; align-items: center; justify-content: center; }
    .lang-dd-list a { padding: 8px 14px; font-size: 14px; border: 1px solid #E8EAF1; border-radius: 10px; }
    .lang-dd-btn .lang-cur, .lang-dd-btn .lang-arrow { display: none; }
    h1 { font-size: 26px; }
    h2 { font-size: 19px; }
}