/* PH-T.RU — stable three-language navigation
   Keeps the six menu slots, language switch and desktop CTA stationary
   when RU / EN / ZH labels have different lengths. */

/* Shared inner-page header (.ph-*) */
@media (min-width: 961px) {
  html body header.ph-header .ph-header__inner {
    column-gap: 4px !important;
  }

  html body header.ph-header nav.ph-nav[data-pht-unified="1"],
  html body header.ph-header nav.ph-nav[data-pht-unified="1"] > ul {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  html body header.ph-header nav.ph-nav[data-pht-unified="1"] > ul {
    display: grid !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  html body header.ph-header nav.ph-nav[data-pht-unified="1"] > ul > li,
  html body header.ph-header nav.ph-nav[data-pht-unified="1"] > ul > li > a {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body header.ph-header nav.ph-nav[data-pht-unified="1"] > ul > li > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Compact desktop: just above the existing mobile breakpoint. */
@media (min-width: 961px) and (max-width: 1050px) {
  html body header.ph-header nav.ph-nav[data-pht-unified="1"],
  html body header.ph-header nav.ph-nav[data-pht-unified="1"] > ul {
    width: 520px !important;
  }

  html body header.ph-header nav.ph-nav[data-pht-unified="1"] > ul {
    grid-template-columns: 64px 64px 152px 84px 49px 72px !important;
    column-gap: 7px !important;
  }

  html body header.ph-header nav.ph-nav[data-pht-unified="1"] a {
    font-size: 11.5px !important;
  }
}

/* Regular desktop: sized for the widest label in RU / EN / ZH. */
@media (min-width: 1051px) {
  html body header.ph-header nav.ph-nav[data-pht-unified="1"],
  html body header.ph-header nav.ph-nav[data-pht-unified="1"] > ul {
    width: 627px !important;
  }

  html body header.ph-header nav.ph-nav[data-pht-unified="1"] > ul {
    grid-template-columns: 72px 72px 178px 96px 53px 81px !important;
    column-gap: 15px !important;
  }
}

/* Custom home-page header (#pht-site). */
@media (min-width: 981px) {
  html body #pht-site header.pht-header nav.pht-nav[data-pht-unified="1"] {
    display: grid !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    white-space: nowrap !important;
  }

  html body #pht-site header.pht-header nav.pht-nav[data-pht-unified="1"] > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  html body #pht-site header.pht-header nav.poly-lang {
    width: 120px !important;
    flex: 0 0 120px !important;
    justify-content: center !important;
  }
}

@media (min-width: 981px) and (max-width: 1050px) {
  html body #pht-site header.pht-header nav.pht-nav[data-pht-unified="1"] {
    grid-template-columns: 46px 46px 150px 66px 26px 52px !important;
    column-gap: 11px !important;
    width: 441px !important;
  }

  html body #pht-site header.pht-header nav.pht-nav[data-pht-unified="1"] a {
    font-size: 12px !important;
  }
}

@media (min-width: 1051px) {
  html body #pht-site header.pht-header nav.pht-nav[data-pht-unified="1"] {
    grid-template-columns: 54px 54px 176px 78px 32px 61px !important;
    column-gap: 25px !important;
    width: 580px !important;
  }
}

/* The translated CTA labels have different natural widths. */
@media (min-width: 1289px) {
  html body #pht-site header.pht-header .pht-header__cta {
    display: inline-flex !important;
    width: 197px !important;
    flex: 0 0 197px !important;
    margin-left: 8px !important;
  }
}

/* Keep the CTA out of the constrained desktop range instead of squeezing nav. */
@media (min-width: 861px) and (max-width: 1288px) {
  html body #pht-site header.pht-header .pht-header__cta {
    display: none !important;
  }
}

/* Extend the existing home-page mobile header through tablet widths. */
@media (min-width: 861px) and (max-width: 980px) {
  html body #pht-site header.pht-header .pht-nav {
    position: absolute !important;
    top: 64px !important;
    left: 16px !important;
    right: 16px !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    background: #fff !important;
    border: 1px solid var(--pht-line) !important;
    border-radius: 4px !important;
  }

  html body #pht-site header.pht-header .pht-nav.is-open {
    display: flex !important;
  }

  html body #pht-site header.pht-header .pht-nav a {
    padding: 14px 20px !important;
    border-bottom: 1px solid var(--pht-line) !important;
  }

  html body #pht-site header.pht-header .pht-nav a:last-child {
    border-bottom: 0 !important;
  }

  html body #pht-site header.pht-header .pht-menu {
    display: flex !important;
  }
}

/* Remove decorative globe illustrations on every language version.
   Company logos, route tags and all non-globe content icons remain unchanged. */
html body #pht-site .pht-emblem,
html body #pht-int .pht-globe {
  display: none !important;
}

/* The third service card uses a small globe pictogram for international routes.
   Keep its reserved icon space so all six cards remain aligned. */
html body #pht-site .pht-services__grid > li:nth-child(3) .pht-service__icon {
  visibility: hidden !important;
}

/* International Logistics used a two-row visual: globe + photo.
   After removing the globe, let the photo occupy the complete visual area. */
html body #pht-int .pht-hero__visual {
  grid-template-rows: 260px !important;
  gap: 0 !important;
}

html body #pht-int .pht-hero__visual > img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
}

@media (max-width: 760px) {
  html body #pht-int .pht-hero__visual {
    grid-template-rows: 210px !important;
  }
}

/* PHT MESSENGER WIDGET CSS RESTORED */

#ptm-messenger-widget,#ptm-messenger-widget *{box-sizing:border-box}
#ptm-messenger-widget{--ptm-a:#0b8fc5;--ptm-a2:#9ce9ff;--ptm-ink:#102634;--ptm-muted:#667985;position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:99999;color:var(--ptm-ink);font:16px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
#ptm-messenger-widget [hidden]{display:none!important}
.ptm__launch{position:relative;display:grid;width:60px;height:60px;margin-left:auto;padding:0;place-items:center;border:0;border-radius:50%;color:#fff;background:linear-gradient(145deg,var(--ptm-a2),var(--ptm-a) 68%);box-shadow:0 12px 30px rgba(5,57,86,.28),0 3px 10px rgba(5,35,52,.16);cursor:pointer;transition:.2s transform,.2s box-shadow;-webkit-tap-highlight-color:transparent}
.ptm__launch:hover{transform:translateY(-2px) scale(1.025);box-shadow:0 16px 36px rgba(5,57,86,.32),0 4px 12px rgba(5,35,52,.17)}
.ptm__launch:active{transform:scale(.97)}.ptm__launch svg{width:30px;height:30px}.ptm__dot{position:absolute;top:2px;right:2px;width:14px;height:14px;border:3px solid #fff;border-radius:50%;background:#07c160}
.ptm__tip{position:absolute;right:72px;bottom:14px;width:max-content;max-width:min(260px,calc(100vw - 105px));padding:9px 12px;border:1px solid rgba(16,38,52,.1);border-radius:12px;background:rgba(255,255,255,.97);box-shadow:0 8px 24px rgba(12,42,60,.14);font-size:13px;font-weight:750;pointer-events:none;opacity:0;transform:translateX(7px);transition:.18s opacity,.18s transform;backdrop-filter:blur(12px)}
.ptm__launch:hover+.ptm__tip,.ptm__launch:focus-visible+.ptm__tip{opacity:1;transform:none}
.ptm__panel{position:absolute;right:0;bottom:72px;width:min(286px,calc(100vw - 32px));padding:10px;border:1px solid rgba(16,38,52,.1);border-radius:22px;background:rgba(255,255,255,.97);box-shadow:0 18px 55px rgba(12,42,60,.2),0 4px 14px rgba(12,42,60,.1);opacity:0;transform:translateY(12px) scale(.96);transform-origin:right bottom;pointer-events:none;transition:.2s opacity,.2s transform;backdrop-filter:blur(16px)}
.ptm--open .ptm__panel{opacity:1;transform:none;pointer-events:auto}.ptm__eyebrow{margin:2px 5px 8px;color:var(--ptm-muted);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ptm__service{display:grid;width:100%;min-height:62px;padding:8px 9px;grid-template-columns:46px minmax(0,1fr) 22px;gap:10px;align-items:center;border:0;border-radius:15px;color:var(--ptm-ink);background:transparent;text-align:left;cursor:pointer;transition:.16s background,.16s transform;-webkit-tap-highlight-color:transparent}.ptm__service+.ptm__service{margin-top:3px}.ptm__service:hover{background:rgba(16,38,52,.055)}.ptm__service:active{transform:scale(.985)}.ptm__service:disabled{cursor:not-allowed;opacity:.45}
.ptm__ic{display:grid;width:46px;height:46px;place-items:center;overflow:hidden;border-radius:14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 6px 15px rgba(12,42,60,.14)}.ptm__ic--max{background:linear-gradient(145deg,#31c5ff,#6474ff 53%,#8a46f2)}.ptm__ic--wechat{background:#07c160}.ptm__ic--whatsapp{background:#25d366}.ptm__ic svg{display:block;width:42px;height:42px}
.ptm__copy{min-width:0}.ptm__title,.ptm__detail{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ptm__title{margin-bottom:4px;font-size:15px;font-weight:800}.ptm__detail{color:var(--ptm-muted);font-size:12px;font-weight:650}.ptm__arrow{color:#85939d;font-size:24px;font-weight:300;text-align:center}
.ptm__launch:focus-visible,.ptm__service:focus-visible,.ptm__button:focus-visible,.ptm__close:focus-visible{outline:3px solid var(--ptm-a2);outline-offset:3px}
.ptm__backdrop{position:fixed;inset:0;z-index:2;display:grid;padding:20px;place-items:center;background:rgba(4,18,27,.5);opacity:0;transition:.18s opacity;backdrop-filter:blur(7px)}.ptm__backdrop.ptm--shown{opacity:1}
.ptm__dialog{position:relative;width:min(430px,100%);padding:24px;border:1px solid rgba(255,255,255,.5);border-radius:24px;background:#fff;box-shadow:0 28px 90px rgba(2,16,27,.32);transform:translateY(12px) scale(.98);transition:.2s transform}.ptm--shown .ptm__dialog{transform:none}
.ptm__close{position:absolute;top:13px;right:13px;display:grid;width:38px;height:38px;padding:0;place-items:center;border:0;border-radius:50%;color:#526570;background:#eef4f7;font:25px/1 Arial;cursor:pointer}.ptm__head{display:grid;padding-right:36px;grid-template-columns:52px minmax(0,1fr);gap:13px;align-items:center}.ptm__head .ptm__ic{width:52px;height:52px;border-radius:16px}.ptm__head .ptm__ic svg{width:47px;height:47px}.ptm__dialog h2{margin:0;font-size:20px;line-height:1.15}.ptm__dialog p{margin:16px 0 0;color:#526570;font-size:14px;line-height:1.55}
.ptm__contact{display:flex;min-height:50px;margin-top:17px;padding:8px 8px 8px 14px;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dbe5ea;border-radius:14px;background:#f5f9fb}.ptm__value{overflow:hidden;font-size:15px;font-weight:800;text-overflow:ellipsis;white-space:nowrap;user-select:all}.ptm__button{display:inline-grid;min-height:42px;padding:0 15px;place-items:center;border:0;border-radius:11px;color:#fff;background:var(--ptm-a);font:inherit;font-size:13px;font-weight:800;line-height:1;text-decoration:none;cursor:pointer}.ptm__button:hover{filter:brightness(.96)}.ptm__open{width:100%;min-height:48px;margin-top:14px}.ptm__note{display:block;margin-top:11px;color:#788893;font-size:11px;line-height:1.45}
.ptm__toast{position:absolute;right:0;bottom:74px;width:max-content;max-width:min(310px,calc(100vw - 32px));padding:11px 14px;border-radius:12px;color:#fff;background:#162b37;box-shadow:0 10px 30px rgba(4,18,27,.26);font-size:13px;font-weight:700;opacity:0;transform:translateY(8px);pointer-events:none;transition:.18s opacity,.18s transform}.ptm__toast.ptm--shown{opacity:1;transform:none}
@media(max-width:640px){#ptm-messenger-widget{right:max(13px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom))}.ptm__launch{width:56px;height:56px}.ptm__panel{bottom:67px;width:min(280px,calc(100vw - 26px))}.ptm__tip{display:none}.ptm__backdrop{padding:12px;place-items:end center}.ptm__dialog{width:100%;padding:22px 18px max(20px,env(safe-area-inset-bottom));border-radius:24px 24px 18px 18px}}
@media(prefers-reduced-motion:reduce){#ptm-messenger-widget *,#ptm-messenger-widget *:before,#ptm-messenger-widget *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* PHT MESSENGER WIDGET CSS END */

/* PHT FOOTER AND PAGER GUARD V2 */
.pht-footer{position:relative!important;display:block!important;width:100%!important;clear:both!important;overflow:hidden!important;z-index:1!important}
.pht-footer__grid{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(180px,.8fr) minmax(220px,.95fr)!important;align-items:start!important;gap:48px!important}
.pht-footer__col{min-width:0!important}
.pht-footer .poly-footer-logo{display:block!important;width:auto!important;max-width:260px!important;height:auto!important;max-height:100px!important;object-fit:contain!important;object-position:left center!important}
.pht-footer__legal{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 16px!important}
#ptm-messenger-widget{position:fixed!important;right:20px!important;bottom:20px!important;width:60px!important;height:60px!important;margin:0!important;z-index:2147483000!important}
.pt-blog-pager{display:grid!important;grid-template-columns:repeat(8,42px)!important;justify-content:center!important;align-items:center!important;gap:8px!important;width:392px!important;max-width:100%!important;min-height:42px!important;margin-left:auto!important;margin-right:auto!important}
.pt-blog-pager__link{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;margin:0!important;padding:0!important;line-height:1!important;font-variant-numeric:tabular-nums!important;transform:none!important}
@media(max-width:767px){
 .pht-footer{padding-top:48px!important;padding-bottom:24px!important}
 .pht-footer__grid{grid-template-columns:minmax(0,1fr)!important;gap:30px!important}
 .pht-footer__col{width:100%!important}
 .pht-footer .poly-footer-logo{max-width:220px!important;max-height:90px!important}
 .pht-footer__legal{display:block!important}
 .pht-footer__legal>*{display:block!important;margin:4px 0!important}
 #ptm-messenger-widget{right:max(14px,env(safe-area-inset-right))!important;bottom:max(14px,env(safe-area-inset-bottom))!important}
 .pt-blog-pager{grid-template-columns:repeat(8,36px)!important;gap:4px!important;width:316px!important;min-height:36px!important}
 .pt-blog-pager__link{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;font-size:14px!important}
}
/* END PHT FOOTER AND PAGER GUARD V2 */
