/* Шапка Trely — одна на все сайты экосистемы.

   ОБРАЗЕЦ — шапка главной shipping.trely.io (решение руководителя 12.10.2026:
   «теперь это стандарт»). Размеры, цвета, отступы, анимации и узкие экраны
   перенесены из её стилей дословно; там размеры в rem при корне 10 px,
   здесь те же числа в пикселях.

   Что намеренно НЕ перенесено:
   · кнопка диалога справа сверху — руководитель сказал не копировать;
   · «бургер» (узкий экран, только сайты Shipping) открывает то же меню,
     что у образца: «Объявления», язык, «Отправить посылку»,
     «Стать доставщиком», «Войти».

   Классы начинаются с th- (trely header): прежние svc-*, sm-*, lgroup
   относились к старым версиям меню и здесь не используются.

   Картинки — фонами из папки hdr/ рядом с этим файлом: так стили сами
   находят их на любом сайте, и в разметку не нужно вписывать адреса. */

.th, .th * { box-sizing: border-box; }
.th { --th-h: 70px; position: sticky; top: 0; z-index: 100; display: flex; align-items: center;
      height: var(--th-h); background-color: #fbfaf7; border-bottom: 1px solid #e5e2dc;
      font-family: 'Inter Tight', -apple-system, system-ui, sans-serif; color: #0f1014;
      -webkit-font-smoothing: antialiased; }
.th a { text-decoration: none; color: inherit; }
.th .th-pill { color: #ceac75; }
.th .th-name { color: #0f1014; }
.th button { font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; }
.th ul { margin: 0; padding: 0; }
.th p { margin: 0; }
.th-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
         flex: 1 1 0%; padding: 0 24px; }

/* ── логотип: «Trely» + плашка продукта ── */
.th-brand { display: flex; align-items: center; gap: 4px; justify-self: start; font-size: 20px;
            font-weight: 600; line-height: 28px; white-space: nowrap; }
.th-name { display: flex; align-items: center; gap: 6px; color: #0f1014; }
.th-name:active { transition: opacity .1s; opacity: .7; }
.th-logo { flex-shrink: 0; display: block; width: 24px; height: 29px;
           background: url("hdr/logo.801f5f9d.svg") center/contain no-repeat; }
.th-pill { padding: 4px 10px; border-radius: 100px; background-color: rgba(198,160,100,.1);
           color: #ceac75; transition: background-color .2s; }
.th-pill:active { transition: opacity .1s; opacity: .7; }

/* ── середина: только на сайтах Shipping ── */
.th-actions { display: flex; align-items: center; gap: 28px; justify-self: center; }
.th-action { display: inline-flex; align-items: center; gap: 6px; padding: 13px 0; font-size: 15px;
             font-weight: 500; line-height: 18px; letter-spacing: -.16px; color: #c6a064;
             white-space: nowrap; transition: color .2s; }
.th .th-action { color: #c6a064; }
.th-action:active { transition: opacity .1s; opacity: .7; }
.th-plus { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px;
           border-radius: 10px; background-color: rgba(198,160,100,.1); transition: background-color .2s; }
.th-plus svg { width: 10px; height: 10px; }

/* ── правая часть ── */
.th-right { display: flex; align-items: center; gap: 19px; justify-self: end; }
.th-svc, .th-prof, .th-burger-wrap { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.th-burger-wrap { display: none; }
.th-trig { display: flex; align-items: center; gap: 6px; padding: 10px; border-radius: 12px;
           background-color: transparent; color: #0f1014; transition: background-color .2s; }
.th-trig:active { transition: opacity .1s; opacity: .7; }
.th-trig[aria-expanded="true"] { background-color: rgba(0,0,0,.03); }
.th-trig-lead { display: flex; align-items: flex-end; gap: 5px; }
.th-trig-icon { flex-shrink: 0; width: 20px; height: 20px; }
.th-trig-label { font-size: 15px; font-weight: 500; line-height: 18px; letter-spacing: -.16px; white-space: nowrap; }
.th-chev { flex-shrink: 0; width: 16px; height: 16px; opacity: .5; transition: transform .2s; }
.th-trig[aria-expanded="true"] .th-chev { transform: rotate(180deg); }
.th-trig:focus-visible, .th-name:focus-visible, .th-pill:focus-visible, .th-action:focus-visible {
  outline: 2px solid #c6a064; outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .th-pill:hover { background-color: rgba(198,160,100,.3); }
  .th-action:hover .th-plus { background-color: rgba(198,160,100,.3); }
  .th-trig:hover { background-color: rgba(0,0,0,.03); }
}

/* ── панель «Сервисы» ── */
.th-panel { position: fixed; top: calc(var(--th-h, 70px) + 10px); right: 0; left: 0; z-index: 1;
            display: flex; gap: 10px; width: min(1010px, calc(100vw - 40px)); margin-inline: auto;
            padding: 10px; border-radius: 24px; background-color: #fff;
            box-shadow: 0 8px 32px rgba(39,60,63,.1); transform-origin: center top;
            animation: th-panel-in .22s ease both; }
.th-panel[hidden] { display: none; }
.th-panel.is-closing { animation: th-panel-in .16s ease reverse both; }
@keyframes th-panel-in { 0% { opacity: 0; transform: translateY(-6px) scale(.98); } 100% { opacity: 1; transform: none; } }

.th-products { display: flex; flex-direction: column; flex-shrink: 0; gap: 3px; width: 287px; }
.th-products > * { animation: th-row-settle .32s ease both; }
.th-products > :nth-child(1) { animation-delay: .03s; }
.th-products > :nth-child(2) { animation-delay: .06s; }
.th-products > :nth-child(3) { animation-delay: .09s; }
.th-products > :nth-child(4) { animation-delay: .12s; }
.th-products > :nth-child(5) { animation-delay: .15s; }
.th-products > :nth-child(6) { animation-delay: .18s; }
.th-products > :nth-child(7) { animation-delay: .21s; }
@keyframes th-row-settle { 0% { opacity: 0; transform: translateX(-4px); } 100% { opacity: 1; transform: none; } }

.th-product { display: flex; align-items: center; justify-content: space-between; width: 100%;
              padding: 4px 16px 4px 4px; border-radius: 16px; background-color: #fff;
              text-align: left; transition: background-color .2s; }
.th-product:active { transition: opacity .1s; opacity: .7; }
.th-product[aria-selected="true"] { background-color: #f6f6f6; }
.th-product[aria-selected="true"] .th-tile { background-color: #fff; }
.th-product[aria-selected="true"] .th-pchev { opacity: .5; }
.th-product:focus-visible { outline: 2px solid #c6a064; outline-offset: -2px; }
.th-plead { display: flex; align-items: center; gap: 9px; }
.th-tile { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
           background-color: #f8f8f8; overflow: hidden; transition: background-color .2s; }
.th-tile--go { background-color: #fff; }
.th-plabel { font-size: 16px; font-weight: 500; line-height: 24px; color: #000; white-space: nowrap; }
.th-pchev { flex-shrink: 0; width: 16px; height: 16px; opacity: 0; transform: rotate(-90deg); transition: opacity .2s; }

/* Иллюстрации продуктов в плитках — положение и размер как у образца. */
.th-art { position: absolute; display: block; background-repeat: no-repeat; background-position: center;
          background-size: cover; }
.th-art--go { top: 8.873px; left: 8.872px; width: 21.2553px; height: 24.2553px; background-image: url("hdr/go.9267a2e9.svg"); }
.th-art--shipping { top: -.58px; left: .15px; width: 40.02px; height: 40.02px; background-image: url("hdr/shipping.ce70b0a4.webp");
  transform: scaleX(-1); -webkit-mask-image: url("hdr/shipping-mask.2e1740d8.svg"); mask-image: url("hdr/shipping-mask.2e1740d8.svg");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 3.81px 9.542px; mask-position: 3.81px 9.542px;
  -webkit-mask-size: 32.081px 24.207px; mask-size: 32.081px 24.207px; }
.th-art--car { top: 0; left: 1px; width: 38px; height: 38px; background-image: url("hdr/car.67d19f57.webp"); }
.th-art--gid { top: 7.67px; left: 1px; width: 37px; height: 24.667px; background-image: url("hdr/gid.e5299829.webp"); }
.th-art--club { top: 4px; left: 4px; width: 31px; height: 31.939px; border-radius: 50%; overflow: hidden;
  background-image: url("hdr/club.94b2df69.webp"); background-size: 169.7% 164.71%; background-position: -11.27px 0; }
.th-art--blog { top: 7px; left: -2px; width: 41px; height: 27.333px; background-image: url("hdr/blog.adc7ddac.webp"); }
.th-art--concierge { top: 7px; left: 5px; width: 31.2px; height: 26px; background-image: url("hdr/concierge.d0f8a70f.webp"); }

.th-links { display: flex; flex: 1 1 0%; flex-direction: column; gap: 17px; min-width: 0; padding: 20px;
            border-radius: 16px; background-color: #fbfaf7; animation: th-pane-in .18s ease both; }
.th-links[hidden] { display: none; }
@keyframes th-pane-in { 0% { opacity: 0; } 100% { opacity: 1; } }
.th-ltitle { font-size: 20px; font-weight: 500; line-height: 30px; color: #000; }
.th-lsub { font-size: 14px; line-height: 22px; color: rgba(0,0,0,.5); }
.th-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; list-style: none; }
.th-cards li { display: flex; }
.th-card { display: flex; flex: 1 1 0%; align-items: center; gap: 10px; padding: 14px; border-radius: 12px;
           background-color: #fff; text-align: left; }
.th-card:active { transition: opacity .1s; opacity: .7; }
.th-ctext { display: flex; flex: 1 1 0%; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; line-height: 22px; }
.th-ctitle { font-weight: 500; color: #000; }
.th-cdesc { color: rgba(0,0,0,.5); }
.th-carrow { display: flex; flex-shrink: 0; width: 24px; height: 24px; padding: 4px; border-radius: 100px;
             background: #ceac75 url("hdr/arrow.7a60d517.svg") center/16px 16px no-repeat; opacity: 0;
             transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.th-card:focus-visible { outline: 2px solid #c6a064; outline-offset: 2px; }
.th-card:focus-visible .th-carrow { opacity: 1; transform: none; }

/* ── плашка «Скачай приложение» в панели «Сервисы» ──
   Копия AppDownloadBanner_menu с shipping.trely.io (27.11.2026): размеры
   образца в rem при корне 10px переведены в px. Узкая версия — до 560px
   ширины самой плашки (у образца @container 56rem), широкая — дальше. */
.th-app { flex-shrink: 0; width: 100%; container-type: inline-size; }
.th-app-b { --th-ss: 1; position: relative; height: 222px; overflow: hidden; border-radius: 20px;
            background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 339 222' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)' opacity='1'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(29.85 20.65 -31.533 45.582 14.5 15.5)'><stop stop-color='rgba(98,65,41,1)' offset='0'/><stop stop-color='rgba(120,88,61,1)' offset='0.25'/><stop stop-color='rgba(142,111,82,1)' offset='0.5'/><stop stop-color='rgba(185,157,122,1)' offset='1'/></radialGradient></defs></svg>") 50% center / 100% 100% no-repeat; }
.th-app-b span, .th-app-b p, .th-app-b a { box-sizing: border-box; }
.th-app-wave { position: absolute; display: block; pointer-events: none;
               background: center / 100% 100% no-repeat; }
.th-app-wave--c { top: -208px; left: -29.4px; width: 408.3px; height: 643.1px; transform: rotate(-60.31deg);
                  background-image: url("hdr/app-wave-phone.6db3ab9a.svg"); }
.th-app-wave--w { top: -371.9px; left: 246.6px; display: none; width: 725.9px; height: 1143.2px;
                  transform: rotate(153.85deg); background-image: url("hdr/app-wave-menu.4f594775.svg"); }
.th-app-logo { position: absolute; top: 12px; left: 12.6px; width: 25.3px; height: 31.3px;
               background: url("hdr/app-logo.a9015125.svg") center / 100% 100% no-repeat; }
.th-app-title { position: absolute; top: 51px; left: 14px; z-index: 1; width: 161px; margin: 0; color: #fff;
                font-family: "Inter Tight", Inter, sans-serif; font-size: 22px; font-weight: 600;
                line-height: 22px; letter-spacing: -.22px; }
.th-app-title > span { display: block; }
.th-app .th-app-muted { color: rgba(255,255,255,.6); }
.th-app-stores { position: absolute; top: 132px; left: 12px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.th-app .th-app-store { display: flex; align-items: center; gap: calc(4.187px * var(--th-ss));
                    width: calc(114px * var(--th-ss));
                    padding: calc(4.187px * var(--th-ss)) calc(6.28px * var(--th-ss)) calc(4.187px * var(--th-ss)) calc(4.187px * var(--th-ss));
                    border-radius: calc(8.373px * var(--th-ss)); color: #fefefe; text-decoration: none;
                    background-color: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(31.4px);
                    backdrop-filter: blur(31.4px); transition: background-color .2s; }
.th-app .th-app-store:hover { background-color: rgba(255,255,255,.2); }
.th-app-store:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.th-app-ico { display: block; flex-shrink: 0; height: calc(25.12px * var(--th-ss)); background: center / 100% 100% no-repeat; }
.th-app-ico--ios { width: calc(25.12px * var(--th-ss)); background-image: url("hdr/app-store.6255fabf.svg"); }
.th-app-ico--gp { width: calc(22.3px * var(--th-ss)); background-image: url("hdr/app-google-play.d2b9812a.svg"); }
.th-app-stext { display: flex; flex-direction: column; gap: calc(4.187px * var(--th-ss)); white-space: nowrap;
                font-family: "Inter Tight", Inter, sans-serif; text-align: left; }
.th-app-cap { color: rgba(254,254,254,.6); font-size: calc(7.85px * var(--th-ss));
              line-height: calc(8.373px * var(--th-ss)); letter-spacing: -.0785px; }
.th-app-name { color: #fefefe; font-size: calc(13.607px * var(--th-ss)); font-weight: 500;
               line-height: calc(13.607px * var(--th-ss)); letter-spacing: -.1361px; }
.th-app-phone { position: absolute; top: -46px; right: 7.1px; display: block; width: 189.9px; height: 373px;
                overflow: hidden; pointer-events: none; }
.th-app-frame { position: absolute; top: 0; left: -177.4px; display: block; width: 367.4px; height: 373px;
                background: url("hdr/app-phone-frame.86f4e63d.webp") center / 100% 100% no-repeat; }
.th-app-screen { position: absolute; top: 58.9px; left: -4.6px; display: block; width: 183.2px; height: 303.1px;
                 background: url("hdr/app-phone-screen.b0dee57c.webp") center / 100% 100% no-repeat; }
/* Та же плашка в теле страницы (блог, маршруты, категории): разметка
   из app_banner_html(), обёртка-слот задаёт только отступы. */
.th-app-slot { margin-block: 40px; }
.th-app-slot .th-app { max-width: 100%; }
/* В секции-контейнере (маршруты, категории) отступы даёт сама секция. */
.container > .th-app-slot:only-child { margin-block: 0; }
@container (min-width: 560px) {
  .th-app-b { --th-ss: 1.1853; height: 200px; background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 600 200' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)' opacity='1'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(49.7 15.2 -45.6 149.1 79.5 37)'><stop stop-color='rgba(104,72,47,1)' offset='0'/><stop stop-color='rgba(124,94,67,1)' offset='0.25'/><stop stop-color='rgba(144,116,88,1)' offset='0.5'/><stop stop-color='rgba(184,159,128,1)' offset='1'/></radialGradient></defs></svg>"); }
  .th-app-wave--c { display: none; }
  .th-app-wave--w { display: block; }
  .th-app-logo { top: 16px; left: 16px; width: 27.4px; height: 33.8px; }
  .th-app-title { top: 64px; left: 16px; width: 294px; font-size: 27.278px; line-height: 30.309px; letter-spacing: -.2728px; }
  .th-app-stores { top: 141.15px; left: 16px; flex-direction: row; gap: 7.11px; }
  .th-app-phone { top: -52px; right: 65.1px; }
}

@media (hover: hover) and (pointer: fine) {
  .th-product:hover { background-color: #f6f6f6; }
  .th-product:hover .th-tile { background-color: #fff; }
  .th-product:hover .th-pchev { opacity: .5; }
  .th-card:hover .th-carrow { opacity: 1; transform: none; }
}

/* ── выпадающие списки: «Профиль» и «бургер» ── */
.th-drop { position: absolute; top: calc(100% + 31px); right: 0; z-index: 101; display: flex;
           flex-direction: column; gap: 6px; width: 222px; padding: 8px; border-radius: 24px;
           background-color: #fff; box-shadow: 0 8px 32px rgba(39,60,63,.1); transform-origin: right top;
           animation: th-fade-up .2s cubic-bezier(.16,1,.3,1); }
.th-drop[hidden] { display: none; }
.th-drop.is-closing { animation: th-fade-down .15s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes th-fade-up { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes th-fade-down { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(8px); } }

.th-user { display: flex; align-items: center; gap: 6px; margin: -4px; padding: 4px; border-radius: 16px;
           outline: none; transition: background-color .2s; }
.th-gava { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 42px; height: 42px;
           border-radius: 100px; background-color: #f6f6f6; color: #0f1014; }
.th-gava svg { width: 20px; height: 20px; }
.th-utext { display: flex; flex-direction: column; min-width: 0; font-weight: 500; }
.th-uname, .th-umail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-uname { font-size: 14px; line-height: 22px; color: #000; }
.th-umail { font-size: 12px; line-height: 20px; color: rgba(0,0,0,.5); }
.th-group { display: flex; flex-direction: column; border-radius: 16px; background-color: #f6f6f6; overflow: hidden; }
.th-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px;
          border-bottom: 1px solid rgba(0,0,0,.05); outline: none; transition: background-color .2s; }
a.th-row, button.th-row { cursor: pointer; }
.th-row:last-child { border-bottom: none; }
.th-rlead { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; line-height: 22px;
            color: #000; white-space: nowrap; }
.th-ricon { flex-shrink: 0; width: 20px; height: 20px; background: center/20px 20px no-repeat; }
.th-ricon--user { background-image: url("hdr/menu-user.bb30cc8d.svg"); }
.th-ricon--globe { background-image: url("hdr/menu-globe.2237e6dc.svg"); }
.th-ricon--list { background-image: url("hdr/menu-list.42081247.svg"); }
.th-ricon--parcel { background-image: url("hdr/menu-parcel.34b38818.svg"); }
.th-ricon svg { display: block; width: 20px; height: 20px; }
.th-rmeta { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 20px; color: rgba(0,0,0,.5);
            white-space: nowrap; }
.th-rdot { width: 3px; height: 3px; border-radius: 100px; background-color: rgba(0,0,0,.15); }
.th-user:hover, .th-user:focus-visible, a.th-row:hover, a.th-row:focus-visible { background-color: rgba(0,0,0,.03); }

.th .th-burger { display: none; align-items: center; justify-content: center; width: 36px; height: 36px;
             padding: 8px; border-radius: 10px; background: rgba(0,0,0,.03); transition: background .2s; }
.th .th-burger:active { background: rgba(0,0,0,.08); }
.th-burger span { position: relative; display: block; width: 12px; height: 1px; background-color: #000;
                  transition: background-color .2s; }
.th-burger span::before, .th-burger span::after { content: ""; position: absolute; left: 0; width: 12px; height: 1px;
                  background-color: #000; transition: transform .2s; }
.th-burger span::before { top: -4px; }
.th-burger span::after { bottom: -4px; }
.th-burger[aria-expanded="true"] span { background-color: transparent; }
.th-burger[aria-expanded="true"] span::before { transform: translateY(4px) rotate(45deg); }
.th-burger[aria-expanded="true"] span::after { transform: translateY(-4px) rotate(-45deg); }

/* ── меню «бургера»: выезжает справа под шапкой, как у образца ── */
.th-sheet[hidden] { display: none; }
.th-overlay { position: fixed; top: calc(var(--th-h, 70px) - 2px); right: 0; bottom: 0; left: 0; z-index: 98;
              background: rgba(0,0,0,.5); animation: th-overlay-in .15s cubic-bezier(.16,1,.3,1); }
.th-sheet-in { position: fixed; top: calc(var(--th-h, 70px) - 2px); right: 0; bottom: 0; z-index: 99;
               width: 100%; max-width: 320px; background: #fff; outline: none;
               animation: th-slide-in .25s cubic-bezier(.16,1,.3,1); }
.th-sheet.is-closing .th-overlay { animation: th-overlay-out .15s forwards; }
.th-sheet.is-closing .th-sheet-in { animation: th-slide-out .15s forwards; }
@keyframes th-overlay-in { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes th-overlay-out { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes th-slide-in { 0% { transform: translateX(100%); } 100% { transform: translateX(0); } }
@keyframes th-slide-out { 0% { transform: translateX(0); } 100% { transform: translateX(100%); } }
.th-menu { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 32px 20px; }
.th-mtop { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.th-mtitle { font-size: 14px; line-height: 22px; font-weight: 400; color: rgba(0,0,0,.4); text-transform: uppercase;
             letter-spacing: 1.12px; text-align: center; }
.th-mlinks { display: flex; flex-direction: column; gap: 6px; }
.th .th-mlink { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 16px 10px;
                text-align: center; font-size: 16px; line-height: 24px; font-weight: 400; color: #000;
                transition: color .3s; }
.th-mlink:active { transition: opacity .1s; opacity: .7; }
.th-mbottom { display: flex; flex-direction: column; gap: 16px; margin: 0 -20px -32px; padding: 40px 20px 20px; }
.th-locale { display: none; align-self: center; align-items: center; gap: 6px; padding: 6px 8px 6px 12px;
             border: 1px solid rgba(0,0,0,.05); border-radius: 12px; background: #fff; color: #000;
             font-size: 16px; font-weight: 500; line-height: 24px; white-space: nowrap; }
.th-locale svg { flex-shrink: 0; }
.th-mactions { display: flex; flex-direction: column; gap: 12px; }
.th .th-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px;
              padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 22px;
              text-align: center; transition: opacity .2s; }
.th .th-btn:active { opacity: .7; }
.th .th-btn--dark { background-color: #273c3f; color: #fff; }
.th .th-btn--gold { background-color: #c6a064; color: #fff; }
.th .th-btn--light { background-color: rgba(39,60,63,.05); color: #4a6b6f; }
@media (hover: hover) and (pointer: fine) {
  .th .th-burger:hover { background: rgba(0,0,0,.05); }
  .th .th-mlink:hover { color: #ceac75; }
  .th-locale:hover { background: #f8f6f1; }
}

/* ── узкие экраны — пороги образца ── */
@media (max-width: 1366px) { .th-actions { gap: 16px; } .th-right { gap: 12px; } }
@media (max-width: 1100px) {
  .th-in { grid-template-columns: auto 1fr; }
  .th-actions { display: none; }
  .th-burger-wrap, .th .th-burger { display: flex; }
}
@media (max-width: 850px) {
  .th-in { padding: 0 20px; }
  .th-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 766px) {
  .th { --th-h: 57px; }
  .th-panel { top: calc(var(--th-h, 70px) + 8px); flex-direction: column; width: auto;
              max-height: calc(100dvh - var(--th-h, 70px) - 16px); margin-inline: 10px; overflow-y: auto; }
  .th-products { flex-direction: row; gap: 6px; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .th-products::-webkit-scrollbar { display: none; }
  .th .th-product { flex-shrink: 0; width: auto; padding: 8px 14px; border-radius: 100px; background-color: #f6f6f6; }
  .th-product[aria-selected="true"] { background-color: rgba(198,160,100,.1); }
  .th-product[aria-selected="true"] .th-plabel { color: #ceac75; }
  .th-tile, .th-pchev { display: none; }
  .th-plabel { font-size: 14px; line-height: 20px; }
  .th-links { gap: 12px; padding: 16px; }
}
@media (max-width: 600px) {
  .th { --th-h: 50px; }
  .th-sheet-in { max-width: none; }
  .th-locale { display: flex; }
  .th-in { gap: 8px; padding: 0 10px; }
  .th-brand { gap: 3px; font-size: 15px; line-height: 20px; }
  .th-name { gap: 4px; }
  .th-logo { width: 16px; height: 20px; }
  .th-pill { padding: 2px 6px; }
  .th-right { gap: 4px; }
  .th-trig { gap: 5px; padding: 6px; }
  .th-svc .th-trig-icon { width: 15px; height: 15px; }
  .th-svc .th-trig-label { font-size: 14px; line-height: 20px; }
  .th-prof .th-trig-label { display: none; }
  .th-chev { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .th-panel, .th-panel.is-closing, .th-products > *, .th-links, .th-drop, .th-drop.is-closing,
  .th-overlay, .th-sheet-in, .th-sheet.is-closing .th-overlay, .th-sheet.is-closing .th-sheet-in { animation: none; }
}
/* ── Коричневые блоки экосистемы ──
   27.11.2026, решение руководителя: все тёмно-зелёные плашки и блоки
   страниц перекрашены в стиль плашки приложения и рекламных плашек —
   коричневый градиент со светлой волной. Правило живёт в пакете меню,
   потому что его css стоит на каждой странице каждого сайта: одно место
   вместо пяти шаблонов. `body` в селекторе — чтобы перебить стили
   страницы, где бы они ни стояли. Мелкие элементы (кнопки, галочки,
   номера страниц) остаются зелёными: это не блоки, а управление. */
body .final-cta, body .forbidden, body .forbidden-block, body div.route-card,
body .traveler, body .soon, body .pd-card.pd-quad--tr, body .pd-cell--core {
  background-color: #7C5E43;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1155' height='1346' viewBox='0 0 1155.4 1346.1' fill='none'%3E%3Cg transform='translate(577.7 673.1) rotate(153.85) translate(-362.9 -571.6)'%3E %3Cpath d='M397.427 689.899L387.129 761.62L387.129 761.621L397.427 689.899ZM568.157 423.81L549.2 493.743V493.743L568.157 423.81ZM607.319 1137.91C644.416 1152.92 686.653 1135.01 701.658 1097.91C716.664 1060.82 698.754 1018.58 661.657 1003.57L634.488 1070.74L607.319 1137.91ZM73.3432 411.426L1.05388 416.355V416.355L73.3432 411.426ZM397.427 689.899L387.129 761.621C400.51 763.542 413.697 764.697 426.66 765.125L429.052 692.707L431.444 620.29C423.841 620.039 415.932 619.356 407.725 618.177L397.427 689.899ZM429.052 692.707L426.66 765.125C558.161 769.469 662.342 698.636 705.117 609.23C726.489 564.558 734.378 510.317 714.053 459.259C692.921 406.172 646.71 370.031 587.115 353.876L568.157 423.81L549.2 493.743C573.836 500.421 578.345 510.168 579.414 512.854C581.291 517.568 582.863 528.986 574.393 546.688C557.484 582.032 507.881 622.815 431.444 620.29L429.052 692.707ZM568.157 423.81L587.115 353.876C542.87 341.883 498.232 344.663 458.851 366.873C421.005 388.217 396.714 422.611 381.47 457.478C351.716 525.533 347.329 615.447 357.06 700.905L429.052 692.707L501.044 684.51C492.602 610.377 499.194 549.964 514.249 515.529C521.409 499.151 527.98 494.258 530.038 493.097C530.562 492.802 534.87 489.858 549.2 493.743L568.157 423.81ZM429.052 692.707L357.06 700.905C366.851 786.886 392.062 878.437 431.415 956.216C469.84 1032.16 527.225 1105.52 607.319 1137.91L634.488 1070.74L661.657 1003.57C628.648 990.222 592.263 953.137 560.721 890.794C530.105 830.282 509.15 755.69 501.044 684.51L429.052 692.707ZM397.427 689.899L407.725 618.177C368.025 612.477 303.871 603.434 247.751 572.248C196.015 543.499 151.781 496.685 145.633 406.498L73.3432 411.426L1.05388 416.355C11.0989 563.689 90.3713 650.579 177.361 698.919C259.967 744.823 349.757 756.255 387.129 761.62L397.427 689.899ZM73.3432 411.426L145.633 406.498C139.284 313.376 176.39 252.288 221.048 210.439C267.812 166.616 322.863 144.511 344.067 137.407L321.048 68.7034L298.029 0C266.912 10.4258 190.014 40.9215 121.957 104.697C51.7946 170.447 -8.79102 271.955 1.05388 416.355L73.3432 411.426Z' fill='url(%23paint0_linear_0_4)' fill-opacity='0.1'/%3E %3Cdefs%3E %3ClinearGradient id='paint0_linear_0_4' x1='350.79' y1='301.136' x2='350.79' y2='1025.4' gradientUnits='userSpaceOnUse'%3E %3Cstop stop-color='%23D8D1CD'/%3E %3Cstop offset='1' stop-color='%23E1E1E1'/%3E %3C/linearGradient%3E %3C/defs%3E %3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 90% 180% at 10% 16%, #624129 0%, #78583D 28%, #8E6F52 58%, #B39877 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right -578px bottom -673px, 0 0;
  background-size: 1155px 1346px, 100% 100%;
}
/* Кнопки и акценты внутри коричневых блоков — как на плашке приложения:
   главная кнопка белая, вторая стеклянная, золотое слово светлее.
   !important — у кнопок цвет текста задан прямо в разметке. */
body :is(.final-cta, .traveler, .forbidden, .forbidden-block, .soon) .btn-gold {
  background: #fff !important; color: #3E2A1B !important; }
body :is(.final-cta, .traveler, .forbidden, .forbidden-block, .soon) .btn-gold:hover {
  background: #F7F1E8 !important; }
body :is(.final-cta, .traveler, .forbidden, .forbidden-block, .soon) :is(.btn-outline, .btn-outline-light) {
  background: rgba(255,255,255,.14) !important; border-color: transparent !important; color: #fff !important;
  -webkit-backdrop-filter: blur(31px); backdrop-filter: blur(31px); }
body :is(.final-cta, .traveler, .forbidden, .forbidden-block, .soon) :is(.btn-outline, .btn-outline-light):hover {
  background: rgba(255,255,255,.24) !important; }
/* Золото на коричневом не читается (замечание руководителя): акценты —
   белые, служебные значки — стеклянные с белым, как на плашке приложения. */
body :is(.final-cta, .traveler, .forbidden, .forbidden-block, .soon, div.route-card) .gold-num { color: #fff; }
body div.route-card .plane-icon { background: rgba(255,255,255,.16) !important; color: #fff !important;
  -webkit-backdrop-filter: blur(31px); backdrop-filter: blur(31px); }
body div.route-card .dot { background: #fff !important; }
body div.route-card .sep { color: rgba(255,255,255,.5) !important; }
body :is(.forbidden, .forbidden-block) .warn { background: rgba(255,255,255,.16) !important; color: #fff !important; }
body .soon .soon-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
body .soon .soon-badge { background: rgba(255,255,255,.14); color: #fff; }
body :is(.forbidden, .forbidden-block) li::before { color: rgba(255,255,255,.6) !important; }
