:root {
  --bg: #f4f6fa;
  --card: #fff;
  --ink: #1b2430;
  --muted: #667085;
  --line: #dfe4ec;
  --accent: #1f5fbf;
  --accent-ink: #fff;
  --ok: #17803d;
  --bad: #b42318;
  --warn: #a15c07;
  --r: 12px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font:
    16px/1.45 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 64px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
h1 {
  font-size: 1.5rem;
  margin: 0.2em 0 0.6em;
}
h2 {
  font-size: 1.15rem;
  margin: 1em 0 0.5em;
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}
.logo img {
  display: block;
  height: 44px;
  width: auto;
}
.logo {
  font-weight: 700;
  color: var(--accent);
  margin-right: auto;
  font-size: 1.05rem;
}
.top .links {
  display: none;
  gap: 14px;
}
.top .links a {
  color: var(--ink);
}
.top .links a.on {
  color: var(--accent);
  font-weight: 600;
}
.pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  position: relative;
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--bad);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 1px 6px;
}
.bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  padding: 6px 0 8px;
  z-index: 5;
}
.bottom a {
  color: var(--muted);
  font-size: 0.8rem;
  padding: 4px 8px;
  text-align: center;
}
.bottom a.on {
  color: var(--accent);
  font-weight: 600;
}
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 12px;
}
.hero {
  background: linear-gradient(135deg, #1f5fbf, #3b82d6);
  color: #fff;
  border-radius: var(--r);
  padding: 24px 18px;
  margin-bottom: 16px;
}
.hero h1 {
  margin-top: 0;
}
.hero p {
  margin: 0 0 16px;
  opacity: 0.95;
}
.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn.sec {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.textbtn {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  color: var(--muted, #667);
  text-decoration: underline;
  cursor: pointer;
}
.btn.danger {
  background: var(--bad);
}
.hero .btn {
  margin: 0 8px 8px 0;
}
.hero .btn.sec {
  border-color: #fff;
}
.btn[disabled] {
  opacity: 0.6;
}
.grid {
  display: grid;
  gap: 12px;
}
.steps {
  grid-template-columns: 1fr;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 12px 0 4px;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
/* The field being filled in: green frame (owner 2026-10-03), instead of the browser's black outline. */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.35);
}
input[type='checkbox']:focus-visible {
  outline: 3px solid #16a34a;
  outline-offset: 2px;
}
input[type='checkbox'] {
  width: auto;
  margin-right: 8px;
}
.check {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  margin: 10px 0;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}
.err {
  color: var(--bad);
  font-size: 0.85rem;
  margin-top: 4px;
}
.formerr {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: var(--bad);
  padding: 10px;
  border-radius: 10px;
  margin: 10px 0;
}
.okmsg {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: var(--ok);
  padding: 10px;
  border-radius: 10px;
  margin: 10px 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.filters label {
  margin-top: 0;
}
.lot {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  color: inherit;
}
.lot .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}
.lot b {
  font-size: 1.05rem;
}
.pic {
  --box: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--box);
  height: var(--box);
}
.pic img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(var(--box) * var(--s));
  max-height: calc(var(--box) * var(--s));
}
.pic.WET_BLUE {
  --s: 1;
}
.pic.CRUST {
  --s: 0.87;
}
.pic.WET_BLUE_SPLIT {
  --s: 0.67;
}
.pic.big {
  --box: 200px;
  margin: 0 auto 8px;
}
.pic.mid {
  --box: 150px;
  margin: 8px auto;
}
.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #e8f0fc;
  color: var(--accent);
}
.tag.ACTIVE {
  background: #ecfdf3;
  color: var(--ok);
}
.tag.SOLD,
.tag.CLOSED {
  background: #eef0f3;
  color: var(--muted);
}
.tag.EXPIRED {
  background: #fff4e5;
  color: var(--warn);
}
dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 8px 0;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  font-weight: 500;
}
/* The comment: its own line under the other fields, label above the text, long text wraps. */
dt.wide,
dd.wide {
  grid-column: 1 / -1;
}
dt.wide {
  margin-top: 6px;
  margin-bottom: -4px;
}
dd.wide {
  font-style: italic;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reveal {
  border: 2px dashed var(--accent);
  background: #f3f8ff;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
}
.kpi b {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
}
.bar {
  background: #e8f0fc;
  border-radius: 6px;
  height: 10px;
  margin: 3px 0 8px;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
}
#toasts {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 76px;
  display: grid;
  gap: 6px;
  z-index: 9;
}
.toast {
  background: #1b2430;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}
.toast.error {
  background: var(--bad);
}
@media (min-width: 760px) {
  body {
    padding-bottom: 0;
  }
  .bottom {
    display: none;
  }
  .top .links {
    display: flex;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .filters {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero {
    padding: 40px 32px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .lot {
    grid-template-columns: 120px 1fr;
  }
  .pic {
    --box: 104px;
  }
  .kpis {
    grid-template-columns: repeat(4, 1fr);
  }
  .cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
.prod {
  text-align: center;
}
.combo {
  position: relative;
}
.combo-list {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 6;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 2px 0 0;
  padding: 4px;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.combo-list[hidden] {
  display: none;
}
.combo-list li {
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.combo-list li:hover {
  background: #e8f0fc;
}
.req {
  color: #d92d20;
  font-weight: 700;
}
.consent {
  border: 2px solid var(--accent);
  background: #f3f8ff;
  border-radius: var(--r);
  padding: 12px 14px;
  margin: 16px 0;
}
.consent.invalid {
  border-color: var(--bad);
  background: #fef3f2;
}
.consent-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.consent input[type='checkbox'] {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  flex: none;
  accent-color: var(--accent);
}
.consent .check {
  align-items: center;
  font-weight: 500;
}
.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.counter {
  font-weight: 700;
  color: var(--bad);
}
.counter.ok {
  color: var(--ok);
}
input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[readonly],
input:disabled,
textarea:disabled,
select:disabled {
  background: #e6e4e1;
  color: #555;
  border-color: #cfcbc6;
  cursor: not-allowed;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.chip input {
  width: auto;
  margin: 0;
}

/* Form fields are as wide as what goes into them (owner: about twice the longest value), not the whole screen. */
.formcard input[data-num] {
  width: 6.5ch;
  padding-inline: 8px;
}
.formcard #quantity,
.formcard #totalWeightKg {
  width: 10ch;
  padding-inline: 10px;
}
.formcard #price {
  width: 8ch;
  padding-inline: 8px;
}
.formcard select {
  width: auto;
  min-width: 9ch;
  max-width: 100%;
}
.formcard #totalAreaUnit,
.formcard #averageAreaUnit,
.formcard #pieceAreaUnit,
.formcard #saleUnit {
  width: 6.5ch;
  min-width: 0;
  padding-inline: 6px;
}
.formcard #city,
.formcard #exactColor,
.formcard .combo {
  width: 100%;
  max-width: 32ch;
}
.formcard .row2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.formcard textarea {
  max-width: 60ch;
}

.dealbox {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 4px;
  padding: 14px 16px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: #eaf1fc;
  font-weight: 600;
}
.dealbox strong {
  font-size: 1.6rem;
  color: var(--accent);
}

/* Hint above the form while no product is chosen: a small framed line, not a grey stray text. */
.pickhint {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 8px 16px;
  border: 1px dashed var(--line, #c9d1dc);
  border-radius: 8px;
  background: #f5f8fc;
  color: #3d5a80;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Admin analytics (A1-A5): compact clickable figures, world map, compact tables. */
.kpis.compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 160px));
  gap: 8px;
  margin-bottom: 12px;
}
.kpis.compact .kpi {
  padding: 6px 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.kpis.compact .kpi b {
  font-size: 1.15rem;
}
.kpis.compact .kpi:hover {
  border-color: var(--accent);
}
.worldmap {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0;
}
.worldmap .region {
  cursor: pointer;
  outline: none;
}
.worldmap .region:hover .hit,
.worldmap .region:focus .hit {
  fill-opacity: 0.22;
  stroke-width: 4;
}
.countrybox {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #f5f8fc;
}
.countrybox h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
table.compact td {
  padding: 3px 8px;
  font-size: 0.82rem;
}
table.compact td.num {
  text-align: right;
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.customdays input {
  width: 5rem;
}

[hidden] {
  display: none !important;
}

#period {
  width: auto;
  min-width: 10rem;
}
.customdays {
  white-space: nowrap;
}

/* Home page */
.homepage {
  max-width: 1100px;
  margin: 0 auto;
}
.homehero {
  background:
    linear-gradient(
      90deg,
      rgba(8, 22, 58, 0.92) 0%,
      rgba(11, 31, 77, 0.78) 38%,
      rgba(11, 31, 77, 0.15) 75%,
      rgba(11, 31, 77, 0) 100%
    ),
    url('/app/img/hero.webp') right center / cover no-repeat,
    #0b1f4d;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #fff;
  border-radius: 18px;
  padding: 44px 28px 20px;
  margin-bottom: 14px;
}
.bannerbox {
  background: #eaf2fc;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.homebanner {
  display: block;
  width: 100%;
  height: clamp(170px, 33vh, 340px);
  object-fit: cover;
  object-position: center 30%;
}
.bannertext {
  padding: 16px 20px 0;
  text-align: center;
  color: #0b1f4d;
}
.bannertext .hometag {
  color: #a8341b;
  margin: 0 0 6px;
}
.bannertext .homesub {
  margin: 0 auto;
  text-align: center;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  min-height: 0;
}
.homehero.nopic {
  padding-left: 12px;
  padding-right: 12px;
  background: #eaf2fc;
  color: #0b1f4d;
  min-height: 0;
  border-radius: 0 0 18px 18px;
  padding-top: 28px;
}
.homehero.nopic .hometag {
  color: #a8341b;
}
.homehero.nopic .homesub {
  min-height: 0;
}
.homehero.nopic .homehint a {
  color: #0b1f4d;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.homehero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  letter-spacing: 0.04em;
  margin: 0;
}
.hometag {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: clamp(0.95rem, 2.6vw, 1.3rem);
  margin: 6px 0 14px;
  color: #ffd9c9;
}
.homesub {
  max-width: 560px;
  min-height: 4.35em;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  margin: 0 0 26px;
  opacity: 0.95;
}
.homeactions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 820px;
  margin: 14px auto 0;
  padding: 22px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border: 2px solid #b9d2f5;
  border-radius: 26px;
  box-shadow:
    0 8px 24px rgba(31, 86, 184, 0.16),
    inset 0 1px 0 #fff;
}
.homebtn {
  container-type: inline-size;
  --glow: 63, 123, 224;
  position: relative;
  display: block;
  line-height: 0;
  border-radius: 24px;
  box-shadow: 0 0 0 rgba(var(--glow), 0);
  transition:
    box-shadow 0.15s,
    filter 0.15s,
    transform 0.1s;
}
.homebtn.sell {
  --glow: 58, 150, 112;
}
.homebtn.ask {
  --glow: 214, 150, 60;
}
.homebtn-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  opacity: 0.86;
}
.homebtn-text {
  position: absolute;
  top: 50%;
  left: 22%;
  right: 16%;
  transform: translateY(-50%);
  text-align: left;
  color: #fff;
  font-weight: 800;
  font-size: max(18px, 5.2cqw);
  line-height: 1.1;
  text-shadow:
    0 1px 5px rgba(0, 0, 0, 0.55),
    0 0 2px rgba(0, 0, 0, 0.35);
}
@media (max-width: 760px) {
  .homeactions {
    padding: 16px 12px;
    gap: 14px;
  }
  .homebtn-text {
    left: 21%;
    right: 18%;
    font-size: max(17px, 5.4cqw);
  }
}
.homebtn:hover,
.homebtn:focus-visible {
  box-shadow:
    0 0 6px rgba(var(--glow), 0.95),
    0 0 18px rgba(var(--glow), 0.7),
    0 0 36px rgba(var(--glow), 0.4);
  filter: brightness(1.04);
  transform: translateY(-2px);
}
.homebtn:active {
  filter: brightness(0.93);
  transform: translateY(2px);
}
.homebtn:focus-visible {
  outline: 3px solid rgb(var(--glow));
  outline-offset: 3px;
}
.homehint {
  margin: 18px 0 0;
  font-size: 0.95rem;
}
.homehint a {
  color: #fff;
  text-decoration: underline;
}
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  margin-bottom: 14px;
}
.trustitem {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #14377f;
}
.trusticon {
  font-size: 1.5rem;
}
.prod {
  display: block;
  text-align: center;
  color: inherit;
}
.prodname {
  font-weight: 700;
}
.side .btn {
  margin-top: 8px;
}
.homeh {
  margin: 18px 0 10px;
}
.homefoot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 18px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.homefoot span {
  margin-right: auto;
}
.homefoot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}
.homefoot a::after {
  content: '→';
}
@media (max-width: 640px) {
  .homefoot {
    gap: 8px;
    margin: 10px 0 4px;
    padding-top: 10px;
  }
  .homefoot span {
    order: 2;
    flex-basis: 100%;
    margin-right: 0;
    text-align: center;
  }
  .homefoot a {
    order: 1;
    flex: 1 1 0;
    justify-content: center;
    padding: 9px 6px;
    font-size: 0.85rem;
  }
  .homefoot a::after {
    content: none;
  }
}
.homefoot a:hover,
.homefoot a:focus-visible {
  background: var(--accent);
  color: #fff;
}
@media (min-width: 720px) {
  .homepage .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .homepage .side-row,
  .homepage .grid.steps:has(> .side) {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
  .homehero {
    padding: 28px 18px;
  }
}

/* Centered blocks and the how-it-works strip */
.side {
  text-align: center;
}
.homeh {
  text-align: center;
  margin: 26px 0 12px;
}
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  background: #e8f0fc;
  border-radius: 18px;
  padding: 28px 16px;
}
.flowstep {
  position: relative;
  text-align: center;
  padding: 0 14px;
}
.flowstep h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #14377f;
}
.flowstep p {
  margin: 0;
  color: #44546c;
}
.flownum {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #14377f;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px #fff;
}
@media (min-width: 720px) {
  .flow {
    grid-template-columns: repeat(3, 1fr);
  }
  .flowstep:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(50% + 40px);
    right: calc(-50% + 40px);
    height: 2px;
    background: #9db8d9;
  }
}

/* Same layout in every language: fixed text heights so Russian and English pages line up. */
.homepage .trustitem {
  min-height: 2.6em;
}
.homepage .side p {
  min-height: 3.1em;
}
.flowstep p {
  min-height: 4.6em;
}
.flowstep h3 {
  min-height: 1.4em;
}

.homepage .trust {
  min-height: 74px;
  align-items: center;
}

/* Sign-in, registration and password pages: brand panel + form (owner 2026-10-03: pages dressed in the style of the home page). */
.authwrap {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  max-width: 1180px;
  margin: 8px auto 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
}
/* The whole photo is shown (no cropping): it keeps its own proportions, the name and the line sit under it. */
.authside {
  background: #0b1f4d;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.authside::before {
  content: '';
  display: block;
  aspect-ratio: 1978 / 1104;
  background: url('/app/img/auth.webp?v=2') center / cover no-repeat;
}
.authname {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 14px 24px 0;
}
.authside p {
  margin: 0;
  padding: 8px 24px 20px;
  line-height: 1.5;
  opacity: 0.92;
}
.authcard {
  padding: 28px 28px 20px;
}
.authcard h1 {
  margin-top: 0;
}
.authcard form > p:has(> .btn[type='submit']) .btn,
.authcard form .btn[type='submit'] {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
}
@media (max-width: 720px) {
  .authwrap {
    grid-template-columns: 1fr;
  }
  .authside p,
  .authname {
    display: none;
  }
  .authcard {
    padding: 20px 18px 14px;
  }
}

/* Lots and requests lists: header band, card grid, chips (owner 2026-10-03: pages dressed in the style of the home page). */
.pagehead {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.4) 32%,
      rgba(255, 255, 255, 0) 60%
    ),
    url('/app/img/lots-head.webp') center 62% / cover no-repeat,
    #0b1f4d;
  color: #0b1f4d;
  border-radius: 18px;
  padding: 34px 24px;
  margin-bottom: 12px;
}
.pagehead h1 {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.04em;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  margin: 0;
}
.pagehead p {
  margin: 6px 0 0;
  opacity: 0.88;
}
.lotgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.lotgrid .card {
  margin-bottom: 0;
}
.lot {
  border-radius: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.lot:hover,
.lot:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(20, 55, 127, 0.16);
  transform: translateY(-2px);
  outline: none;
}
.lot .meta span {
  background: #eef3fb;
  color: #35507a;
  border-radius: 999px;
  padding: 3px 10px;
}
.lot-open {
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
}
@media (min-width: 720px) {
  .lotgrid {
    grid-template-columns: 1fr 1fr;
  }
}

.filter-lwg {
  align-self: end;
  margin: 0 0 10px;
  font-weight: 600;
}

/* Lot and request card: header band, specs left, price and contact right (owner 2026-10-03). */
.detailhead {
  padding: 26px 24px;
}
.detailhead h1 {
  font-size: clamp(1.4rem, 4.5vw, 2rem);
}
.detailhead .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  opacity: 1;
}
.detailhead .chips span {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 31, 77, 0.25);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.9rem;
}
.detailgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
.detailgrid .card {
  margin-bottom: 0;
  border-radius: 14px;
}
.detailgrid .reveal {
  border-radius: 14px;
}
.detailgrid .reveal .btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.05rem;
}
@media (min-width: 820px) {
  .detailgrid {
    grid-template-columns: 1.2fr 1fr;
  }
  .detailgrid {
    align-items: stretch;
  }
  .sidecol {
    grid-template-rows: auto 1fr;
  }
  .processwrap {
    min-height: 220px;
  }
}
.sidecol {
  display: grid;
  gap: 12px;
}
.processwrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.processpic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}
@media (min-width: 820px) {
  .processwrap {
    aspect-ratio: auto;
    min-height: 220px;
  }
}

.detailhead {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.4) 32%,
      rgba(255, 255, 255, 0) 60%
    ),
    url('/app/img/detail-head.webp') center / cover no-repeat,
    #0b1f4d;
  padding: 34px 24px;
}

.pagehead .headbtn {
  display: inline-block;
  margin-top: 16px;
  background: #14377f;
  color: #fff;
  font-weight: 700;
}
.pagehead .headbtn:hover {
  background: #1b4aa6;
}
.actions .toolbar {
  margin: 0;
}
.actions .toolbar .btn {
  flex: 1 1 100%;
  text-align: center;
}

.formcard {
  border-radius: 14px;
  padding: 20px;
}
@media (max-width: 560px) {
  .formcard {
    padding: 16px;
  }
}

/* Admin pages: plain navy band without a photo, same family as the other pages (owner 2026-10-03). */
.pagehead.adminhead {
  color: #fff;
  background: linear-gradient(120deg, #0b1f4d 0%, #1b3f86 100%);
  padding: 22px 24px;
}
.admincard {
  max-width: 440px;
  margin: 24px auto;
  border-radius: 14px;
  padding: 24px;
}
.top .langsel {
  appearance: auto;
  width: auto;
  flex: none;
  padding: 4px 8px;
}

/* Lot and request forms: one centred column, captions and fields centred, no side picture (owner 2026-10-03). */
.formcol {
  max-width: 640px;
  margin: 0 auto;
}
.formcol .card,
.formcol .pickhint {
  margin-bottom: 12px;
  text-align: center;
}
.formcard {
  text-align: center;
}
.formcard label {
  display: block;
}
.formcard .row2,
.formcard .toolbar,
.formcard .chips {
  justify-content: center;
}
.formcard .combo,
.formcard #city,
.formcard #exactColor,
.formcard textarea {
  margin-inline: auto;
}
.formcard .err,
.formcard .formerr {
  text-align: center;
}
.formcol .pickhint {
  width: fit-content;
  margin-inline: auto;
}

/* Same look as the "Show password" checkbox above it: left aligned, regular weight, same box size. */
.rememberrow {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  margin: 10px 0;
  cursor: pointer;
}

/* Admin user list: block button (black text, red frame); a blocked user shows red text and a red frame. */
.blockbtn {
  background: #fff;
  color: #111;
  border: 2px solid #d62828;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.blockbtn.on,
.blockedtext {
  color: #d62828;
}
.blockbtn[disabled] {
  opacity: 0.6;
}

/* Analytics drill-down: clickable country, city and person. */
.rowlink {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

/* Admin cabinet button in the public menu: yellow background so that it stands out. */
.pill.adminpill {
  background: #ffd84a;
  border-color: #e0b400;
  color: #111;
  font-weight: 700;
}

/* About page picture: shown whole (heads and shoulders), never cropped into a band (owner 2026-10-05). */
.aboutpic {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto 18px;
  border-radius: 14px;
}
@media (max-width: 640px) {
  .homebanner {
    height: auto;
    object-fit: initial;
  }
}

/* Product cards on the home page: raised light panels, clearly clickable (owner chose variant C, 2026-10-06). */
#products {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
#products .prod {
  display: block;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #f3f8ff 100%);
  border: 2px solid #b9d2f5;
  box-shadow:
    0 8px 24px rgba(31, 86, 184, 0.2),
    inset 0 1px 0 #fff;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    border-color 0.12s;
}
#products .prod .pic.mid {
  --box: 170px;
  width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d6e3f7;
  box-shadow: 0 3px 8px rgba(31, 86, 184, 0.12);
}
#products .prodname {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #0b1f4d;
}
#products .prod .small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f56b8;
}
#products .prod .small::after {
  content: '›';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding-bottom: 3px;
  border-radius: 50%;
  background: #1f56b8;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(31, 86, 184, 0.5);
}
#products .prod:hover {
  transform: translateY(-3px);
  border-color: #6fa0ea;
  box-shadow:
    0 12px 28px rgba(31, 86, 184, 0.32),
    inset 0 1px 0 #fff;
}
#products .prod:active {
  transform: translateY(1px);
}
#products .prod:focus-visible {
  outline: 3px solid #1f56b8;
  outline-offset: 3px;
}

/* Lots and Requests: bright tabs in the top menu (owner 2026-10-09). Glow is a soft shadow of the same colour. */
.top .links a.navmain {
  color: #fff;
  font-weight: 700;
  padding: 7px 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.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.on {
  color: #fff;
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Top menu: every item has the same height and sits on one centre line (owner 2026-10-13). */
.top .links {
  align-items: center;
}
.top .links a,
.top .pill,
.top .langsel {
  box-sizing: border-box;
  height: 40px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
.top .links a {
  padding: 0 6px;
}
.top .links a.navmain {
  padding: 0 18px;
}
.top .pill {
  padding: 0 14px;
}
.top .langsel {
  padding: 0 8px;
}

/* Latest requests on the home page. */
.homereq:empty {
  display: none;
}
.homereq {
  margin: 20px 0;
}
.homereq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.homereq-head h2 {
  margin: 0;
  color: #e8731a;
}
.homereq-all {
  background: #e8731a;
  color: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  text-decoration: none;
}
.homereq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.homereq-card {
  background: #fff;
  border: 2px solid #f2b27a;
  border-radius: 14px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
}
@media (max-width: 760px) {
  .homereq-grid {
    grid-template-columns: 1fr;
  }
}

/* Draft badge in red (owner 2026-10-09). */
.tag.DRAFT {
  background: #fdecec;
  color: #d11a1a;
  font-weight: 700;
}

/* Bottom (phone) menu: Lots and Requests as bright as in the top menu. */
.bottom a.navmain {
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.bottom a.navlots {
  background: #2f5fbf;
  box-shadow: 0 0 10px rgba(47, 95, 191, 0.55);
}
.bottom a.navreq {
  background: #e8731a;
  box-shadow: 0 0 10px rgba(232, 115, 26, 0.6);
}
.bottom a.navmain.on {
  color: #fff;
  outline: 2px solid #111;
  outline-offset: 1px;
}

/* Readable page titles on the photo banners: the title sits on a solid light plate (owner 2026-10-09). */
.pagehead:not(.adminhead) h1,
.pagehead:not(.adminhead) > p:not(.chips) {
  display: inline-block;
  background: rgba(255, 255, 255, 0.93);
  color: #0b1f4d;
  padding: 6px 16px;
  border-radius: 12px;
  opacity: 1;
  box-shadow: 0 2px 10px rgba(11, 31, 77, 0.18);
}
.pagehead:not(.adminhead) > p:not(.chips) {
  display: block;
  width: fit-content;
  margin-top: 10px;
  font-weight: 600;
}
.pagehead:not(.adminhead) h1 {
  display: block;
  width: fit-content;
  max-width: 100%;
}

/* Analytics: a product row opens the list of its active lots. */
.popularrow {
  cursor: pointer;
}
.popularlots h3 {
  margin: 16px 0 6px;
}

/* Long lists in the admin analytics scroll inside their own box instead of making the page long. */
.scrollbox {
  overflow-y: auto;
}
.recentbox {
  max-height: 62vh;
}

/* Popular products are shown in a frame (owner 2026-10-09): they are what clients looked at. */
.popularcard {
  border: 3px solid #2f5fbf;
  box-shadow: 0 0 0 4px rgba(47, 95, 191, 0.15);
}

.legal {
  max-width: 46rem;
  font-size: 0.8rem;
  line-height: 1.5;
}
.legal h2 {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.95rem;
}
.legal p,
.legal ul {
  margin: 0 0 0.5rem;
}
.legal ul {
  padding-left: 1.2rem;
}

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 34rem;
  margin: 1.5rem auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
}
.qr-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.qr-arrow {
  width: 44px;
  height: auto;
}
.qr-phone {
  width: 60px;
  height: auto;
}
.qr-btn {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.qr-img {
  display: block;
  width: 96px;
  height: 96px;
}
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}
.qr-big {
  width: min(86vw, 86vh, 480px);
  height: auto;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .qr-row {
    cursor: zoom-in;
  }
}
@media (min-width: 701px) {
  .qr-img {
    width: 180px;
    height: 180px;
  }
  .qr-phone {
    width: 88px;
  }
  .qr-arrow {
    width: 64px;
  }
  .qr-row {
    gap: 1.6rem;
  }
}
.msgr {
  margin: 12px 0;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.chip.on {
  border-color: var(--accent);
  background: #eef4fd;
}
.msgr-field {
  margin: 8px 0;
}
.msgr-field label {
  display: flex;
  align-items: center;
  gap: 4px;
}
input.bad,
select.bad,
textarea.bad {
  border-color: var(--bad);
  background: #fef3f2;
}

/* Banner under the deal total: the lot is sold / the request is closed (owner 2026-10-13). */
.statusbar {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
}
.statusbar.sold {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: var(--ok);
}
.statusbar.closed {
  background: #f1efec;
  border: 1px solid #cfcbc6;
  color: #555;
}

/* 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;
  }
}
