/* Public product pages (/buy-wet-blue/ etc.): plain HTML for people and search engines. */
:root {
  --bg: #f4f6fa;
  --card: #fff;
  --ink: #1b2430;
  --muted: #667085;
  --line: #dfe4ec;
  --accent: #1f5fbf;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px/1.55 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a {
  color: var(--accent);
  text-decoration: none;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: #002255;
}
.pill {
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px;
}
h1 {
  font-size: 2rem;
  margin: 0.2em 0 0.4em;
}
h2 {
  font-size: 1.2rem;
  margin: 1.6em 0 0.5em;
}
.lead {
  font-size: 1.1rem;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn.ghost {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
li {
  margin: 4px 0;
}
.foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot span {
  margin-right: auto;
}

/* Open lot list /lots/ (owner 2026-10-23): brand blue, same cards as the app. */
main.wide {
  max-width: 1080px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.filters a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
.filters a.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.lot {
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(16, 40, 90, 0.06);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lot h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #0b1f4d;
}
.lot dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 0.95rem;
}
.lot dt {
  color: var(--muted);
}
.lot dd {
  margin: 0;
  font-weight: 600;
}
.lock {
  /* Owner 2026-11-17 (symmetry): a card with fewer rows keeps its note and button level with the others in the row. */
  margin: auto 0 0;
  font-size: 0.86rem;
  padding-top: 10px;
  border-top: 1px solid #eef2f8;
  color: #c62828; /* red so a guest notices it (owner 2026-10-24) */
  font-weight: 600;
  text-align: center;
}
.btn.small {
  padding: 10px 14px;
  font-size: 0.95rem;
  text-align: center;
}
.empty {
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 16px;
  padding: 18px;
}

/* Registration is always green, like «Регистрация» in the site's top bar (owner 2026-10-24). */
.btn.reg {
  background: #17803d;
  color: #fff;
  font-weight: 800;
  box-shadow:
    0 0 0 3px rgba(23, 128, 61, 0.2),
    0 0 12px rgba(23, 128, 61, 0.45);
}
.regmid {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
}

/* Owner 2026-11-05: a guest must see at once that Tanvio is an open marketplace for every seller and buyer, not one seller's site. */
.openmk {
  background: #eef5ff;
  border: 2px solid #4f8fd6;
  border-radius: 16px;
  padding: 14px 18px;
  margin: 14px 0 18px;
}
.openmk p {
  margin: 0 0 10px;
}
.openmk-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 !important;
}

/* Owner 2026-11-06: the country of a hidden lot is a blurred word, so the guest sees there is a country but cannot read it. */
.blurred {
  filter: blur(3.5px);
  font-weight: 700;
  color: #1f2a44;
  user-select: none;
  pointer-events: none;
}

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

/* Owner 2026-11-09: smooth change between the site's pages where the browser supports it. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Owner 2026-11-17: the lot list has the site's top bar: Lots, the grey member items (they need free registration),
   the bell, the language and «Войти». In a narrow window the menu opens from the ☰ button. */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  gap: 8px;
}
.top .logo {
  margin-right: auto;
}
.top .logo img {
  display: block;
  height: 44px;
  width: auto;
}
.top .links {
  display: none;
  align-items: center;
  gap: 14px;
}
.top .links a,
.top .pill,
.top summary.pill {
  box-sizing: border-box;
  height: 40px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  white-space: nowrap;
}
.top .links a {
  padding: 0 6px;
  color: var(--ink);
}
.top .pill {
  padding: 0 14px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.top .pill.auth {
  border-color: var(--accent);
  color: var(--accent);
}
.top .links a.navmain {
  color: #fff;
  font-weight: 700;
  padding: 0 18px;
  border-radius: 999px;
}
.top .links a.navlots {
  background: #2f5fbf;
  box-shadow:
    0 0 0 3px rgba(47, 95, 191, 0.25),
    0 0 14px rgba(47, 95, 191, 0.55);
}
.top .links a.navmain.on {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.top a.locked {
  color: #a3abb8;
}
.top a.locked:hover {
  color: var(--muted);
}
.top .pill.locked {
  filter: grayscale(1);
  opacity: 0.6;
}
.langmenu,
.menubtn {
  position: relative;
}
.top summary.pill {
  list-style: none;
  justify-content: center;
  min-width: 40px;
  cursor: pointer;
  user-select: none;
}
.top summary.pill::-webkit-details-marker {
  display: none;
}
.menubtn > summary {
  font-size: 1.2rem;
}
.langmenu[open] > summary,
.menubtn[open] > summary {
  border-color: var(--accent);
  color: var(--accent);
}
.langpanel,
.menupanel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(16, 36, 72, 0.16);
}
.langpanel {
  min-width: 120px;
}
.menupanel {
  min-width: 220px;
}
.langpanel a,
.menupanel a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink);
  white-space: nowrap;
}
.langpanel a:hover,
.menupanel a:hover {
  background: var(--bg);
}
.langpanel a.on,
.menupanel a.on {
  color: var(--accent);
  font-weight: 600;
}
.menupanel a.navmain {
  color: var(--accent);
  font-weight: 700;
}
.menupanel a.locked {
  color: #a3abb8;
}
.menubtn {
  display: none;
}
@media (min-width: 760px) {
  .top .links {
    display: flex;
  }
}
@media (max-width: 759px) {
  .menubtn {
    display: block;
  }
}
@media (max-width: 420px) {
  .top {
    gap: 6px;
    padding: 10px;
  }
  .top .logo img {
    height: 32px;
  }
  .top .pill {
    padding: 0 10px;
  }
}
/* 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;
  }
}
/* Owner 2026-11-17: the green «Регистрация» in the top bar, as on every page of the site. */
.top .pill.regpill {
  background: #17803d;
  border-color: #17803d;
  color: #fff;
  font-weight: 800;
  box-shadow:
    0 0 0 3px rgba(23, 128, 61, 0.25),
    0 0 14px rgba(23, 128, 61, 0.55);
}
.top.compact .links {
  display: none;
}
.top.compact .menubtn {
  display: block;
}
@media (max-width: 420px) {
  .top.guest {
    gap: 4px;
  }
  .top.guest .logo img {
    height: 26px;
  }
  .top.guest .pill {
    padding: 0 7px;
  }
  .top.guest .langmenu > summary {
    padding: 0 4px;
  }
  .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.navreq {
  background: #e8731a;
  box-shadow:
    0 0 0 3px rgba(232, 115, 26, 0.25),
    0 0 14px rgba(232, 115, 26, 0.6);
}
.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;
  }
}
/* Owner 2026-11-17: the word «LWG» is bold everywhere. */
b.lwg {
  font-weight: 800;
}
