/* 16.11 v3 «studio»: owner «в конце я хочу увидеть сайт формата огромных студий… а не мелкие правки в текущем дизайне»,
   «везде на сайте сделать наши красивейшие материалы», «анимируй эти 3д модельки».
   Research: pirs-host/research/29 (23 sites measured, 3D and materials). What this layer adds over v2:
   - our own models (pirs-promo/scene/kit) as stills that turn into loops (k3d.js);
   - the site's materials as tokens: «Причал» (the surface content stands on), «Свет» (the lamp's pool under a model);
   - the display face is our own (Onest, the face of the wordmark), numbers stand in columns;
   - one hairline per surface, never a border and a ring together (owner 16.11: no double outlines);
   - motion tokens: three durations, one curve. Nothing moves by itself except the models. */
/* ---------- type: our face for what is read first, numbers in columns ---------- */
.v2 .hero-copy h1, .h-sec, .panel-head h2, .cta h2, .lu h3, .tp-side h3, .tr-nums b, .strip b, .brand h1, .brand h2 { font-family: var(--font-display); }
.from b, [data-out="total"], .cmp td.p, .mk-price b, .tr-nums b, .strip b, .app-row .get { font-variant-numeric: tabular-nums; }

/* ---------- the lineup: four lines, equal cards ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lu.bn { align-items: stretch; text-align: left; padding: 0 22px 22px; border: 0; background: var(--m-pier); box-shadow: var(--m-edge); overflow: hidden; isolation: isolate; }
.lu.bn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(16, 22, 36, 0.78); }
.lu.bn::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -8%; width: 110%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--lamp-warm), transparent 72%); pointer-events: none; }
.lu.bn.cool::before { background: radial-gradient(closest-side, var(--lamp-cool), transparent 72%); }
.lu.bn .k3d { width: min(100%, 250px); margin: 10px auto 2px; }
.lu.bn h3 { font-size: 26px; margin: 0 0 6px; }
.lu.bn p { min-height: 42px; max-width: none; }
.lu.bn .from { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 16px; }
.lu.bn .from b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--t1); }
.lu.bn .from small { font-size: 13px; font-weight: 500; color: var(--t3); }
.lu.bn .acts { margin-top: auto; }
.lu.bn .lu-go { width: 100%; min-width: 0; }
.lu .k3d { transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform 0.55s var(--spring); }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .bento { gap: 10px; }
  .lu.bn { padding: 0 14px 14px; border-radius: 22px; }
  .lu.bn .k3d { width: min(100%, 150px); margin: 6px auto 0; }
  .lu.bn h3 { font-size: 20px; margin-bottom: 2px; }
  .lu.bn p { font-size: 13px; line-height: 1.35; min-height: 35px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lu.bn .from { margin: 10px 0 10px; gap: 6px; }
  .lu.bn .from b { font-size: 17px; }
  .lu.bn .from small { font-size: 12px; }
  .lu.bn .lu-go { --h: 40px; font-size: 15px; }
}

/* ---------- «Больше, чем просто сервер»: one block, a switch instead of four sections ---------- */
#more .sec-head { align-items: center; }
.tabp { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.tabp[hidden] { display: none; }
.tabp + .tabp { margin-top: 56px; }                    /* without the script the four lie one under another */
.js .tabp + .tabp { margin-top: 0; }
.tp-side { position: relative; isolation: isolate; }
.tp-side::before { content: ""; position: absolute; z-index: -1; left: -12%; top: -14%; width: 76%; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--lamp-warm), transparent 72%); pointer-events: none; }
.tp-side .k3d { width: min(100%, 290px); margin: -14px 0 2px -16px; }
.tp-side h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
.tp-side .sub-sec { margin: 12px 0 0; }
.tp-side .ticks { margin-top: 18px; }
.tp-main > * { margin: 0; }
.tp-main .locs { margin: 0; }
.tp-main .fold-more { margin-top: 14px; }
@media (max-width: 860px) {
  #more .sec-head { align-items: flex-start; }
  .tabp { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tp-side .k3d { float: right; width: 132px; margin: -6px -6px 4px 10px; }
  .tp-side::before { left: auto; right: -16%; top: -30%; width: 60%; }
  .tp-side .ticks { clear: both; }
  #more .segs { width: 100%; }
  #more .segs button { padding: 0 8px; }
}

/* ---------- «Всё уже включено» ---------- */
.ft .k3d { width: 76px; margin: -6px 0 -6px -8px; }
@media (max-width: 520px) { .ft .k3d { width: 64px; margin: -4px 0 -4px -6px; } }
.need .ne { width: 48px; height: 48px; }

/* ---------- proof: who stands behind the server ---------- */
.trust { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; }
.tr-live, .tr-nums li, .tr-rows { background: var(--m-pier); box-shadow: var(--m-edge); border-radius: var(--r-card); }
.tr-live { grid-row: span 2; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 12px 24px 28px; text-decoration: none; color: inherit; }
.tr-live::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 2%; width: 96%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 190, 120, 0.1), transparent 72%); }
.tr-live .k3d { width: min(100%, 320px); }
.tr-state { display: grid; justify-items: center; text-align: center; margin-top: 4px; }
.tr-state b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tr-state small { font-size: 13px; color: var(--t3); }
.tr-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tr-nums li { padding: 22px 24px; }
.tr-nums b { display: block; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.tr-nums small { display: block; margin-top: 10px; font-size: 14px; line-height: 1.35; color: var(--t2); }
.tr-rows { list-style: none; margin: 0; padding: 4px 24px; }
.tr-rows li + li { border-top: 1px solid var(--line); }
.tr-rows a { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 54px; padding: 6px 0; color: inherit; text-decoration: none; }
.tr-rows span { font-size: 14px; color: var(--t3); }
.tr-rows b { font-size: 15px; font-weight: 600; }
.tr-rows i { font-style: normal; font-size: 20px; color: var(--t3); }
.tr-rows a:hover i { color: var(--t1); }
@media (max-width: 860px) {
  .trust { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tr-live { grid-row: auto; flex-direction: row; justify-content: flex-start; gap: 6px; padding: 4px 18px 4px 4px; border-radius: 22px; }
  .tr-live::before { left: 0; top: -20%; width: 44%; transform: none; }
  .tr-live .k3d { width: 112px; }
  .tr-state { margin-top: 0; justify-items: start; text-align: left; }
  .tr-nums { gap: 10px; }
  .tr-nums li { padding: 16px; border-radius: 22px; }
  .tr-nums small { font-size: 13px; margin-top: 6px; }
  .tr-rows { padding: 2px 16px; border-radius: 22px; }
  .tr-rows a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .tr-rows span { grid-column: 1; font-size: 12px; }
  .tr-rows b { grid-column: 1; font-size: 14px; }
  .tr-rows i { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- a shorter page: measured peers are 5 to 7 screens (research 29a) ---------- */
:root { --sec-gap: clamp(52px, 6vw, 84px); }
.cmp-fold { margin-top: 16px; border-radius: var(--r-card); background: var(--m-pier); box-shadow: var(--m-edge); }
.cmp-fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 12px 0 28px; cursor: pointer; border-radius: inherit; }
.cmp-fold > summary::-webkit-details-marker { display: none; }
.cmp-fold > summary b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.cmp-fold > summary span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--gray); font-size: 15px; font-weight: 600; }
.cmp-fold[open] > summary span { display: none; }
.cmp-fold .cmp-card { background: none; border: 0; box-shadow: none; padding-top: 0; }
@media (max-width: 560px) { .cmp-fold { border-radius: 22px; } .cmp-fold > summary { padding: 0 10px 0 18px; min-height: 58px; } .cmp-fold > summary b { font-size: 16px; } }

/* ---------- /brand/: how PIRS looks and speaks ---------- */
.brand main { padding-top: 96px; }
.br-hero .wrap { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); align-items: center; }
.br-hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.035em; }
.br-hero .lede { margin: 16px 0 0; max-width: 56ch; font-size: 19px; line-height: 1.5; color: var(--t2); }
.br-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.br-nav a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--gray); color: var(--t1); font-size: 15px; font-weight: 600; text-decoration: none; }
.br-nav a:hover { background: var(--gray-hi); }
.brand .h-sec { margin-bottom: 20px; }
.brand .sub-sec { max-width: 68ch; margin: 0 0 24px; }
.br-grid { display: grid; gap: 16px; }
.br-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.br-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.br-card { border-radius: var(--r-card); background: var(--m-pier); box-shadow: var(--m-edge); padding: 26px; color: inherit; text-decoration: none; }
.br-card small { display: block; font-size: 14px; line-height: 1.4; color: var(--t3); }
.br-logo { display: grid; place-items: center; min-height: 220px; }
.br-logo img { width: min(60%, 300px); height: auto; }
.br-logo.light { background: #f3f1ec; box-shadow: none; }
.br-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 80ch; font-size: 16px; line-height: 1.5; color: var(--t2); }
.br-list b { color: var(--t1); font-weight: 600; }
.br-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sw { display: grid; gap: 4px; }
.sw i { display: block; height: 96px; border-radius: var(--r-mid); background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); margin-bottom: 8px; }
.sw b { font-size: 16px; font-weight: 600; }
.sw small { font-size: 13px; line-height: 1.35; color: var(--t3); }
.br-type .t-big { margin: 0 0 14px; font: 700 clamp(28px, 4vw, 48px)/1.04 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.br-type .t-text { margin: 0 0 10px; font-size: 17px; line-height: 1.55; color: var(--t2); }
.t-num { display: block; margin: 18px 0 8px; font: 700 28px/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.br-mats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.br-models { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 16px; }
.br-mats figure, .br-models figure { margin: 0; text-align: center; }
.br-mats img { width: 100%; height: auto; display: block; }
.br-mats b, .br-models b { display: block; font-size: 15px; font-weight: 600; }
.br-mats small, .br-models small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: var(--t3); }
.br-voice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.br-voice > div { border-radius: var(--r-mid); background: var(--card-2); padding: 16px 20px; }
.br-voice span { font-size: 13px; font-weight: 700; color: var(--ok-ink); }
.br-voice .no span { color: var(--bad-ink); }
.br-voice p { margin: 6px 0 0; font-size: 17px; line-height: 1.4; }
.br-voice .no p { color: var(--t3); }
.br-kit .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.br-kit .locs { margin: 10px 0 0; }
.br-dl b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.br-dl:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(16, 22, 36, 0.78); }
@media (max-width: 1000px) { .br-mats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .br-models { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .brand main { padding-top: 76px; }
  .br-hero .wrap { grid-template-columns: 110px minmax(0, 1fr); align-items: start; }
  .br-hero .lede { font-size: 16px; }
  .br-nav { grid-column: 1 / -1; }
  .br-grid.two, .br-grid.three { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .br-card { padding: 18px; border-radius: 22px; }
  .br-logo { min-height: 150px; }
  .br-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sw i { height: 64px; }
  .br-mats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .br-models { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .br-voice { grid-template-columns: minmax(0, 1fr); }
}

/* the lists inside «Больше, чем просто сервер»: two calm columns, smaller pictures, one hairline */
.tp-main .store { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 6px 22px; border: 0; background: var(--m-pier); box-shadow: var(--m-edge); }
.tp-main .store .app-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tp-main .store .app-row img { width: 44px; height: 44px; border-radius: 11px; }
.tp-main .store .app-row:last-child, .tp-main .store.store-4 .app-row:nth-last-child(2) { border-bottom: 0; }
.tp-main .store .app-row b { font-size: 15px; }
.tp-main .store .app-row small { font-size: 12.5px; }
.tp-main .store .app-row .get { padding: 0 12px; font-size: 13px; }
.tp-main .code { border: 0; box-shadow: var(--m-edge); }
@media (max-width: 640px) {
  .tp-main .store { grid-template-columns: minmax(0, 1fr); padding: 2px 16px; border-radius: 22px; }
  .tp-main .store.store-4 .app-row:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* the domain search: it had a border and, in focus, a ring inside it: one line now */
.v2 .dsearch-home { border: 0; background: var(--m-pier); box-shadow: var(--m-edge); }
.v2 .dsearch-home:focus-within { box-shadow: inset 0 0 0 2px rgba(255, 140, 80, 0.7); }

/* questions: six on a computer too, the rest one tap away (the page is a selector, not a manual) */
@media (min-width: 641px) {
  .faq-v2 .list.fold5.folded > :nth-child(n+7) { display: none; }
  .faq-v2 .list.fold5.folded > :nth-child(6) { border-bottom: 0; }
  .faq-v2 + .fold-more { display: inline-flex; margin-top: 16px; }
}
@media (max-width: 560px) { .lu.bn .from { flex-direction: column; align-items: flex-start; gap: 0; } .lu.bn .from b { white-space: nowrap; } }

.k3d.dev-art { width: 150px; height: auto; margin: -10px 0 6px -14px; filter: none; }
@media (prefers-reduced-motion: reduce) { .lu .k3d { transition: none; transform: none; } }

/* landing pages: the model of what the page sells, beside its heading */
.lp .lp-art { float: right; width: 230px; margin: -18px -14px 6px 18px; shape-outside: circle(48%); }
@media (max-width: 720px) { .lp .lp-art { width: 124px; margin: -8px -8px 2px 10px; } }

/* ---------- 16.11 the hard look ---------- */
/* a short list beside a tall text looked dropped in a corner: the two halves of a panel meet in the middle */
.tabp { align-items: center; }
.tp-main .store.store-4 { grid-template-columns: minmax(0, 1fr); }
.tp-main .store.store-4 .app-row { border-bottom: 1px solid var(--line); }
.tp-main .store.store-4 .app-row:last-child { border-bottom: 0; }
.tp-main .locs { border-top: 0; padding: 4px 22px; border-radius: var(--r-card); background: var(--m-pier); box-shadow: var(--m-edge); }
.tp-main .locs .loc:last-child { border-bottom: 0; }
/* the ticks were green badges: a plain mark in our warm ink (nothing green that is not a state) */
.ticks li::before { width: 16px; height: 16px; border-radius: 0; transform: translateY(2px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.6 3.2 3.2L13 5' fill='none' stroke='%23ff9f70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
/* the three coloured dots of a «window» are a template's trademark: the code block is a plain plate */
.code .code-top i { display: none; }
.code .code-top { justify-content: flex-end; }
/* «Всё уже включено»: the models large enough to be read */
.ft .k3d { width: 96px; margin: -10px 0 -8px -10px; }
@media (max-width: 520px) { .ft .k3d { width: 72px; margin: -6px 0 -6px -8px; } }
.tr-live .k3d { width: min(100%, 340px); margin-top: -8px; }
@media (max-width: 860px) { .tr-live .k3d { width: 112px; margin-top: 0; } }

/* ---------- the picker on a phone: it was 2.7 screens long (owner: scrolling loses buyers) ---------- */
@media (max-width: 560px) {
  #servers .need.four { grid-template-columns: 1fr 1fr; gap: 6px; }
  #servers .need.four button { grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; row-gap: 0; padding: 10px 12px; }
  #servers .need.four .ne { width: 34px; min-width: 34px; height: 34px; grid-row: 1 / 3; }
  #servers .need.four b { grid-column: 2; font-size: 14.5px; letter-spacing: -0.02em; white-space: nowrap; }
  #servers .need.four button { padding: 10px 8px 10px 10px; column-gap: 8px; }
  #servers .need.four button > span { display: none; }                   /* the four cards above say what each is for */
  #servers .need.four em { grid-column: 2; grid-row: 2; justify-self: start; font-size: 13px; }
  #servers .step-q { font-size: 0; margin: 18px 0 8px; }                 /* the question's first words are enough */
  #servers .step-q b { font-size: 17px; }
  #servers .plan { padding: 10px 14px; }
  #servers .plan b { font-size: 16px; }
  #servers .panel-head p { display: none; }
}

/* ---------- 16.11 the page moves as it is scrolled ---------- */
/* «Больше, чем просто сервер»: the block holds still and turns its four pages by the scroll (home.js sets .pinned when a
   page fits the window; otherwise the pages change by a tap or a swipe) */
.more-pin.pinned { height: calc(var(--stick-h, 700px) + 3 * 58vh); }
.more-pin.pinned .more-stick { position: sticky; top: var(--stick-top, 92px); }
.more-pin.pinned .tabstack { display: grid; }
.more-pin.pinned .tabp { grid-area: 1 / 1; margin-top: 0; visibility: hidden; opacity: 0; transform: translateY(26px);
  transition: opacity var(--d-2) var(--e-out), transform var(--d-3) var(--e-out), visibility 0s linear var(--d-3); }
.more-pin.pinned .tabp.on { visibility: visible; opacity: 1; transform: none; transition: opacity var(--d-3) var(--e-out) 60ms, transform 0.5s var(--e-out) 60ms, visibility 0s; }
.more-pin.pinned .tabp .tp-side .k3d { transform: scale(0.86) rotate(-4deg); transition: transform 0.7s var(--spring); }
.more-pin.pinned .tabp.on .tp-side .k3d { transform: none; }
/* not held still (a phone, a low window): the four pages lie side by side and are swiped; the switch follows the finger */
.more-pin:not(.pinned) .tabstack { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; margin: 0 calc(var(--gut) * -1); transition: height var(--d-3) var(--e-out); }
.more-pin:not(.pinned) .tabstack::-webkit-scrollbar { display: none; }
.more-pin:not(.pinned) .tabp { flex: 0 0 100%; min-width: 0; margin: 0; padding: 0 var(--gut); box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; }
.no-js .more-pin .tabstack { display: block; margin: 0; }
.no-js .more-pin .tabp { padding: 0; }

/* «Всё уже включено»: plates with corners of their own; they are not links, so nothing happens under the pointer */
.feats { gap: 14px; }
.ft { padding: 14px 18px 20px; border-radius: 24px; background: var(--m-pier); box-shadow: var(--m-edge); overflow: hidden; gap: 6px; isolation: isolate; }
.ft .k3d { width: 108px; margin: -4px 0 0 -12px; }
.ft h3 { margin-top: 2px; }
@media (max-width: 520px) {
  .feats { gap: 8px; }
  .ft { padding: 6px 14px 6px 4px; border-radius: 20px; gap: 4px; }
  .ft .k3d { width: 72px; margin: 0; }
}

/* blocks rise into place when they come onto the screen (home.js adds .rv, then .in; the classes go away afterwards) */
/* (16.11 they rose from below at first: while one block rose, a gap opened to its neighbour; now nothing changes its place) */
.rv { opacity: 0; transform: scale(0.955); }
.rv.rv-t { opacity: 1; transform: none; }                 /* glass: it moves, it does not fade (a fade breaks its blur) */
.rv.in { opacity: 1; transform: none; transition: opacity 0.6s var(--e-out) calc(var(--i, 0) * 70ms), transform 0.8s var(--e-out) calc(var(--i, 0) * 70ms); }
.rv .k3d { transform: scale(0.72); }
.rv.in .k3d { transform: none; transition: transform 0.9s var(--spring) calc(var(--i, 0) * 70ms + 80ms); }
.rv.h-rv { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv.rv-t, .rv .k3d { opacity: 1; transform: none; }
  .more-pin.pinned .tabp, .more-pin.pinned .tabp .tp-side .k3d { transition: none; transform: none; }
  .more-pin:not(.pinned) .tabstack { transition: none; }
}

/* ---------- 16.11 the bar at the bottom of a phone: what a person does fast (see patch note in site.js) ---------- */
@media (max-width: 760px) {
  .home .tabs { height: 64px; padding: 5px; bottom: max(10px, env(safe-area-inset-bottom)); width: min(430px, 100% - 20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 18px 40px -18px rgba(0, 0, 0, 0.85); }
  .home .tabs a { font-size: 11.5px; gap: 3px; min-width: 0; letter-spacing: -0.01em; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .home .tabs a svg { width: 23px; height: 23px; }
  .home .tabs a:active { transform: scale(0.94); }
  .home .tabs .lens { top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 5); }
  html.kb .home .tabs, html.kb .home .buybar { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
  body.home { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) { .home .tabs a { font-size: 10.5px; } .home .tabs a svg { width: 21px; height: 21px; } }
/* a phone on its side: the screen is low, so the bar is low too and says nothing */
@media (max-width: 960px) and (max-height: 480px) and (orientation: landscape) {
  .home .tabs { height: 48px; width: min(360px, 100% - 20px); bottom: max(6px, env(safe-area-inset-bottom)); }
  .home .tabs a { font-size: 0; gap: 0; }
  body.home { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .home .tabs a:active { transform: none; } }

/* a page is never dragged sideways: whatever sticks out is cut at the page's edge (clip keeps sticky working) */
html { overflow-x: clip; }
@media (max-width: 860px) { .tp-side::before { right: 0; } }
@media (max-width: 359px) { .mk-ask button { padding: 0 11px; font-size: 14.5px; } .mk-ask .mk-face { --h: 58px; width: 36px; margin: -20px -2px -2px 0; } .mk-ask input { height: 40px; padding: 0 2px; } .mk-ask button { height: 40px; } }

/* «Показать все»: the rows that were folded come one after another */
.rise { animation: rise 0.55s var(--e-out) backwards; }
@keyframes rise { from { opacity: 0; transform: scale(0.955); } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* the helper in the phone's bar: the same lighthouse, still */
.tab-mk { position: relative; display: block; width: 22px; height: 30px; aspect-ratio: auto; margin: -6px 0 -1px; pointer-events: none; }
.tab-mk img, .tab-mk video { position: absolute; inset: auto; left: 50%; top: -5.3px; width: 42.3px; height: 42.3px; max-width: none; transform: translateX(-50%); }
@media (max-width: 960px) and (max-height: 480px) and (orientation: landscape) { .tab-mk { margin: 0; } }
@media (prefers-reduced-motion: reduce) { .mk-face.busy img, .mk-face.busy video { animation: none; } }
