/* MYRON-WEB-007: completion of the V3 site. Same tokens as v3.css; no inline styles (CSP). */

/* ---------- Translators: card grid, detail dialog ---------- */
.pfilters{align-items:flex-end}
.pfilters__n{margin:0 0 0 auto;align-self:center;font-size:14px;color:var(--g600)}
.tgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tcard{display:flex;flex-direction:column;gap:14px;min-width:0;padding:20px;background:#fff;border:1px solid var(--g200);border-radius:var(--r-lg);box-shadow:var(--sh-1);transition:box-shadow .2s,border-color .2s}
.tcard:hover{border-color:var(--g300);box-shadow:var(--sh-2)}
.tcard[hidden]{display:none}
.tcard__top{display:flex;gap:16px;align-items:flex-start;min-width:0}
.tcard__ph{flex:none;width:96px;height:120px;border-radius:var(--r);object-fit:cover;object-position:50% 20%;background:var(--g100)}
.tcard__ph--none{display:grid;place-items:center;color:var(--g600)}
.tcard__ph--none .ic{width:32px;height:32px}
.tcard__id{min-width:0;display:flex;flex-direction:column;gap:4px}
.tcard__id h3{font-size:19px;line-height:1.2}
.tcard__role{margin:0;font:600 13.5px/1.35 var(--f-head);color:var(--red)}
.tcard__loc{margin:2px 0 0;display:flex;align-items:center;gap:5px;font-size:14px;color:var(--g700)}
.tcard__loc .ic{width:15px;height:15px;flex:none;color:var(--g600)}
.tcard__exp{margin:0;font-size:13.5px;color:var(--g600)}
.tcard__facts{margin:0;display:grid;gap:8px}
.tcard__facts div{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px;font-size:14px;line-height:1.4}
.tcard__facts dt{color:var(--g600)}
.tcard__facts dd{margin:0;color:var(--g900);overflow-wrap:anywhere}
.tcard__price{margin-top:auto;display:flex;flex-wrap:wrap;gap:4px 18px;padding-top:14px;border-top:1px solid var(--g100);font-size:13.5px;color:var(--g600)}
.tcard__price p{margin:0}
.tcard__price b{font:700 18px/1.2 var(--f-head);color:var(--navy)}
.tcard__price .price--req{font:600 14px var(--f-head);color:var(--g700)}
.tcard__price--dlg{margin-top:10px;padding-top:0;border-top:0}
.tcard__acts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tcard__acts .btn{width:100%;padding-inline:12px}
.tnote{margin:16px 0 0;font-size:13.5px;color:var(--g600)}
@media (max-width:1100px){.tgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.tgrid{grid-template-columns:minmax(0,1fr);gap:14px}.tcard{padding:16px}.pfilters__n{margin:0;width:100%}}
@media (max-width:360px){.tcard__ph{width:80px;height:100px}.tcard__facts div{grid-template-columns:minmax(0,1fr);gap:2px}}

.tdlg{width:min(680px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:var(--r-lg);box-shadow:var(--sh-2);color:var(--text)}
.tdlg::backdrop{background:rgba(10,18,34,.55)}
.tdlg__in{position:relative;display:flex;flex-direction:column;gap:18px;padding:28px}
.tdlg__x{position:absolute;top:12px;right:12px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--g50);cursor:pointer;color:var(--g900)}
.tdlg__x:hover{background:var(--g100)}
.tdlg__x .ic{width:18px;height:18px}
.tdlg__head{display:flex;gap:20px;align-items:flex-start;padding-right:44px}
.tdlg__head h3{font-size:24px;margin-bottom:4px}
.tdlg__ph{flex:none;width:132px;height:165px;border-radius:var(--r);object-fit:cover;object-position:50% 20%;background:var(--g100)}
.tdlg__facts{margin:0;display:grid;gap:0;border-top:1px solid var(--g100)}
.tdlg__facts div{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--g100);font-size:15px;line-height:1.45}
.tdlg__facts dt{color:var(--g600)}
.tdlg__facts dd{margin:0;overflow-wrap:anywhere}
.tdlg__about{margin:0;font-size:15.5px;line-height:1.6;color:var(--g700)}
.tdlg__in>.btn{align-self:flex-start}
@media (max-width:560px){.tdlg__in{padding:20px}.tdlg__head{flex-direction:column;gap:12px}.tdlg__ph{width:112px;height:140px}.tdlg__facts div{grid-template-columns:minmax(0,1fr);gap:2px}.tdlg__in>.btn{align-self:stretch}}

/* ---------- Business tours: photo credits under the gallery ---------- */
.gallery__credits{display:flex;flex-wrap:wrap;gap:2px 12px;margin-top:6px;font-size:12.5px;color:var(--g600)}
.gallery__credits a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* ---------- Warehouses: every city labelled on the schematic map ---------- */
.whmap__chart{min-height:340px}
.whdot{flex-direction:row;gap:6px}
.whdot--l{flex-direction:row-reverse}
.whdot span{opacity:1;pointer-events:auto;font-size:12.5px;box-shadow:0 1px 2px rgba(17,26,44,.08)}
.whdot--r{transform:translate(-8px,-50%)}
.whdot--l{transform:translate(calc(-100% + 8px),-50%)}
.whdot.is-on span{background:var(--navy);color:#fff}
.whdot:hover span{background:var(--g900);color:#fff}
@media (max-width:1023px){.whmap__chart{min-height:0}}
@media (max-width:560px){.whdot span{font-size:10.5px}.whdot{gap:3px}}

/* ---------- Long words never push a card wider than the screen ---------- */
.bal>*,.checkgrid li,.risk,.risk__r b,.stage,.dir,.note{overflow-wrap:break-word;min-width:0}
.checkgrid li>span,.risk__r>span{min-width:0}

/* ---------- Long words and links in article text never widen the page (old blog posts carry long URLs) ---------- */
.prose,.prose p,.prose li,.prose a,.prose td,.article__body{overflow-wrap:anywhere}
/* Price line of excursion / tour headers wraps on narrow phones instead of sticking out by a pixel */
.xcard__meta--lg>span{min-width:0;flex-wrap:wrap}
.xcard__meta--lg .price,.xcard__meta--lg .price small{white-space:normal}
/* Long words in headings (e.g. «мусороперерабатывающего» in an old case title) are hyphenated on phones, and broken
   as a last resort, so a heading never makes the page wider than the screen. */
@media (max-width:640px){
  h1,h2,h3,.risk__r b,.tcard__id h3{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
  .phead h1{font-size:clamp(26px,1.2rem + 2.4vw,30px)}
}

/* ---------- About: team areas instead of empty silhouettes (photos only with consent) ---------- */
.team--roles{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.team__r{display:flex;gap:14px;align-items:center;padding:18px 20px;background:#fff;border:1px solid var(--g200);border-radius:var(--r-lg)}
.team__r>.ic{flex:none;width:44px;height:44px;padding:11px;border-radius:12px;background:var(--red-50);color:var(--red)}
.team__r b{font:600 15.5px/1.3 var(--f-head);color:var(--navy)}
@media (max-width:900px){.team--roles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.team--roles{grid-template-columns:minmax(0,1fr)}}

/* History timeline: hidden slides waited 24 px to the right for the slide-in; on phones that is 8 px past the
   screen edge (wrap padding 16 px). There they only fade. */
@media (max-width:640px){.tl__card[hidden]{transform:none}}
