/* Общая навигация сайта (шапка, «Ещё по теме», подвал для отраслевых страниц).
   Источник: /root/sites/pages-src/site-nav.js · 01.10.2026.
   Все правила под .sn-* и с явными значениями: страницы из макетов (автосервис,
   стройка) несут свои глобальные стили, они не должны перекрашивать навигацию. */
.sn-h, .sn-h *, .sn-more, .sn-more *, .sn-foot, .sn-foot * { box-sizing: border-box; }
.sn-h { position: sticky; top: 0; z-index: 900; background: rgba(244,243,239,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid #d3d4ca; font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif; color: #151714; font-size: 14px; line-height: 1.3; letter-spacing: normal; text-transform: none; text-align: left; }
.sn-h a { color: inherit; text-decoration: none; }
.sn-in { max-width: 1416px; margin: 0 auto; padding: 0 clamp(16px,4vw,48px); min-height: clamp(64px,7vw,78px); display: flex; align-items: center; gap: clamp(12px,1.8vw,24px); }
.sn-logo { display: inline-flex; flex: 0 0 auto; }
.sn-logo img { display: block; height: clamp(34px,3.6vw,48px); width: auto; max-width: none; margin: 0; }
.sn-nav { display: flex; align-items: center; gap: clamp(10px,1.8vw,26px); margin-left: auto; }
.sn-top, .sn-dd > summary { padding: 10px 0; border-bottom: 3px solid transparent; cursor: pointer; font-size: 14px; font-weight: 400; white-space: nowrap; transition: border-color .2s; background: none; }
.sn-top:hover, .sn-dd > summary:hover, .sn-top.sn-on, .sn-dd.sn-on > summary { border-bottom-color: #9fb920; }
.sn-dd { position: relative; margin: 0; padding: 0; border: 0; }
.sn-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.sn-dd > summary::-webkit-details-marker { display: none; }
.sn-dd > summary::marker { content: ""; }
.sn-chev { width: 11px; height: 11px; transition: transform .2s; }
.sn-dd[open] .sn-chev { transform: rotate(180deg); }
.sn-pop { position: absolute; top: calc(100% + 10px); left: -18px; min-width: 300px; background: #fbfbf7; border: 1px solid #d3d4ca; box-shadow: 0 24px 50px -24px rgba(40,46,30,.35); padding: 8px; display: grid; gap: 2px; z-index: 910; }
.sn-pop a, .sn-panel > a:not(.sn-cta) { display: grid; gap: 2px; padding: 9px 12px; border-radius: 3px; transition: background .15s; }
.sn-pop a:hover, .sn-panel > a:not(.sn-cta):hover { background: #eceee4; }
.sn-pop a b, .sn-panel a b { font-weight: 600; font-size: 14px; }
.sn-pop a small, .sn-panel a small { font-size: 12px; color: #6d7461; }
.sn-pop a[aria-current="page"], .sn-panel a[aria-current="page"] { background: #d5fa36; }
.sn-pop a.sn-all { border-top: 1px solid #e1e2d8; margin-top: 4px; padding-top: 11px; border-radius: 0; }
.sn-cont { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.sn-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; padding: 10px 4px; }
.sn-ic { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
.sn-ic svg { width: 34px; height: 34px; display: block; }
.sn-ic:hover { transform: translateY(-2px); }
.sn-cta { flex: 0 0 auto; min-height: 46px; padding: 12px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; background: #151714; color: #f4f3ef !important; font-weight: 500; font-size: 14px; border-radius: 3px; white-space: nowrap; transition: background .2s; }
.sn-cta:hover { background: #33382a; }
.sn-cta span { font-size: 20px; line-height: 1; }
.sn-burger { display: none; position: static; }
.sn-burger > summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; border: 1px solid #c9cbbf; border-radius: 3px; background: #fbfbf7; }
.sn-burger > summary::-webkit-details-marker { display: none; }
.sn-burger > summary::marker { content: ""; }
.sn-burger > summary i { display: block; width: 20px; height: 2px; background: #151714; transition: transform .2s, opacity .2s; }
.sn-burger[open] > summary i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sn-burger[open] > summary i:nth-child(2) { opacity: 0; }
.sn-burger[open] > summary i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sn-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 80px); overflow-y: auto; background: #f4f3ef; border-top: 1px solid #d3d4ca; padding: 14px 16px 28px; display: grid; gap: 2px; box-shadow: 0 30px 60px -30px rgba(40,46,30,.4); z-index: 920; }
.sn-cap { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: #6d7461; font-weight: 600; margin: 12px 12px 4px; }
.sn-panel .sn-all b { font-weight: 600; }
.sn-row { display: flex; gap: 10px; margin: 12px 0; }
.sn-row a { flex: 1; text-align: center; padding: 12px; border: 1px solid #c9cbbf; border-radius: 3px; font-weight: 600; }
.sn-cta-m { width: 100%; }
@media (max-width: 1180px) { .sn-phone span { display: none; } .sn-phone { padding: 10px; border: 1px solid #c9cbbf; border-radius: 50%; width: 38px; height: 38px; justify-content: center; } }
@media (max-width: 960px) {
  .sn-nav, .sn-in > .sn-cta { display: none; }
  .sn-burger { display: block; }
  .sn-cont { margin-left: auto; }
}
@media (max-width: 380px) { .sn-ic { width: 34px; height: 34px; } .sn-ic svg { width: 30px; height: 30px; } .sn-cont { gap: 4px; } }

/* «Ещё по теме» внизу отраслевых страниц */
.sn-more { background: #eceee4; border-top: 1px solid #d3d4ca; font-family: "Golos Text", system-ui, sans-serif; color: #151714; }
.sn-more-in { max-width: 1416px; margin: 0 auto; padding: clamp(40px,6vw,72px) clamp(16px,4vw,48px); display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px 48px; }
.sn-more-in > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; align-content: start; }
.sn-more-in > div:first-child { grid-template-columns: 1fr; }
.sn-eb { grid-column: 1 / -1; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: #4d5345; margin-bottom: 4px; }
.sn-more a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 14px 16px; background: #fbfbf7; border: 1px solid #d3d4ca; color: #151714; text-decoration: none; transition: border-color .2s, transform .2s; }
.sn-more a:hover { border-color: #151714; transform: translateY(-2px); }
.sn-more a b { font-size: 15px; font-weight: 600; }
.sn-more a small { grid-column: 1; font-size: 12.5px; color: #6d7461; }
.sn-more a i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 18px; }
@media (max-width: 860px) { .sn-more-in { grid-template-columns: 1fr; } }

/* Подвал для отраслевых страниц (копия правил .sf из styles.css под обёрткой) */
.sn-foot { background: #151714; color: #f4f3ef; font-family: "Golos Text", system-ui, sans-serif; font-size: 14px; line-height: 1.4; text-align: left; }
.sn-foot-in { max-width: 1416px; margin: 0 auto; padding: 0 clamp(16px,4vw,48px); }
.sn-foot a { color: #d6dccb; text-decoration: none; }
.sn-foot .sf { border-top: 0; padding: 44px 0 28px; }
.sn-foot .sf-top { display: grid; grid-template-columns: minmax(240px,1.5fr) repeat(4, minmax(0,1fr)); gap: 36px 32px; align-items: start; }
.sn-foot .sf-logo img { display: block; height: clamp(34px,3.6vw,46px); width: auto; max-width: none; }
.sn-foot .sf-brand p { margin: 16px 0 22px; font-size: 13px; line-height: 1.6; color: #9aa58a; max-width: 280px; }
.sn-foot .sf-col { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.sn-foot .sf-col b { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #d5fa36; margin-bottom: 4px; }
.sn-foot .sf-col a { line-height: 1.35; transition: color .2s; }
.sn-foot .sf-col a:hover, .sn-foot .ftr-contacts a:hover { color: #d5fa36; }
.sn-foot .sf-bottom { display: flex; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; font-size: 11px; color: #9aa58a; margin-top: 44px; padding-top: 22px; border-top: 1px solid #2b2e27; padding-bottom: 50px; }
.sn-foot .sf-legal { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.sn-foot .sf-legal a, .sn-foot .sf-legal button { font-size: 11px; color: inherit; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.sn-foot .ftr-contacts svg { flex: 0 0 auto; }
@media (max-width: 1100px) { .sn-foot .sf-top { grid-template-columns: repeat(4, minmax(0,1fr)); } .sn-foot .sf-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: flex-start; } .sn-foot .sf-brand p { margin: 0; } }
@media (max-width: 700px) { .sn-foot .sf-top { grid-template-columns: 1fr 1fr; gap: 30px 20px; } .sn-foot .sf-brand { flex-direction: column; } }
/* Защита иконок от глобального svg{stroke…} в стилях макетов (стройка) */
.sn-h .sn-ic svg { stroke: none; }
.sn-h .sn-phone svg { fill: none; stroke: currentColor; stroke-width: 2; }
.sn-h .sn-chev { fill: none; }
