/* ==========================================================================
   Страницы технологий (tehnologii/*.html). Токены и кнопки — из main.css.
   ========================================================================== */
.tp { background: var(--bg); }
.tp .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* шапка */
.tp-header { position: sticky; top: 0; z-index: 50; background: rgba(8,9,11,.82); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.tp-header__bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.tp-header .logo { height: 24px; color: #fff; }
.tp-nav { display: flex; gap: 4px; margin-left: auto; }
.tp-nav a { padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.tp-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
@media (max-width: 760px) { .tp-nav { display: none; } .tp-header .btn { margin-left: auto; } }

/* крошки */
.tp-crumbs ol { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px/1.4 var(--f-mono); color: var(--muted); }
.tp-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.tp-crumbs a:hover { color: var(--orange-3); }
.tp-crumbs [aria-current] { color: var(--text-2); }

/* первый экран */
.tp-hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 70% at 85% 30%, rgba(255,90,31,.14), transparent 70%); }
.tp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask: radial-gradient(60% 80% at 80% 35%, #000, transparent 75%); mask: radial-gradient(60% 80% at 80% 35%, #000, transparent 75%); }
.tp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tp-h1 { font-family: var(--f-display); font-weight: 700; letter-spacing: var(--ls-display); line-height: 1.02; font-size: calc(clamp(34px, 4.6vw, 70px) * var(--fs-k)); margin: 18px 0 0; text-wrap: balance; }
.tp-hero .lead { margin: 22px 0 0; }
.tp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tp-stage { position: relative; aspect-ratio: 5 / 4; border-radius: 28px; border: 1px solid var(--line-2); display: grid; place-items: center; padding: 12%;
  background: radial-gradient(70% 60% at 50% 55%, rgba(255,90,31,.2), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: 0 50px 100px -50px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden; }
.tp-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px); background-size: 16px 16px;
  -webkit-mask: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%); mask: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%); opacity: .7; }
.tp-stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 14%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,90,31,.6), transparent); }
.tp-stage img { position: relative; width: auto; height: auto; max-width: 100%; max-height: 150px; filter: drop-shadow(0 18px 34px rgba(0,0,0,.65)); }
.tp-stage .tword { position: relative; }
.tp-stage .tword__main { font-size: clamp(48px, 6vw, 76px); }
.tp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 64px); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: rgba(13,15,18,.7); }
.tp-facts div { padding: 22px 24px; display: grid; gap: 6px; min-width: 0; }
.tp-facts div + div { border-left: 1px solid var(--line); }
.tp-facts b { font: 700 clamp(24px, 2.6vw, 36px)/1.05 var(--f-display); letter-spacing: -.03em; color: #fff; overflow-wrap: anywhere; }
.tp-facts span { font-size: 14px; color: var(--muted); }

/* секции */
.tp-sec { padding: clamp(56px, 8vw, 104px) 0 0; }
.tp-sec:last-of-type { padding-bottom: clamp(56px, 8vw, 104px); }
.tp-h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: calc(var(--ls-display) + .01em); line-height: 1.06; font-size: calc(clamp(28px, 3.4vw, 48px) * var(--fs-k)); margin: 0 0 28px; text-wrap: balance; }
.tp-h3 { font-family: var(--f-display); font-weight: 600; font-size: 20px; margin: 44px 0 16px; }

.tp-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.tp-about p { color: var(--text-2); font-size: 17.5px; line-height: 1.7; margin: 0 0 18px; max-width: 66ch; }
.tp-short { position: sticky; top: 92px; padding: 26px; border-radius: 20px; border: 1px solid rgba(255,90,31,.3); background: linear-gradient(180deg, rgba(255,90,31,.08), rgba(255,90,31,.02)); }
.tp-short h3 { margin: 0 0 14px; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); }
.tp-short ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tp-short li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.5; }
.tp-short li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px 5px 2px 2px; background: var(--orange); }

.tp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.tp-steps li { position: relative; padding: 28px 26px 26px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.tp-steps li:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -14px; width: 14px; height: 1px; background: var(--orange); }
.tp-step__n { font: 600 12px/1 var(--f-mono); color: var(--orange); }
.tp-steps h3 { font-family: var(--f-display); font-weight: 600; font-size: 20px; margin: 18px 0 10px; }
.tp-steps p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }

.tp-gains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tp-gain { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-1); }
.tp-gain h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.tp-gain p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.tp-where { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tp-where li { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); font-size: 14.5px; font-weight: 600; }

.tp-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tp-model { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); transition: border-color .3s, background .3s; }
.tp-model:hover { border-color: rgba(255,90,31,.5); background: rgba(255,90,31,.05); }
.tp-model b { font: 600 14.5px/1.3 var(--f-mono); color: #fff; overflow-wrap: anywhere; }
.tp-model span { grid-column: 1; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.tp-model em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tp-note { color: var(--text-2); font-size: 16px; padding: 22px 24px; border-radius: 16px; border: 1px dashed var(--line-2); margin: 0; }
.tp-note a { color: var(--orange-3); }

.tp-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); }
.tp-faq details { border-bottom: 1px solid var(--line); }
.tp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 17.5px; font-weight: 700; }
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary::after { content: "+"; font: 500 22px/1 var(--f-mono); color: var(--orange); transition: transform .3s var(--ease-out); }
.tp-faq details[open] summary::after { transform: rotate(45deg); }
.tp-faq details p { margin: 0 0 22px; color: var(--text-2); line-height: 1.65; max-width: 70ch; }

.tp-others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tp-other { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 130px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); transition: border-color .3s, transform .4s var(--ease-out); }
.tp-other:hover { border-color: rgba(255,90,31,.5); transform: translateY(-2px); }
.tp-other img { width: auto; height: auto; max-width: 80%; max-height: 46px; }
.tp-other .tword__main { font-size: 30px; }
.tp-other .tword__sub { display: none; }
.tp-other span:last-child { font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* хаб */
.tp-hero--hub .lead { max-width: 64ch; }
.tp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tp-card { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); transition: border-color .3s, transform .5s var(--ease-out); }
.tp-card:hover { border-color: rgba(255,90,31,.5); transform: translateY(-2px); }
.tp-card__cat { align-self: flex-start; font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-3); padding: 6px 9px; border-radius: 999px; border: 1px solid rgba(255,90,31,.25); background: rgba(255,90,31,.06); }
.tp-card__stage { display: grid; place-items: center; height: 130px; margin: 18px -26px; border-block: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 60%, rgba(255,90,31,.12), transparent 70%); }
.tp-card__stage img { width: auto; height: auto; max-width: 74%; max-height: 72px; }
.tp-card__stage .tword__main { font-size: 44px; }
.tp-card h2 { font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.2; margin: 6px 0 10px; }
.tp-card p { margin: 0 0 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; flex: 1; }
.tp-card__more { font-weight: 700; font-size: 14px; color: var(--orange-3); }

.tp-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.tp-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 1000px) {
  .tp-gains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .tp-hero__grid, .tp-about, .tp-faq { grid-template-columns: 1fr; }
  .tp-stage { aspect-ratio: 16 / 9; }
  .tp-short { position: static; }
  .tp-steps { grid-template-columns: 1fr; }
  .tp-steps li:not(:last-child)::after { display: none; }
  .tp-models { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tp-facts { grid-template-columns: 1fr; }
  .tp-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .tp-gains, .tp-cards { grid-template-columns: 1fr; }
  .tp-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-model { grid-template-columns: 1fr; }
  .tp-model em { grid-row: auto; grid-column: 1; }
}

/* кадр сценария */
.tp-shot figure { position: relative; margin: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 1344 / 640; box-shadow: 0 60px 120px -60px rgba(0,0,0,.9); }
.tp-shot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--ease-out); }
.tp-shot figure:hover .tp-shot__img { transform: scale(1.03); }
.tp-shot figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,9,11,.85) 0%, transparent 42%), linear-gradient(90deg, rgba(8,9,11,.35), transparent 40%); pointer-events: none; }
.tp-shot figcaption { position: absolute; z-index: 1; left: clamp(18px, 3vw, 36px); right: clamp(18px, 3vw, 36px); bottom: clamp(18px, 3vw, 32px); max-width: 60ch; font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; line-height: 1.45; color: #fff; text-wrap: balance; }
.tp-shot figcaption span { display: block; margin-bottom: 10px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-3); }
@media (max-width: 640px) { .tp-shot figure { aspect-ratio: 4 / 3; border-radius: 20px; } }

/* миниатюры моделей */
.tp-model { grid-template-columns: 72px minmax(0, 1fr) auto; }
.tp-model__img { grid-row: 1 / span 2; display: grid; place-items: center; width: 72px; height: 56px; border-radius: 12px; background: radial-gradient(60% 70% at 50% 60%, rgba(255,90,31,.14), transparent 70%), var(--bg-2); }
.tp-model__img img { max-width: 62px; max-height: 46px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.tp-model b { grid-column: 2; }
.tp-model .tp-model__d { grid-column: 2; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.tp-model em { grid-column: 3; }
@media (max-width: 560px) { .tp-model { grid-template-columns: 64px minmax(0, 1fr); } .tp-model em { grid-column: 2; grid-row: auto; } }

/* фото в карточках хаба */
.tp-card__stage { position: relative; height: 170px; overflow: hidden; isolation: isolate; }
.tp-card__stage .tp-card__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; opacity: .55; transition: opacity .5s, transform 1.2s var(--ease-out); }
.tp-card__stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(8,9,11,.35), rgba(8,9,11,.9)); }
.tp-card:hover .tp-card__stage .tp-card__bg { opacity: .8; transform: scale(1.05); }
.tp-card__stage img:not(.tp-card__bg) { filter: drop-shadow(0 8px 20px rgba(0,0,0,.8)); }

/* мягкие hover-движения */
.tp-card, .tp-other { transition: border-color .4s, transform .8s var(--ease-soft); }
.tp-shot__img { transition: transform 2s var(--ease-soft); }
.tp-card__stage .tp-card__bg { transition: opacity .6s, transform 1.6s var(--ease-soft); }

/* ==========================================================================
   Решения под тип объекта
   ========================================================================== */
.sol-hero .lead { max-width: 64ch; }
.sol-n { display: block; margin-bottom: 14px; font: 600 12px/1 var(--f-mono); color: var(--orange-3); letter-spacing: .08em; }
.sol-sub { color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 62ch; margin: 14px 0 0; }
.sol-sub b { color: var(--text); font-weight: 600; }
.sol-zones-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.sol-zones-wrap > div { position: sticky; top: 96px; }
.sol-zones { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: z; }
.sol-zone { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); transition: border-color .5s var(--ease-soft); }
.sol-zone:hover { border-color: rgba(255,90,31,.45); }
.sol-zone__n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgba(255,90,31,.45); background: radial-gradient(120% 120% at 30% 0%, rgba(255,122,61,.28), rgba(255,90,31,.06)); font: 600 15px/1 var(--f-mono); color: #fff; }
.sol-zone h3 { margin: 4px 0 8px; font: 600 19px/1.25 var(--f-display); letter-spacing: -.01em; }
.sol-zone p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.sol-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sol-chips a { font: 500 12px/1 var(--f-mono); padding: 7px 9px; border-radius: 8px; color: var(--orange-3); background: rgba(255,90,31,.08); border: 1px solid rgba(255,90,31,.2); transition: background .3s, color .3s; }
.sol-chips a:hover { background: rgba(255,90,31,.16); color: #fff; }
.sol-kit__head { margin-bottom: 28px; }
.sol-kit__item { position: relative; }
.sol-qty { position: absolute; top: 12px; right: 12px; z-index: 1; font: 600 12px/1 var(--f-mono); padding: 6px 8px; border-radius: 8px; background: rgba(8,9,11,.82); border: 1px solid var(--line-2); color: #fff; }
.sol-kit .pc__d { -webkit-line-clamp: 2; }
.sol-techs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sol-card { display: grid; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-1); transition: border-color .5s var(--ease-soft), transform .9s var(--ease-soft); }
.sol-card:hover { border-color: rgba(255,90,31,.45); transform: translateY(-3px); }
.sol-card__img { display: block; aspect-ratio: 16 / 8; overflow: hidden; }
.sol-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-soft); }
.sol-card:hover .sol-card__img img { transform: scale(1.04); }
.sol-card__body { display: grid; gap: 8px; padding: 22px 24px 26px; }
.sol-card__body b { font: 600 22px/1.2 var(--f-display); letter-spacing: -.015em; }
.sol-card__body > span:last-child { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.sol-others { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sol-card--sm b { padding: 14px 16px 16px; font: 600 15px/1.3 var(--f-display); }
.sol-card--sm .sol-card__img { aspect-ratio: 16 / 10; }
@media (max-width: 1000px) { .sol-others { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sol-techs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .sol-zones-wrap { grid-template-columns: 1fr; } .sol-zones-wrap > div { position: static; } .sol-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sol-others { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sol-zone { grid-template-columns: 1fr; gap: 12px; padding: 18px; } }

/* меню для телефона на внутренних страницах */
.tp-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); place-items: center; align-content: center; gap: 5px; cursor: pointer; order: 3; flex: none; }
.tp-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease-soft), opacity .25s; }
.tp-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.tp-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 760px) {
  .tp-burger { display: grid; }
  .tp-header__bar { gap: 12px; }
  .tp-header .btn { margin-left: auto; padding-inline: 14px; }
  .tp-nav { display: flex; position: fixed; left: 0; right: 0; top: 69px; flex-direction: column; gap: 2px; margin: 0;
    padding: 12px max(16px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
    min-height: calc(100dvh - 69px); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease-soft), transform .4s var(--ease-soft), visibility 0s .4s; }
  .tp-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease-soft), transform .4s var(--ease-soft); }
  .tp-nav a { padding: 14px 12px; font-size: 18px; border-radius: 12px; }
}
html.menu-open { overflow: hidden; }

/* ---------- подвал внутренних страниц: ссылки на разделы и служебные страницы (tools/footer_links.py) ---------- */
.tp-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tp-footer__nav a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .25s; }
.tp-footer__nav a:hover { color: #fff; }
/* логотип: область нажатия не меньше 44 точек по высоте */
.tp-header .logo { position: relative; }
.tp-header .logo::after { content: ""; position: absolute; inset: -10px -6px; }
/* артикул в заголовке раздела на телефоне не рвётся по дефису: шрифт чуть меньше, части артикула целиком */
@media (max-width: 640px) {
  .tp-h2:has(.nw) { font-size: clamp(21px, 6.2vw, 26px); }
  .tp-h2:has(.nw) .nw { white-space: nowrap; }
}

/* ---------- поиск по каталогу в шапке внутренних страниц (tools/search.py, assets/js/search.js) ---------- */
.tp-search { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px 0 13px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--text-2); font: 600 13.5px/1 var(--f-body); cursor: pointer; flex: none; white-space: nowrap;
  transition: border-color .25s, color .25s, background .25s; }
.tp-search:hover { border-color: var(--line-2); color: #fff; background: rgba(255,255,255,.07); }
.tp-search:focus-visible, .tp-nav__search:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 2px; }
.tp-search svg { width: 16px; height: 16px; flex: none; }
.tp-search kbd { font: 500 11px/1 var(--f-mono); padding: 5px 7px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.tp-nav__search { display: none; }
@media (max-width: 1320px) { .tp-search { width: 40px; padding: 0; justify-content: center; } .tp-search span, .tp-search kbd { display: none; } }
@media (max-width: 760px) {
  /* телефон: значок в шапке (на узких экранах ему нет места — поиск стоит первой строкой в меню) */
  .tp-header .tp-search { margin-left: auto; }
  .tp-header .tp-search ~ .btn, .tp-header .tp-search ~ .rfq-btn { margin-left: 0; }
  .tp-nav__search { display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 16px; margin-bottom: 8px; border-radius: 14px;
    border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text-2); font: 500 16px/1 var(--f-body); cursor: pointer; text-align: left; }
  .tp-nav__search svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
}
@media (max-width: 460px) { .tp-header .tp-search { display: none; } .tp-header .btn, .tp-header .rfq-btn { margin-left: auto !important; } }
/* шапка на планшете и узком окне: логотип и кнопки не сжимаются, вместо этого по мере сужения убираются подписи.
   Ширины посчитаны по сумме элементов: логотип 99, меню 395–487, поиск 40/184, корзина 76/144, «Запросить цену» 150. */
.tp-header .logo, .tp-header .btn { flex: none; }
.tp-header .btn { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1160px) {
  .tp-header__bar { gap: 12px; }
  .tp-nav { gap: 0; }
  .tp-nav a { padding-inline: 9px; }
}
@media (min-width: 761px) and (max-width: 1000px) { .tp-header .rfq-btn span { display: none; } }
@media (min-width: 761px) and (max-width: 920px) { .tp-header .btn--primary { display: none; } }
