/* Admin analytics, home page, sign-in pages. Part of the site style sheet: the files load in number order and the order must not change. */
/* 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: #fcfaf8;
  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: 18px 20px 4px;
  text-align: center;
  color: #0b1f4d;
}
.bannertext .homelabel {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: #0b1f4d;
}
.bannertext .hometag {
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  text-transform: uppercase;
}
.bannertext .tagfirst,
.bannertext .tagsecond {
  display: inline-block;
  white-space: nowrap;
}
.bannertext .tagfirst {
  color: #0b1f4d;
}
.bannertext .tagsecond {
  /* Owner 2026-11-09: no red on the home page (red reads as an error); the slogan's second half is brand blue. */
  color: #1f5fc4;
}
.bannertext .homeslogan {
  margin: 0 0 10px;
  font-style: normal;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: #4a5a7a;
}
.bannertext .homesub {
  margin: 0 auto;
  max-width: 420px;
  font-size: 0.95rem;
  min-height: 0;
  color: #0b1f4d;
}
/* On a computer: label | tagline and slogan | description, divided by thin lines (owner's picture 2026-10-22). */
@media (min-width: 900px) {
  .bannertext {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 220px;
    align-items: center;
    padding: 22px 24px;
  }
  .bannertext .homelabel {
    margin: 0;
    width: 150px;
    padding: 4px 14px 4px 12px;
    letter-spacing: 0.1em;
    border-left: 4px solid #1f5fc4;
    text-align: left;
    line-height: 1.6;
  }
  .bannertext .hometag {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
  }
  .bannertext .homemid {
    padding: 4px 18px;
    border-left: 1px solid #b8c2d4;
    border-right: 1px solid #b8c2d4;
  }
  .bannertext .homeslogan {
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
  }
  .bannertext .homesub {
    margin: 0;
    padding-left: 18px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 400;
  }
}
.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: #0b1f4d;
}
.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 {
  /* Owner 2026-11-09: a compact, calm block: one row on a wide screen, half the old height, no outer frame. */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 1180px;
  margin: 14px auto 0;
}
.homebtn {
  /* Owner 2026-11-09: looks clickable before any hover (phones): frame, radius, blue text, light blue fill, arrow,
     a soft shadow. Hover (computer): fills blue, white text, the arrow moves right. Press: darker and 98% size. */
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #1f5fc4;
  border-radius: 8px;
  background: #f0f6ff;
  color: #1f5fc4;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(19, 41, 75, 0.14);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}
/* Owner 2026-11-09: three different shades at rest. Main: its own dark light-blue (not the hover blue).
   Lots: light blue tint, blue stripe. Requests: light peach tint, orange stripe. */
.homebtn.main {
  background: #2b7bb9;
  border-color: #2b7bb9;
  border-left: 4px solid #1a5a8c;
  color: #fff;
}
.homebtn.lots {
  background: #e8f1fd;
  border-left: 4px solid #1f5fc4;
}
.homebtn.requests {
  background: #fff3e8;
  border-color: #e8a26a;
  border-left: 4px solid #e8731a;
  color: #a2470a;
}
.homebtn-count {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
}
.homebtn-icon {
  flex: none;
  display: inline-flex;
  width: 22px;
  height: 22px;
}
.homebtn-icon svg {
  width: 100%;
  height: 100%;
}
.homebtn-text {
  flex: 1;
  min-width: 0;
}
.homebtn-arrow {
  flex: none;
  font-size: 1.15rem;
  transition: transform 0.2s;
}
/* Owner 2026-11-09: only one blue button at a time: the button under the mouse turns brand blue,
   the others keep their own resting shades. */
@media (hover: hover) {
  .homebtn:hover {
    background: #1f5fc4;
    border-color: #1f5fc4;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 41, 75, 0.22);
  }
  .homebtn.requests:hover {
    border-left-color: #e8731a;
  }
  .homebtn:hover .homebtn-arrow {
    transform: translateX(4px);
  }
}
.homebtn:focus-visible {
  background: #1f5fc4;
  border-color: #1f5fc4;
  color: #fff;
  outline: 3px solid #9cc0f2;
  outline-offset: 2px;
}
.homebtn:active {
  transform: scale(0.98);
  background: #d6e5fa;
}
@media (hover: hover) {
  .homebtn:active {
    background: #184fa6;
  }
}
@media (max-width: 760px) {
  .homeactions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .homebtn {
    min-height: 48px;
    font-size: 0.9rem;
    gap: 8px;
  }
}
.homehint {
  margin: 18px 0 0;
  font-size: 0.95rem;
}
.homehint a {
  color: #fff;
  text-decoration: underline;
}
.trust {
  display: grid;
  /* Owner 2026-11-08: three cards after «Надёжные участники» was removed. */
  grid-template-columns: repeat(3, 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;
}
.homeseo {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.homeseo p {
  margin: 4px 0;
}
.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);
  }
  #products .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .homepage .side-row,
  .homepage .grid.steps:has(> .side) {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .trust .trustitem {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 0.8rem;
    min-width: 0;
  }
  .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: 3.4em;
}
.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;
}
.authpoints {
  margin: 0;
  padding: 4px 24px 24px 44px;
  line-height: 1.45;
  opacity: 0.92;
}
.authpoints li {
  margin: 0 0 10px;
}
.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,
  .authpoints,
  .authname {
    display: none;
  }
  .authcard {
    padding: 20px 18px 14px;
  }
}
