/* Mostbet Android — visual theme. */

:root {
  --bg: #0c4ed8;
  --bg-deep: #0839a8;
  --surface: #ffffff;
  --surface-2: #f4f7fc;
  --ink: #142033;
  --text: #2a3a50;
  --muted: #5c6d84;
  --orange: #ff7a00;
  --orange-hot: #ff8c1a;
  --orange-deep: #f05400;
  --green: #2fdb62;
  --gold: #ff7a00;
  --line: #e3eaf4;
  --line-strong: rgba(12, 78, 216, 0.16);
  --shadow: 0 14px 36px rgba(6, 36, 120, 0.18);
  --radius: 18px;
  --header-offset: 84px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: #fff;
  background:
    radial-gradient(720px 320px at 100% 0%, rgba(255, 140, 40, 0.16), transparent 55%),
    linear-gradient(180deg, #1560ea 0%, var(--bg) 28%, #0a43c4 100%);
  background-attachment: fixed;
}

body,
html {
  overflow-x: hidden;
}

::selection {
  background: var(--orange);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--orange-hot);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  text-wrap: balance;
}

p {
  margin: 0 0 14px;
}

a {
  color: var(--bg);
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: #0b3ea8;
  background: #eaf1ff;
  border-radius: 6px;
  padding: 0.12em 0.4em;
  word-break: break-all;
}

/* Header */

#site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 10px 22px;
  background: #0946c6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(6, 30, 110, 0.28);
}

#site-header::before {
  content: none;
}

#site-header > a {
  display: inline-flex;
  text-decoration: none;
}

#site-header img {
  display: block;
  height: 52px;
  width: auto;
  padding: 2px 8px;
  background: #fff;
  border-radius: 10px;
}

#site-header nav {
  margin-left: auto;
}

#site-header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#site-header nav a {
  display: inline-block;
  padding: 8px 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}

#site-header nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

#site-header > a[download] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(180deg, var(--orange-hot), var(--orange-deep));
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(240, 84, 0, 0.35);
}

#site-header > a[download]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

#site-header > a[download]::before {
  content: "↓";
  font-size: 0.95em;
  line-height: 1;
}

/* Main column */

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 56px;
}

main:not(:has(> section)) {
  margin-top: 28px;
  padding: 12px 28px 32px;
  background: #fff;
  color: var(--text);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

main > h1 {
  margin: 36px 0 12px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
}

main > h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

main > h2 {
  margin: 32px 0 10px;
  padding-bottom: 8px;
  font-size: 1.35rem;
  border-bottom: 1px solid var(--line);
}

main > p,
main > ul,
main > address,
main > form {
  max-width: 760px;
}

main > ul {
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
}

main > ul > li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 22px;
}

main > ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

main address {
  font-style: normal;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 12px;
}

main address a,
main a {
  font-weight: 700;
}

main > p > strong {
  color: var(--orange-deep);
}

/* Hero */

main > section:first-of-type {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  column-gap: 14px;
  width: auto;
  max-width: none;
  margin: 28px 0 22px;
  padding: 48px 28px 40px;
  color: #fff;
  background:
    radial-gradient(ellipse 42% 80% at 100% 0%, rgba(255, 150, 40, 0.28), transparent 58%),
    linear-gradient(165deg, #1a62ee 0%, #0a3fbe 72%);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(4, 28, 100, 0.28);
}

main > section:first-of-type > * {
  width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
}

main > section:first-of-type > *:not(p:nth-of-type(3)):not(p:nth-of-type(4)) {
  flex: 1 0 100%;
}

main > section:first-of-type h1 {
  margin: 0 auto 16px;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  letter-spacing: -0.035em;
  text-align: center;
}

main > section:first-of-type h1::before {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

main > section:first-of-type > p:first-of-type {
  font-size: 1.15rem;
  color: #e7eef8;
}

main > section:first-of-type > p:nth-of-type(2) {
  padding: 14px 16px;
  color: #fff;
  background: rgba(4, 24, 90, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--orange);
  border-radius: 16px;
}

main > section:first-of-type > p:nth-of-type(2) strong {
  color: #fff;
}

main > section:first-of-type > p:nth-of-type(3) {
  width: auto;
  margin: 22px 0 16px;
}

main > section:first-of-type a[download],
#features a[download] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--orange-hot), var(--orange-deep));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(240, 84, 0, 0.38);
}

main > section:first-of-type a[download]::before,
#features a[download]::before {
  content: "↓";
  line-height: 1;
}

main > section:first-of-type a[download]:hover,
#features a[download]:hover,
#site-header > a[download]:hover {
  filter: brightness(1.06);
}

main > section:first-of-type > p:nth-of-type(4) {
  width: fit-content;
  margin: 22px 0 16px;
  text-align: center;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

main > section:first-of-type > p:nth-of-type(5) {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

main > section:first-of-type a:not([download]) {
  color: #fff;
}

/* Content cards */

main > section:not(:first-of-type) {
  margin: 0 0 18px;
  padding: 28px 28px 22px;
  color: var(--text);
  background: #fff;
  border: 0;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

main > section h2 {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}

main > section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

main section[id] {
  scroll-margin-top: var(--header-offset);
}

/* Download steps */

#download > ol {
  counter-reset: step;
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

#download > ol > li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 58px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

#download > ol > li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  background: linear-gradient(180deg, var(--orange-hot), var(--orange-deep));
  border-radius: 999px;
}

#download a[download] {
  color: var(--orange-deep);
  font-weight: 800;
}

/* Specs */

dl {
  display: grid;
  grid-template-columns: minmax(180px, 34%) 1fr;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

dt,
dd {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--bg);
  font-weight: 700;
  background: #f3f7ff;
}

dd {
  color: var(--ink);
  background: #fff;
}

dt:last-of-type,
dd:last-of-type {
  border-bottom: 0;
}

#safety dd code {
  display: block;
  padding: 12px 14px;
  color: #0d6b32;
  background: #f1fbf4;
  border: 1px dashed rgba(47, 219, 98, 0.7);
  border-radius: 8px;
}

table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
}

caption {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  caption-side: top;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  width: 42%;
  color: var(--bg);
  font-weight: 700;
}

tr:nth-child(odd) th,
tr:nth-child(odd) td {
  background: #f6f9fd;
}

/* Installation gallery */

ol.installation-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

ol.installation-steps > li {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

ol.installation-steps figure {
  margin: 0;
}

ol.installation-steps img {
  display: block;
  width: 100%;
  background: #f3f7fb;
}

ol.installation-steps figcaption {
  padding: 14px 14px 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

ol.installation-steps figcaption strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

/* Feature, FAQ and troubleshooting blocks */

#features h3,
#troubleshooting h3,
#faq h3 {
  margin: 16px 0 0;
  padding: 14px 16px 0;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: inset 3px 0 0 var(--orange);
}

#features h3 + p,
#troubleshooting h3 + p,
#faq h3 + p {
  margin: 0;
  padding: 8px 16px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

#features > p:last-of-type {
  margin: 22px 0 0;
}

/* Contact form */

#contact-form {
  margin-top: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

#contact-form p {
  margin: 0 0 16px;
}

#contact-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 700;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: #f7f9fc;
  border: 1px solid #d5deea;
  border-radius: 12px;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  border-color: var(--bg);
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 78, 216, 0.18);
}

#contact-form p:has(input[type="checkbox"]) label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--text);
}

#contact-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--orange);
  flex: 0 0 auto;
}

#contact-form button {
  width: 100%;
  padding: 14px 18px;
  color: #7d8b9e;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #e7edf5;
  border: 0;
  border-radius: 999px;
  cursor: not-allowed;
}

/* Footer */

#site-footer {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 0.95fr;
  gap: 26px 28px;
  width: min(1120px, calc(100% - 40px));
  margin: 8px auto 36px;
  padding: 28px 28px 18px;
  color: var(--text);
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

#site-footer h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid #ffe0c2;
}

#site-footer #footer-about {
  padding: 0;
  color: var(--bg);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-transform: none;
  border: 0;
}

#site-footer #footer-about::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), #ffc14d);
}

#site-footer p,
#site-footer address {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.55;
}

#site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#site-footer li + li {
  margin-top: 7px;
}

#site-footer a {
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

#site-footer a:hover {
  color: var(--orange-deep);
}

#site-footer address a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--bg);
  background: #f3f7ff;
  border-radius: 999px;
}

#site-footer address a:hover {
  color: #fff;
  background: var(--orange);
}

#site-footer > section[aria-labelledby="footer-sources"],
#site-footer > p {
  grid-column: 1 / -1;
}

#site-footer > section[aria-labelledby="footer-sources"] {
  padding: 14px 16px;
  background: #f4f7fd;
  border-radius: 14px;
}

#site-footer > section[aria-labelledby="footer-disclaimer"],
#site-footer > section[aria-labelledby="footer-responsible"] {
  grid-column: span 2;
  padding: 14px 16px;
  background: #f7f9fc;
  border-radius: 14px;
}

#site-footer > section[aria-labelledby="footer-disclaimer"] h2,
#site-footer > section[aria-labelledby="footer-responsible"] h2,
#site-footer > section[aria-labelledby="footer-sources"] h2 {
  margin-bottom: 8px;
  border-bottom: 0;
  padding-bottom: 0;
}

#site-footer > p {
  margin: 4px 0 0;
  padding-top: 14px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

#site-footer small {
  font-size: 0.84rem;
}

/* Narrow screens */

@media (max-width: 780px) {
  #site-footer {
    grid-template-columns: 1fr 1fr;
    width: min(1120px, calc(100% - 24px));
    padding: 22px 16px 14px;
  }

  #site-footer > section[aria-labelledby="footer-about"],
  #site-footer > section[aria-labelledby="footer-contact"],
  #site-footer > section[aria-labelledby="footer-disclaimer"],
  #site-footer > section[aria-labelledby="footer-responsible"] {
    grid-column: 1 / -1;
  }

  #site-header {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 12px;
  }

  #site-header nav {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  #site-header > a[download] {
    margin-left: auto;
  }

  #site-header img {
    height: 44px;
  }
}

@media (max-width: 520px) {
  #site-header img {
    height: 40px;
    padding: 1px 6px;
  }

  #site-header > a[download] {
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  main {
    width: min(1120px, calc(100% - 24px));
  }

  main > section:first-of-type {
    padding: 36px 16px 32px;
  }

  main > section:not(:first-of-type) {
    padding: 18px 14px;
    border-radius: 14px;
  }

  #contact-form {
    padding: 16px;
  }
}

@media (max-width: 700px) {
  dl {
    grid-template-columns: 1fr;
  }

  dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  dd {
    padding-top: 2px;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  th {
    padding-bottom: 0;
  }

  td {
    padding-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #site-header > a[download]:hover {
    transform: none;
  }
}
