/* Shared public shell. Keep this stylesheet after page styles. */
body.trubo-shared-layout .topbar,
body.trubo-shared-layout .site-head,
body.trubo-shared-layout .footer {
    --black: #111; --white: #fff; --orange: #f57c00; --fire: #ff7a00;
    font-family: Arial,sans-serif; letter-spacing: 0;
}
body.trubo-shared-layout .site-head { position: relative; z-index: 100; background: #fff; color: #111; overflow: visible; }
body.trubo-shared-layout .topbar { position: relative; z-index: 101; background: #111; color: #fff; }
body.trubo-shared-layout .site-head .main-nav { position: relative; z-index: 120; }
body.trubo-shared-layout .site-head .main-nav .nav-link { color: #111; }
body.trubo-shared-layout .site-head .main-nav .nav-link:hover { color: #f57c00; }
/* Keep the 12px hover bridge touching the button throughout opening. */
body.trubo-shared-layout .site-head .catalog-dropdown .catalog-menu { display: none; opacity: 0; pointer-events: none; transform: none; animation: none; border-radius: 8px; background: #111614; }
body.trubo-shared-layout .site-head .catalog-dropdown.is-open .catalog-menu { display: grid; opacity: 1; pointer-events: auto; }
body.trubo-shared-layout .floating-messengers { position: fixed; z-index: 200; top: auto; bottom: 18px; right: 18px; transform: none; }
/* Override the legacy stacked header without changing navigation or contacts. */
body.trubo-shared-layout .topbar__inner { min-height: 32px; padding: 3px 0; font: 500 12px/1.4 Arial,sans-serif; gap: 12px; }
body.trubo-shared-layout .topbar .messenger-links--top { margin-left: auto; }
body.trubo-shared-layout .topbar .topbar-phone { display: inline-flex; align-items: center; min-height: 24px; padding: 0 4px; color: #fff; font: 700 12px/1.3 Arial,sans-serif; text-decoration: none; white-space: nowrap; }
body.trubo-shared-layout .topbar .messenger-link { width: 24px; height: 24px; font-size: 11px; }
body.trubo-shared-layout .site-head .brand-row { grid-template-columns: minmax(0,1fr) auto; min-height: 66px; padding: 10px 0 8px; gap: 24px; text-align: left; }
body.trubo-shared-layout .site-head .brand-main { gap: 0; min-height: 0; justify-self: start; }
body.trubo-shared-layout .site-head .brand-offer { display: none; }
body.trubo-shared-layout .site-head .logo { gap: 10px; justify-content: flex-start; min-height: 0; }
body.trubo-shared-layout .site-head .logo__shield { flex-basis: 44px; width: 44px; height: 44px; font-size: 19px; border-width: 2px; border-radius: 12px; }
body.trubo-shared-layout .site-head .logo__word { font-size: 26px; white-space: nowrap; }
body.trubo-shared-layout .site-head .header-contacts { display: flex; align-items: center; justify-self: end; min-width: 0; gap: 24px; }
body.trubo-shared-layout .site-head .header-contacts > span { display: none; }
body.trubo-shared-layout .site-head .header-phone { font: 700 22px/1.3 Arial,sans-serif; white-space: nowrap; }
body.trubo-shared-layout .site-head .header-actions { display: flex; gap: 8px; }
body.trubo-shared-layout .site-head .header-actions .btn { min-height: 40px; padding: 10px 14px; border-radius: 5px; font: 700 13px/1.3 Arial,sans-serif; }
body.trubo-shared-layout .site-head .main-nav { min-height: 50px; padding: 0 0 8px; gap: 8px 22px; font-size: 14px; }
body.trubo-shared-layout .site-head .main-nav .nav-link { min-height: 40px; font: 700 14px/1.3 Arial,sans-serif; }
body.trubo-shared-layout .site-head .catalog-toggle { min-height: 42px; padding: 10px 16px; font-size: 14px; border-radius: 5px; }
body.trubo-shared-layout .breadcrumbs-wrap { padding: 10px 0; }
body.trubo-shared-layout .breadcrumbs-wrap ol { font: 400 12px/1.5 Arial,sans-serif; }
@media (min-width: 761px) and (max-width: 1100px) {
    body.trubo-shared-layout .site-head .header-actions .btn--light { display: none; }
    body.trubo-shared-layout .site-head .header-contacts { gap: 12px; }
    body.trubo-shared-layout .site-head .logo__word { font-size: 23px; }
    body.trubo-shared-layout .site-head .header-phone { font-size: 20px; }
    body.trubo-shared-layout .site-head .main-nav { justify-content: space-between; gap: 6px 10px; }
    body.trubo-shared-layout .site-head .main-nav .nav-link { font-size: 12px; }
}
@media (max-width: 760px) {
    /* A full-height legacy mobile header otherwise hides the first screen. */
    body.trubo-shared-layout .topbar__inner { display: flex; justify-content: space-between; padding: 4px 0; gap: 4px; font-size: 10px; min-height: 0; }
    body.trubo-shared-layout .topbar__inner > span:first-child { display: none; }
    body.trubo-shared-layout .topbar__inner > a { display: none; }
    body.trubo-shared-layout .topbar .messenger-links--top { display: flex; gap: 4px; margin-left: auto; }
    body.trubo-shared-layout .topbar .topbar-phone { min-height: 22px; padding: 0 3px; font-size: 12px; }
    body.trubo-shared-layout .topbar .messenger-link { width: 22px; height: 22px; }
    body.trubo-shared-layout .site-head .wrap { width: calc(100% - 32px); }
    body.trubo-shared-layout .site-head .brand-row { grid-template-columns: 1fr; min-height: 0; gap: 0; padding: 8px 0; }
    body.trubo-shared-layout .site-head .brand-main { justify-self: center; }
    body.trubo-shared-layout .site-head .logo { gap: 8px; }
    body.trubo-shared-layout .site-head .logo__shield { flex-basis: 30px; width: 30px; height: 32px; font-size: 13px; border-radius: 8px; }
    body.trubo-shared-layout .site-head .logo__word { font-size: 20px; }
    body.trubo-shared-layout .site-head .header-contacts { justify-self: center; gap: 0; }
    body.trubo-shared-layout .site-head .header-actions { display: none; }
    body.trubo-shared-layout .site-head .header-phone { font-size: 16px; line-height: 1.5; padding: 0; }
    body.trubo-shared-layout .site-head .main-nav { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0 4px; padding-bottom: 6px; min-height: 0; }
    body.trubo-shared-layout .site-head .catalog-dropdown { grid-column: 1 / -1; margin-bottom: 4px; }
    body.trubo-shared-layout .site-head .catalog-dropdown:not(.is-open) .catalog-menu { display: none; opacity: 0; pointer-events: none; }
    body.trubo-shared-layout .site-head .catalog-toggle { min-height: 42px; padding: 10px 14px; font-size: 14px; }
    body.trubo-shared-layout .site-head .main-nav .nav-link { min-height: 36px; font: 600 11px/1.3 Arial,sans-serif; padding: 5px 0; text-align: center; }
    body.trubo-shared-layout .breadcrumbs-wrap ol { font-size: 11px; gap: 6px; }
    body.trubo-shared-layout .floating-messengers { display: flex; flex-direction: row; gap: 8px; right: 12px; bottom: 12px; top: auto; transform: none; }
    body.trubo-shared-layout .floating-messengers .messenger-link { width: 38px; height: 38px; font-size: 14px; }
    body.service-hero-visible .floating-messengers { visibility: hidden; pointer-events: none; }
}

body.trubo-shared-layout .footer { position: relative; z-index: 2; padding: 48px 0 24px; background: #111614; color: #fff; font-size: 14px; line-height: 1.5; }
body.trubo-shared-layout .footer .wrap { width: min(1160px, calc(100% - 40px)); }
body.trubo-shared-layout .footer__grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.65fr) minmax(0,.9fr); gap: 40px; align-items: start; }
body.trubo-shared-layout .footer__grid > div { min-width: 0; }
body.trubo-shared-layout .footer-brand-card { min-height: 0; padding: 12px 16px; margin-bottom: 16px; border-radius: 6px; }
body.trubo-shared-layout .footer .footer-logo { font: 800 24px/1.2 Arial,sans-serif; color: #111; margin: 0; }
body.trubo-shared-layout .footer p { margin: 0; color: #c2c8c4; font-size: 14px; line-height: 1.6; }
body.trubo-shared-layout .footer h3 { font: 700 15px/1.4 Arial,sans-serif; color: #ff8d1a; margin: 0 0 12px; }
body.trubo-shared-layout .footer a { color: #edf1ee; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
body.trubo-shared-layout .footer a:hover { color: #ff9e3e; }
body.trubo-shared-layout .footer .messenger-link { display: inline-flex; align-items: center; justify-content: center; margin: 0; width: 40px; height: 40px; font-size: 16px; }
body.trubo-shared-layout .footer-services { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 20px; margin-top: 32px; padding-top: 24px; }
body.trubo-shared-layout .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; padding-top: 18px; font-size: 12px; }
body.trubo-shared-layout .footer-bottom a { font-size: 12px; }
body.trubo-shared-layout .footer-cookie-settings { padding: 0; border: 0; background: transparent; color: #edf1ee; font: inherit; font-size: 14px; line-height: 1.45; text-align: left; text-decoration: underline; cursor: pointer; }
body.trubo-shared-layout .footer-cookie-settings:hover { color: #ff9e3e; }
body.trubo-shared-layout .footer-cookie-settings:focus-visible { outline: 2px solid #ff9e3e; outline-offset: 3px; }
body.trubo-shared-layout .cookie-notice {
    position: fixed;
    z-index: 1000;
    left: 20px;
    bottom: 20px;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-items: center;
    gap: 18px;
    width: min(560px, calc(100% - 40px));
    padding: 18px;
    border: 1px solid #d9ddd9;
    border-radius: 10px;
    background: #fff;
    color: #111614;
    box-shadow: 0 14px 42px rgba(17,22,20,.2);
    font: 400 14px/1.5 Arial,sans-serif;
}
body.trubo-shared-layout .cookie-notice[hidden] { display: none !important; }
body.trubo-shared-layout .cookie-notice__content { min-width: 0; }
body.trubo-shared-layout .cookie-notice strong { display: block; margin: 0 0 4px; font: 700 16px/1.3 Arial,sans-serif; }
body.trubo-shared-layout .cookie-notice p { margin: 0; color: #4d5651; }
body.trubo-shared-layout .cookie-notice a { color: #9a4f00; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
body.trubo-shared-layout .cookie-notice__button { min-height: 42px; padding: 10px 18px; border: 1px solid #f57c00; border-radius: 6px; background: #f57c00; color: #111; cursor: pointer; font: 700 14px/1.2 Arial,sans-serif; }
body.trubo-shared-layout .cookie-notice__button:hover { background: #ff8d1a; }
body.trubo-shared-layout .cookie-notice__button:focus-visible { outline: 3px solid rgba(245,124,0,.35); outline-offset: 3px; }
body.trubo-shared-layout .cookie-notice__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
body.trubo-shared-layout .cookie-notice__link-button { padding: 0; border: 0; background: transparent; color: #9a4f00; font: 700 14px/1.4 Arial,sans-serif; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
body.trubo-shared-layout .cookie-notice__settings { margin-top: 14px; padding-top: 14px; border-top: 1px solid #d9ddd9; }
body.trubo-shared-layout .cookie-notice__check { display: flex; align-items: flex-start; gap: 10px; color: #313a35; }
body.trubo-shared-layout .cookie-notice__check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #f57c00; }
body.trubo-shared-layout .cookie-notice__actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.trubo-shared-layout .cookie-notice__button--secondary { border-color: #78817c; background: #fff; color: #111614; }
body.trubo-shared-layout .cookie-notice__button--secondary:hover { background: #f4f6f4; }
body.trubo-shared-layout .consent .consent__link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
body.trubo-shared-layout .legal-document-section { background: #fff; }
body.trubo-shared-layout .legal-document { max-width: 860px; margin: 0 auto; color: #202020; font-size: 16px; line-height: 1.7; }
body.trubo-shared-layout .legal-document > h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.18; }
body.trubo-shared-layout .legal-document__date { margin: 0 0 32px; color: #555; }
body.trubo-shared-layout .legal-document__section { padding: 24px 0; border-top: 1px solid #dedede; }
body.trubo-shared-layout .legal-document__section h2 { margin: 0 0 12px; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; }
body.trubo-shared-layout .legal-document__section p { margin: 0 0 12px; }
body.trubo-shared-layout .legal-document__section ul { margin: 0 0 12px; padding-left: 22px; }
body.trubo-shared-layout .legal-document__section a { color: #9a4f00; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
body.trubo-shared-layout .legal-document__updated { margin: 10px 0 0; color: #555; }
@media (max-width: 1100px) {
    body.trubo-shared-layout .footer-services { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    body.trubo-shared-layout .footer { padding: 32px 0 20px; }
    body.trubo-shared-layout .footer .wrap { width: calc(100% - 32px); }
    body.trubo-shared-layout .footer__grid { grid-template-columns: 1fr; gap: 28px; }
    body.trubo-shared-layout .footer-services { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
    body.trubo-shared-layout .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 44px; }
    body.trubo-shared-layout .footer a { padding: 4px 0; }
    body.trubo-shared-layout .cookie-notice { left: 16px; bottom: 62px; gap: 12px; width: calc(100% - 32px); padding: 16px; }
    body.trubo-shared-layout .cookie-notice__actions { display: grid; grid-template-columns: 1fr; }
    body.trubo-shared-layout .cookie-notice__button { width: 100%; }
}
