/* Phone sizes and later owner adjustments. Part of the site style sheet: the files load in number order and the order must not change. */
/* Phones: larger, heavier, darker text so it can be read without strain (owner 2026-10-14). */
@media (max-width: 760px) {
  html {
    font-size: 112.5%;
  }
  :root {
    --ink: #0b1220;
    --muted: #3d4a5c;
    --line: #c9d1de;
  }
  body {
    font-size: 1rem;
    font-weight: 500;
  }
  input,
  select,
  textarea,
  button {
    font-size: 1rem;
    font-weight: 500;
  }
  .muted,
  .small {
    font-size: 0.95rem;
  }
  /* The top bar may wrap to a second line instead of running off the screen. */
  .top {
    flex-wrap: wrap;
    padding: 8px 10px;
    gap: 6px;
  }
  .pill {
    font-size: 0.9rem;
    padding: 4px 10px;
  }
}

/* Phone: the top bar (logo, bell, language, sign-out) stays in one row (owner 2026-10-15). */
@media (max-width: 420px) {
  .top {
    gap: 6px;
    padding: 10px;
  }
  .logo img {
    height: 32px;
  }
  .top .pill {
    padding: 0 8px;
  }
  .top .langsel {
    padding: 0 2px;
  }
}

.inspector-btn.btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 10px;
  padding: 13px 18px;
  text-align: center;
  font-weight: 700;
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 12px;
  text-decoration: none;
}
.inspector-card h2 {
  margin-top: 0;
}
.inspector-form {
  display: grid;
  gap: 10px;
}
.inspector-form .checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.formbtns {
  display: flex;
  gap: 10px;
}
.formbtns .btn:first-child {
  flex: 1;
}

.inspector-list {
  display: grid;
  gap: 14px;
}
.inspector-card dl {
  grid-template-columns: minmax(150px, 30%) 1fr;
}
@media (max-width: 600px) {
  .inspector-card dl {
    grid-template-columns: auto 1fr;
  }
}

.changed-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #c0201c;
}

.installbox {
  margin: 14px 0 0;
}
.installbtn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #1d4fb8;
  background: #fff;
  color: #1d4fb8;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.installhint {
  margin: 8px 0 0;
  text-align: center;
}

@media (min-width: 960px) {
  .lotgrid.three {
    grid-template-columns: repeat(4, 1fr);
  }
}
.lotgrid.three .lot {
  grid-template-columns: 1fr;
  align-items: start;
  align-content: start;
}

.lot .metacol {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.lot .metarow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lotgrid.three .lot-open {
  width: fit-content;
  padding: 8px 18px;
}

/* Owner 2026-10-18: the lot / request number in red serif, like the TANVIO wordmark. */
.lot .lotno {
  color: #b9411f;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Owner 2026-10-18: two cards per row on a phone when a product is chosen. */
@media (max-width: 719px) {
  .lotgrid.three {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .lotgrid.three .lot {
    padding: 12px;
  }
  .lotgrid.three .lot b,
  .lotgrid.three .lot .lotno {
    font-size: 0.95rem;
  }
  .lotgrid.three .lot-open {
    padding: 8px 14px;
  }
}
.lot .lotno {
  white-space: nowrap;
}

.loadchart h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.loadchart svg {
  display: block;
  background: #fafbfd;
  border: 1px solid #e3e8f1;
  border-radius: 8px;
}
.loadaxis {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
}

/* Salted hides form (V040): each chosen grade has its own percentage. */
.sharelist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.shareitem {
  display: flex;
  align-items: center;
  gap: 6px;
}
.shareitem .sharepct {
  width: 84px;
}
label.sub {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted, #5b6472);
}
.muted.bad,
.small.bad {
  color: #b9411f;
}

/* Owner 2026-10-19: in the list of all products the "Open" button stands under the picture, with no empty space,
   and three cards in a row on a wide screen. A chosen product keeps its vertical card (.lotgrid.three). */
.lotgrid:not(.three) .lot {
  grid-template-columns: 96px 1fr;
  grid-template-areas:
    'pic info'
    'open open';
  align-items: start;
  row-gap: 0;
}
.lotgrid:not(.three) .lot > .pic {
  grid-area: pic;
}
.lotgrid:not(.three) .lot > .lotinfo {
  grid-area: info;
}
.lotgrid:not(.three) .lot > .lot-open {
  grid-area: open;
  margin-top: 10px;
}
.lotgrid:not(.three) .lot.nopic {
  grid-template-columns: 1fr;
  grid-template-areas:
    'info'
    'open';
}
@media (min-width: 720px) {
  .lotgrid:not(.three) .lot {
    grid-template-columns: 112px 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      'pic info'
      'open info'
      '. info';
    align-content: start;
  }
  .lotgrid:not(.three) .lot > .lot-open {
    margin-top: 6px;
    padding: 8px 6px;
  }
  .lotgrid:not(.three) .lot.nopic {
    grid-template-columns: 1fr;
    grid-template-areas:
      'info'
      'open';
  }
}
@media (min-width: 1100px) {
  .lotgrid.wide {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The signed-in person's name in the top menu: acid green, with a round letter (owner 2026-10-22). */
.top .links a.me {
  background: #8fd14f;
  color: #10240a;
  font-weight: 700;
  padding: 0 14px 0 5px;
  border-radius: 999px;
  gap: 8px;
  max-width: 180px;
  box-shadow:
    0 0 0 3px rgba(143, 209, 79, 0.25),
    0 0 14px rgba(143, 209, 79, 0.45);
}
.top .links a.me .av {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #10240a;
  color: #8fd14f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 700;
}
.top .links a.me.on {
  color: #10240a;
  outline: 2px solid #111;
  outline-offset: 2px;
}
.top .links a.me .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The same acid-green name with a round letter in the bottom (phone) menu. */
.bottom a.me {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #8fd14f;
  color: #10240a;
  font-weight: 700;
  padding: 3px 12px 3px 3px;
  border-radius: 999px;
  max-width: 34vw;
  box-shadow: 0 0 10px rgba(143, 209, 79, 0.5);
}
.bottom a.me .av {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #10240a;
  color: #8fd14f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 700;
}
.bottom a.me.on {
  color: #10240a;
  outline: 2px solid #111;
  outline-offset: 1px;
}
.bottom a.me .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Home header in one centred column, in the owner's order (2026-10-23). */
@media (min-width: 900px) {
  .bannertext {
    display: block;
    padding: 24px 24px 20px;
  }
  .bannertext .homelabel {
    width: auto;
    margin: 0 0 10px;
    padding: 0;
    border-left: 0;
    text-align: center;
    line-height: 1.4;
  }
  .bannertext .homemid {
    padding: 0;
    border: 0;
  }
  .bannertext .homesub {
    max-width: 600px;
    margin: 12px auto 0;
    padding: 0;
    text-align: center;
    font-size: 0.9rem;
  }
}

/* Live figures under the slogan: white cards with a large number and its label (owner's picture 2026-10-23). */
.bannertext .homestats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 0;
}
.bannertext .homestats:empty {
  display: none;
}
.bannertext .homestat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #d5e2f5;
  border-radius: 12px;
}
.bannertext .homestat-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: #2f5fbf;
}
.bannertext .homestat-label {
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  color: #33415c;
}

.bannertext .homestat-live {
  margin-left: 4px;
  font-size: 0.45em;
  font-weight: 700;
  vertical-align: super;
  color: #2c8a4a;
}
.bannertext .homestats-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
}

/* The owner's sentence under the figures: centred, small and grey. */
.bannertext .homesub {
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
  color: #6b7891;
}

/* Phone: three narrow cards in one row. */
@media (max-width: 600px) {
  .bannertext .homestats {
    gap: 6px;
  }
  .bannertext .homestat {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 4px;
  }
  .bannertext .homestat-num {
    font-size: 1.8rem;
  }
  .bannertext .homestat-label {
    font-size: 0.72rem;
    white-space: normal;
    text-align: center;
  }
  .bannertext .homesub {
    font-size: 0.8rem;
  }
}

/* Registration card above the three buttons, for visitors who are not signed in (owner 2026-10-23). */
.homereg {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 16px;
  max-width: 1000px;
  background: #fff;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  padding: 14px 18px;
  text-align: left;
  color: #10244f;
  box-shadow: 0 2px 10px rgba(30, 60, 120, 0.08);
}
.homereg-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #cfd8e6;
  color: #0b1f4d;
}
.homereg-icon svg {
  width: 28px;
  height: 28px;
}
.homereg-text {
  flex: 1;
  min-width: 0;
}
.homereg-text b {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.homereg-text span {
  font-size: 0.9rem;
  color: #4a5a7a;
}
.homereg .homereg-btn {
  flex: none;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
  background: #1a7a3a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(26, 122, 58, 0.3);
}
.homereg .homereg-btn:hover {
  background: #156330;
}
@media (max-width: 700px) {
  .homereg {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 14px;
  }
  .homereg-icon {
    display: none;
  }
  .homereg-text b {
    font-size: 1rem;
  }
  .homereg-text span {
    font-size: 0.85rem;
  }
}

/* Line of real facts above the three buttons (owner 2026-10-23). */
.hometrustline {
  margin: 0 auto 12px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  color: #33415c;
}

/* Why the sign-in page opened: the visitor pressed "I want to sell" or "Create a request" (owner 2026-10-23). */
.loginwhy {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff6e0;
  border: 1px solid #f0d58a;
  color: #5a4300;
  font-weight: 600;
}

/* One visual system for home, sign-in, registration, contacts and inner pages (owner's review 2026-10-23):
   the same white cards, one border colour, one corner radius, one soft shadow, one spacing step. */
:root {
  --r: 16px;
  --line: #dde5f0;
  --shadow: 0 2px 12px rgba(16, 40, 90, 0.06);
}
.card,
.trust,
.authwrap,
.homereg,
.bannertext .homestat {
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card {
  padding: 20px 22px;
  margin-bottom: 16px;
}
.authwrap {
  border-radius: 20px;
}
/* Home first screen: one white block instead of beige over blue, calmer spacing. */
.bannerbox {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}
.homehero.nopic {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 1px solid #eef2f8;
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow);
  padding-top: 20px;
  margin-bottom: 16px;
}
.homereg {
  margin-bottom: 14px;
  box-shadow: none;
  background: #f7faff;
}
.hometrustline {
  font-weight: 500;
  color: var(--muted);
}
.homeactions {
  margin-top: 0;
}
.trust {
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .hometrustline,
  .bannertext .homestats-note {
    font-size: 0.78rem;
  }
}

/* Owner 2026-10-23: menu items never break onto two lines («О проекте»). */
.top .links a {
  white-space: nowrap;
}
/* On a narrow screen a whole item moves to the next line instead of running off the edge. */
.top {
  flex-wrap: wrap;
}
/* Registration card: brand blue button; on a phone text on top at full width, button below at full width. */
.homereg .homereg-btn {
  background: var(--accent);
  box-shadow: 0 3px 8px rgba(31, 95, 191, 0.3);
}
.homereg .homereg-btn:hover {
  background: #184d9c;
}
@media (max-width: 700px) {
  .homereg {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .homereg-text {
    flex: none;
    width: 100%;
  }
  .homereg .homereg-btn {
    display: block;
    width: 100%;
  }
}

/* Owner 2026-10-23 (symmetry): in every card the product is on one line and the red number always on the line below;
   cards in a row have the same height and their «Open» buttons stand on one line at the bottom. */
.lot .lottitle b,
.lot .lottitle .lotno {
  display: block;
}
.lotgrid.three .lot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.lotgrid.three .lot > .lot-open {
  margin-top: auto;
}
.lotgrid.three .lot > .lotinfo {
  margin-bottom: 14px;
}
/* A pill («Осталось дней: 84», «13 618 шт») never breaks inside; the cards of all products get a slimmer picture
   column so the pills fit. Every card in a row has the same height. */
.lot .meta span {
  white-space: nowrap;
}
.lotgrid {
  align-items: stretch;
}
@media (min-width: 720px) {
  .lotgrid:not(.three) .lot {
    grid-template-columns: 100px 1fr;
    column-gap: 14px;
    padding: 18px 16px;
  }
  .lotgrid:not(.three) .lot .meta span {
    font-size: 0.85rem;
    padding: 3px 9px;
  }
  .lotgrid:not(.three) .lot .pic {
    --box: 76px;
  }
  .lotgrid:not(.three) .lot > .lot-open {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 8px 4px;
  }
}
/* Home symmetry (owner 2026-10-23): the three figure cards have the same width; the four advantages each sit on
   one line, centred in equal columns. */
@media (min-width: 601px) {
  .bannertext .homestat {
    flex: 0 0 196px;
    box-sizing: border-box;
    padding: 10px 8px;
  }
}
@media (min-width: 900px) {
  .homepage .trust .trustitem {
    justify-content: center;
    white-space: nowrap;
    font-size: 0.88rem;
    gap: 8px;
  }
  .homepage .trust .trusticon {
    font-size: 1.3rem;
  }
}

/* Owner 2026-10-24: everything about registration is green, like «Регистрация» in the top bar, and the registration
   card must catch the eye: green frame and glow, red heading, green button. */
.homereg {
  border: 2px solid #17803d;
  background: #f0faf3;
  box-shadow:
    0 0 0 4px rgba(23, 128, 61, 0.12),
    0 4px 16px rgba(23, 128, 61, 0.18);
}
.homereg .homereg-icon {
  border-color: #17803d;
  color: #17803d;
}
.homereg-text b {
  color: #c62828;
}
.homereg .homereg-btn {
  background: #17803d;
  font-weight: 800;
  box-shadow:
    0 0 0 3px rgba(23, 128, 61, 0.25),
    0 0 14px rgba(23, 128, 61, 0.55);
}
.homereg .homereg-btn:hover {
  background: #126a32;
}

/* Contact icons in the inspector cards (owner 2026-10-26). */
.contact-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  display: inline-block;
}

/* Registration form: green note "only name, email and country are required", optional fields in a light box (owner 2026-11-03). */
.reqonly {
  background: #eaf7ee;
  border: 2px solid #17803d;
  border-radius: var(--r);
  padding: 10px 14px;
  margin: 4px 0 14px;
  color: #0f5a2a;
}
.reqonly b {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}
.reqonly span {
  display: block;
  font-size: 0.92rem;
  margin-top: 2px;
}
.optbox {
  border: 1px dashed #b8c4d6;
  border-radius: var(--r);
  background: #f8fafc;
  padding: 10px 14px 4px;
  margin: 16px 0;
}
.optbox-title {
  font-weight: 700;
  color: #5b6b82;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.optbox label {
  color: #5b6b82;
}

/* Owner 2026-11-04: «Смотреть лоты» under each product card is a bright blue button that gently pulses,
   so it stands out from the plain trust words above. Owner the same day: a softer, lighter blue, not the dark one.
   With «Reduce motion» on, only the colour and the ring pulse. */
#products .prod .seelots {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #4f8fd6;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(79, 143, 214, 0.35);
  animation: seelots-pulse 1.3s ease-in-out infinite;
  will-change: transform;
}
#products .prod:hover .seelots {
  background: #3f7cc2;
}
/* Owner 2026-11-05: the pulse was too weak on a computer and invisible on a phone, so it is stronger now:
   the button grows, a wide light-blue ring spreads out and the colour brightens. */
@keyframes seelots-pulse {
  0%,
  100% {
    background: #4f8fd6;
    box-shadow:
      0 0 0 0 rgba(79, 143, 214, 0.7),
      0 3px 10px rgba(79, 143, 214, 0.35);
    transform: scale(1);
  }
  50% {
    background: #6aa8ea;
    box-shadow:
      0 0 0 14px rgba(79, 143, 214, 0),
      0 4px 18px rgba(79, 143, 214, 0.6);
    transform: scale(1.08);
  }
}
/* Phones with "Reduce motion" turned on: no growing, but the colour and the ring still pulse. */
@keyframes seelots-glow {
  0%,
  100% {
    background: #4f8fd6;
    box-shadow:
      0 0 0 0 rgba(79, 143, 214, 0.7),
      0 3px 10px rgba(79, 143, 214, 0.35);
  }
  50% {
    background: #6aa8ea;
    box-shadow:
      0 0 0 12px rgba(79, 143, 214, 0),
      0 4px 18px rgba(79, 143, 214, 0.6);
  }
}
@media (min-width: 601px) and (max-width: 1000px) {
  #products .prod .seelots {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  #products .prod .seelots {
    animation: seelots-glow 1.3s ease-in-out infinite;
  }
}

/* Owner 2026-11-08: a product is chosen: no product name on the card, the serial number is centred at the top. */
.lotgrid.three .lot .lottitle {
  text-align: center;
  margin-bottom: 6px;
}
.lotgrid.three .lot .lottitle .lotno {
  font-size: 1.2rem;
}

/* Owner 2026-11-08: in the lot details the units stand in one column (numbers right-aligned, same digit width). */
dd.measure {
  white-space: nowrap;
}
dd.measure .mnum {
  display: inline-block;
  min-width: var(--numw, 0);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Owner 2026-11-09: «Войти» and «Выйти» in bold on every page. */
.pill.auth {
  font-weight: 800;
}

/* Owner 2026-11-09: grey placeholder cards while a list loads. */
.skel-bar {
  height: 120px;
  background: #f3f6fb;
}
.skel-card {
  min-height: 150px;
}
.skel-line {
  height: 14px;
  margin: 12px 0;
  border-radius: 7px;
  width: 60%;
  background: linear-gradient(90deg, #e8edf5 25%, #f4f7fb 50%, #e8edf5 75%);
  background-size: 200% 100%;
  animation: skel 1.2s ease-in-out infinite;
}
.skel-line.wide {
  width: 85%;
  height: 18px;
}
.skel-line.short {
  width: 40%;
}
@keyframes skel {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
/* Smooth page changes: between pages of the site (where the browser supports it) and inside the app. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.18s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skel-line {
    animation: none;
  }
}

/* Owner 2026-11-09: one calm invitation to register under the action buttons: a thin line with a link, no banner,
   no red. The green «Регистрация» in the top bar stays the main registration button. */
.homereg-line {
  margin: 12px auto 0;
  max-width: 980px;
  text-align: center;
  font-size: 0.92rem;
  color: #4a5a7a;
}
.homereg-line a {
  color: #17803d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.homereg-line span,
.homereg-line a {
  /* Owner 2026-11-10: two lines always: the sentence ending with a colon, then the whole link on its own line. */
  display: block;
}
.homereg-line a {
  width: fit-content;
  margin: 4px auto 0;
  white-space: nowrap;
}
.homereg-line a:hover {
  color: #126a32;
}
/* Owner 2026-11-09: on wide screens the home page uses more of the width. */
@media (min-width: 1200px) {
  main:has(.homepage) {
    max-width: 1180px;
  }
}

/* Owner 2026-11-10: product names in the platform sentence are bold. */
.homesub-products {
  font-weight: 700;
}

/* Owner 2026-11-10: «Как найти лучший товар»: four numbered cards, two per row, one on a phone. */
.homefind {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.homefind li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.homefind-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1f5fc4;
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.homefind b {
  display: block;
  color: #13294b;
}
.homefind p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 700px) {
  .homefind {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Owner 2026-11-10: running line at the top: currency rates and units. Thin, calm, pauses under the mouse. */
.ticker {
  overflow: hidden;
  background: #0b1f4d;
  color: #dfe8f7;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}
.tick-track {
  display: flex;
  width: max-content;
  animation: tickmove 60s linear infinite;
}
.ticker:hover .tick-track {
  animation-play-state: paused;
}
.tick-row {
  display: flex;
  gap: 28px;
  padding: 8px 14px;
}
.tick-row > * {
  flex: none;
}
.tick-head {
  color: #ffffff;
  font-weight: 700;
}
@keyframes tickmove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tick-track {
    animation: none;
  }
  .ticker {
    overflow-x: auto;
  }
}

/* Owner 2026-11-10: the 10-second demo: video on the left, the three steps on the right; one column on a phone. */
.homedemo-box {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}
.homedemo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f4f7fb;
}
.homedemo-steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.4;
}
.homedemo-steps li {
  transition: color 0.2s;
}
.homedemo-steps li.on {
  color: #13294b;
  font-weight: 700;
}
@media (max-width: 760px) {
  .homedemo-box {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Owner 2026-11-10: «Войти через Google» window under «Регистрация» (pointing or tapping), and the Google button on the registration page. */
.regwrap {
  position: relative;
  display: inline-flex;
}
.regpop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 300px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  color: #10213f;
  border: 1px solid #d5dbe5;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 34, 85, 0.18);
  text-align: center;
}
/* A bridge over the gap, so the window stays open while the mouse moves down to it. */
.regpop::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.regpop-title {
  font-weight: 700;
  margin-bottom: 12px;
}
.gbtn {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.regpop-or {
  margin: 10px 0 6px;
  color: #5b6b85;
  font-size: 0.9em;
  text-align: center;
}
.regpop-mail {
  color: #17803d;
  font-weight: 700;
}
.gquick {
  margin: 4px 0 14px;
}
.gmail {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .regpop {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }
}

/* Owner 2026-11-11: product cards in the owner's design: a still metal bar at the top, the hide hanging on two chains,
   a large dark name and the blue «Смотреть лоты» button. The hide sways on mouse hover only (pivot at the top, ±3°, 3 s, soft). */
/* Owner 2026-11-11 (her picture): a soft light-blue frosted card, light embossed leather rising at the bottom behind
   the name and the button, a glowing light-blue border. */
#products .prod {
  container-type: inline-size;
  position: relative;
  --u: min(
    1cqw,
    2.6px
  ); /* 1 % of the card width, capped for wide single-column cards */
  isolation: isolate;
  padding: 0 0 18px;
  overflow: hidden;
  background:
    url('/app/img/card-leather.webp?v=1') center bottom / 100% auto no-repeat,
    radial-gradient(
      90% 45% at 50% 18%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0) 75%
    ),
    linear-gradient(180deg, #f3f7fd 0%, #e7effa 55%, #dde8f7 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px #b8d1f3,
    0 0 16px rgba(110, 165, 240, 0.45),
    inset 0 0 14px rgba(255, 255, 255, 0.9);
}
#products .hang {
  position: relative;
  width: 100%;
  /* room for the deepest picture (the salted hide) */
  height: calc(30px + 95 * var(--u));
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
#products .hang .bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 12px;
  z-index: 2;
  background: linear-gradient(
    180deg,
    #f4f6f9 0%,
    #b9c1ca 35%,
    #6c7580 60%,
    #4a525c 80%,
    #9aa3ad 100%
  );
  box-shadow: 0 4px 6px rgba(20, 40, 80, 0.25);
}
/* The picture keeps its own proportions at every window width: the width follows the card, the height follows the width. */
#products .hang .rig {
  position: relative;
  z-index: 1;
  /* hooks at the same depth on every card: the chain is CHAIN units long, the picture top moves up or down */
  --hookpx: calc(var(--w) * var(--u) / var(--ar) * var(--ch) / 100);
  margin-top: calc(26px + var(--chain) * var(--u) - var(--hookpx));
  /* one shared scale for all four hides, so the proportions never change */
  width: calc(var(--w) * var(--u));
  aspect-ratio: var(--ar);
}
#products .hang .hide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% var(--hook);
  filter: drop-shadow(0 8px 10px rgba(20, 40, 80, 0.22));
}
/* Thin taut chains: the top stays at the bar, the bottom follows the hide. */
#products .hang .chain {
  position: absolute;
  top: calc(var(--hookpx) - var(--chain) * var(--u));
  height: calc(var(--chain) * var(--u));
  z-index: 2;
  background: url('/app/img/hang-chain.webp?v=1') center bottom / 100% auto
    no-repeat;
  transform-origin: 50% 0;
}
#products .prodname {
  margin-top: 6px;
  padding: 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0b1f4d;
}
@media (hover: hover) and (pointer: fine) {
  #products .prod:hover {
    transform: none;
  }
  #products .hang .rig.swaying .hide {
    animation: hide-sway 3s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  }
  #products .hang .rig.swaying .chain {
    animation: chain-sway 3s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  #products .hang .rig.swaying .hide,
  #products .hang .rig.swaying .chain {
    animation: none;
  }
}
@media (max-width: 1000px) {
  #products .prodname {
    font-size: 1.1rem;
  }
}
@media (max-width: 700px) {
  #products .hang,
  #products .hang .rig {
    --u: min(1cqw, 2px);
  }
  #products .prodname {
    font-size: 1.1rem;
  }
}
/* The lower part of the hide lags a little behind the turn (skew), so the material looks soft, not like a rigid plate. */
@keyframes hide-sway {
  0%,
  100% {
    transform: none;
  }
  25% {
    transform: translateX(2.2%) rotate(-3deg) skewX(1.1deg) scaleY(0.996);
  }
  50% {
    transform: translateX(0) rotate(0deg) skewX(-0.7deg) scaleY(1.003);
  }
  75% {
    transform: translateX(-2.2%) rotate(3deg) skewX(-1.1deg) scaleY(0.996);
  }
}
@keyframes chain-sway {
  0%,
  50%,
  100% {
    transform: none;
  }
  25% {
    transform: skewX(var(--lean));
  }
  75% {
    transform: skewX(calc(-1 * var(--lean)));
  }
}

/* Owner 2026-11-11 (her picture): «Смотреть лоты» is a bright blue gradient button with a soft blue glow; it keeps its pulse. */
#products .prod .seelots,
#products .prod:hover .seelots {
  background: linear-gradient(180deg, #2f8dff 0%, #0b5fe6 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 4px 14px rgba(11, 95, 230, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: seelots-pulse-bright 1.3s ease-in-out infinite;
}
@keyframes seelots-pulse-bright {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(47, 141, 255, 0.6),
      0 4px 14px rgba(11, 95, 230, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 0 0 14px rgba(47, 141, 255, 0),
      0 6px 22px rgba(11, 95, 230, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
    filter: brightness(1.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  #products .prod .seelots,
  #products .prod:hover .seelots {
    animation: none;
  }
}

/* Owner 2026-11-13: in a narrow window a long name wraps to more lines; the name area now fills the free height
   of the card (cards in a row are equally tall), so every name is centred on one level and every button stands at the bottom. */
#products .prodname {
  flex: 1 0 auto;
}

/* Owner 2026-11-14: admin tabs (Аналитика, Пользователи, Гости …) are visible at every window width. On a narrow screen
   they take their own row under the logo and wrap onto more lines when needed. */
@media (max-width: 759px) {
  .top .links.adminnav {
    display: flex;
    order: 10;
    width: 100%;
    flex-wrap: wrap;
    gap: 4px 12px;
  }
}
.top .links.adminnav {
  flex-wrap: wrap;
}

/* Owner 2026-11-14: in a narrow window a wide admin table (Guests, Analytics, Users...) is never cut off:
   it scrolls sideways inside its own card. */
main.adminmain .card,
main.adminmain .scrollbox {
  overflow-x: auto;
}

/* Owner 2026-11-16: her four production photos on the home page: one row on a computer, two by two on a phone. */
.homegallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.homegallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(11, 31, 77, 0.15);
}
@media (max-width: 760px) {
  .homegallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* Owner 2026-11-17: the registration table in «Guests» fits a phone without sideways scrolling. */
/* Owner 2026-11-17: symmetric: every header and every figure sits in the middle of its column. */
table.regtable th,
table.regtable td,
table.compact.regtable td.num {
  text-align: center;
}
/* Four columns of equal width, so the figures stand at equal distances (a phone keeps the natural widths). */
@media (min-width: 481px) {
  table.regtable {
    table-layout: fixed;
  }
}
@media (max-width: 480px) {
  .regtable th,
  .regtable td {
    padding: 6px 4px;
  }
}

/* Owner 2026-11-17: the large invitation to register near the top of the home page, centred, green button. */
.homefree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 8px 0 16px;
  padding: 18px 16px;
  text-align: center;
  background: #fff;
  border: 2px solid #abefc6;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(26, 122, 58, 0.12);
}
.homefree-text {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: #0b1f4d;
}
.homefree-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  background: #1a7a3a;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(26, 122, 58, 0.35);
}
.homefree-btn:hover {
  background: #156330;
}

/* Owner 2026-11-17: a guest sees the members' menu; the items that need an account are grey and lead to registration. */
.top a.locked,
.top .pill.locked {
  color: #a3abb8;
}
.top a.locked:hover,
.top .pill.locked:hover {
  color: var(--muted);
}
.top .pill.locked {
  filter: grayscale(1);
  opacity: 0.6;
}

/* Owner 2026-11-17: in a narrow window the top menu opens from the ☰ button at the right of the top bar. */
.menubtn {
  display: none;
  position: relative;
}
.menubtn > summary {
  list-style: none;
  justify-content: center;
  min-width: 40px;
  font-size: 1.2rem;
  user-select: none;
}
.menubtn > summary::-webkit-details-marker {
  display: none;
}
.menubtn[open] > summary {
  border-color: var(--accent);
  color: var(--accent);
}
.menupanel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 220px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(16, 36, 72, 0.16);
}
.menupanel a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}
.menupanel a:hover {
  background: var(--bg);
}
.menupanel a.on {
  color: var(--accent);
  font-weight: 600;
}
.menupanel a.me {
  background: #8fd14f;
  color: #10240a;
  font-weight: 700;
}
.menupanel a.me .av {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #10240a;
  color: #8fd14f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
@media (max-width: 759px) {
  .menubtn {
    display: block;
  }
}
.top.compact .links {
  display: none;
}
.top.compact .menubtn {
  display: block;
}
/* On a phone the ☰ menu opens across the whole width under the top bar; the grey bell of a guest moves into it. */
@media (max-width: 759px) {
  .top .menubtn {
    position: static;
  }
  .top .menupanel {
    left: 10px;
    right: 10px;
    top: calc(100% + 6px);
  }
}
@media (max-width: 480px) {
  .top .guestbell {
    display: none;
  }
}
/* A guest's phone top bar (logo, language, Регистрация, Войти, ☰) stays one row down to a 375px screen. */
@media (max-width: 420px) {
  .top.guest {
    gap: 4px;
  }
  .top.guest .logo img {
    height: 26px;
  }
  .top.guest .pill:not(.langsel) {
    padding: 0 7px;
  }
  .top.guest .menubtn > summary {
    min-width: 36px;
  }
}

/* Owner 2026-11-17: each menu item in its section's colour: Лоты and Мои лоты blue, Заявки and Мои заявки orange
   (wide top bar and the ☰ panel). Items a guest cannot open yet keep their colour, faded. */
.top .links a.sec-lots:not(.navmain),
.top .menupanel a.sec-lots {
  color: #2f5fbf;
  font-weight: 600;
}
.top .links a.sec-req:not(.navmain),
.top .menupanel a.sec-req {
  color: #e8731a;
  font-weight: 600;
}
.top .links a.locked.sec-lots,
.top .links a.locked.sec-req,
.top .menupanel a.locked.sec-lots,
.top .menupanel a.locked.sec-req {
  opacity: 0.5;
}
.top .links a.navmain.navreq.locked {
  color: #fff;
  box-shadow: none;
}
.top .menupanel a.sec-lots.on,
.top .menupanel a.sec-req.on {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Owner 2026-11-17: the ☰ button is easy to see: a filled brand-blue circle with white bars. */
.top .menubtn > summary.pill {
  width: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  background: #1f5fbf;
  border-color: #1f5fbf;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow:
    0 0 0 3px rgba(31, 95, 191, 0.22),
    0 0 12px rgba(31, 95, 191, 0.45);
}
.top .menubtn[open] > summary.pill {
  color: #fff;
  border-color: #1f5fbf;
  background: #184d9c;
}
/* Owner 2026-11-17: a guest's «Войти» stands in the top bar; on a phone it is the first line of the ☰ panel. */
.top .menupanel a.menulogin {
  display: none;
  color: #1f5fbf;
  font-weight: 800;
  border: 1px solid #1f5fbf;
  border-radius: 999px;
  margin-bottom: 6px;
}
@media (max-width: 420px) {
  .top .pill.auth.guestlogin {
    display: none;
  }
  .top .menupanel a.menulogin {
    display: flex;
  }
}
