:root {
  --bg: #070708;
  --bg-2: #101114;
  --bg-3: #17191f;
  --red: #d51218;
  --red-2: #ff2d24;
  --red-dim: rgba(213, 18, 24, 0.16);
  --text: #f3f4f6;
  --muted: #9aa0ab;
  --line: rgba(255, 255, 255, 0.08);
  --steel: #c5c9d1;
  --ok: #3dce7a;
  --radius: 14px;
  --maxw: 1180px;
  --header: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100%;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 8px;
  background: var(--red);
  padding: 8px 12px;
  z-index: 100;
}

.wrap {
  width: min(var(--maxw), calc(100% - 40px));
  margin-inline: auto;
}

.display {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

/* header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(7, 7, 8, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--maxw), calc(100% - 40px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.header-phone {
  font-weight: 800;
  white-space: nowrap;
}

.header-phone small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hdr-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.hdr-cta:hover {
  background: var(--red-2);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
}

/* hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.94) 0%, rgba(7, 7, 8, 0.78) 42%, rgba(7, 7, 8, 0.35) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  filter: saturate(0.85) contrast(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(transparent, var(--bg));
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.kicker i {
  width: 28px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 86px);
  margin: 0 0 22px;
  max-width: 9ch;
}

.hero h1 em {
  font-style: normal;
  color: #fff;
}

.hero h1 span {
  color: var(--red-2);
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  background: var(--red-2);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover {
  border-color: #fff;
}

.btn-dark {
  background: #fff;
  color: #111;
}
.btn-dark:hover {
  background: #e8e8e8;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--steel);
}

.hero-card {
  background: rgba(16, 17, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(10px);
}

.hero-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.hero-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.stat b {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 26px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

/* sections */
section {
  padding: 84px 0;
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 36px;
}

.sec-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.sec-head p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.num {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 800;
  margin-bottom: 8px;
}

/* trust */
.trust {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item b {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 22px;
  margin-bottom: 6px;
}

.trust-item span {
  color: var(--muted);
  font-size: 14px;
}

/* services */
.services {
  background: var(--bg-2);
}

.grid-svc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.svc {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0c0d10;
  isolation: isolate;
}

.svc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transition: 0.35s transform, 0.35s opacity;
}

.svc:hover img {
  transform: scale(1.06);
  opacity: 0.55;
}

.svc .body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82) 55%);
}

.svc h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.svc p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.price {
  margin-top: 10px;
  font-weight: 800;
  color: #fff;
}

.svc.wide {
  grid-column: span 2;
}
.svc {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(213, 18, 24, 0.28);
}
.svc img,
.svc .body {
  pointer-events: none;
}
.svc-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  cursor: pointer;
  background: transparent;
  touch-action: manipulation;
}
#lead-service {
  cursor: text;
}
#lead-service.is-set {
  border-color: rgba(213, 18, 24, 0.7);
  font-weight: 700;
  color: #fff;
}

/* how */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 220px;
}

.step .n {
  font-family: system-ui, sans-serif;
  font-size: 40px;
  color: var(--red);
}

.step h3 {
  margin: 8px 0 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* works */
.works {
  background: #0b0c0f;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ba {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  user-select: none;
  border: 1px solid var(--line);
  background: #000;
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba .before-clip {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.ba .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}

.ba .handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.tag {
  position: absolute;
  top: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
}

.tag.l {
  left: 12px;
}
.tag.r {
  right: 12px;
}

.ba-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 8px #000;
}

/* prices */
.price-table {
  width: 100%;
  border-collapse: collapse;
}

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

.price-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

.note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

/* contact */
.contact {
  background:
    radial-gradient(800px 300px at 10% 0%, var(--red-dim), transparent 60%),
    var(--bg-2);
  scroll-margin-top: calc(var(--header) + 12px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}
.contact .form {
  max-width: 640px;
  margin: 0 auto;
}

.panel {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.contacts-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.contacts-list span {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea {
  background: #0d0e12;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(213, 18, 24, 0.7);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.drop {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  background: #0d0e12;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
}

.form-msg {
  min-height: 20px;
  font-size: 14px;
  font-weight: 700;
}

.form-msg.ok {
  color: var(--ok);
}
.form-msg.err {
  color: var(--red-2);
}

.footer {
  padding: 36px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 6px;
  max-width: 720px;
}

.footer-copy {
  color: var(--text);
  font-weight: 700;
}

.footer-tag {
  margin: 0 0 8px;
  max-width: 52ch;
  line-height: 1.45;
}

.org-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.admin-ghost {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.12);
  font-weight: 600;
  padding: 4px 0;
}

.admin-ghost:hover,
.admin-ghost:focus {
  color: rgba(243, 244, 246, 0.4);
  outline: none;
}

.dock {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  color: #111;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 80;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  :root { --header: 56px; }

  html, body { overflow-x: hidden; }
  html, body, * { touch-action: pan-x pan-y; }

  .wrap {
    width: min(var(--maxw), calc(100% - 32px));
  }
  .header {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--header) + env(safe-area-inset-top, 0px));
  }
  .header .wrap {
    width: min(var(--maxw), calc(100% - 32px));
    gap: 12px;
  }
  .brand { font-size: 13px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .nav,
  .header-phone,
  .hdr-cta { display: none; }
  .burger {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .display { line-height: 1.08; }

  .hero {
    min-height: 0 !important;
    height: auto;
    align-items: start;
  }
  .hero-bg {
    filter: none;
    background:
      radial-gradient(120% 80% at 80% -10%, rgba(213, 18, 24, 0.42) 0%, transparent 55%),
      radial-gradient(90% 60% at 0% 100%, rgba(213, 18, 24, 0.22) 0%, transparent 50%),
      linear-gradient(180deg, #14080a 0%, #070708 72%, var(--bg) 100%);
  }
  .hero-bg::after { display: none; }
  .hero .wrap {
    padding: 16px 0 28px;
    gap: 0;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .kicker {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.35;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(32px, 9vw, 40px);
    margin: 0 0 12px;
    max-width: none;
  }
  .hero .lead {
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 18px;
    max-width: none;
  }
  .hero-card { display: none; }

  .hero .cta-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 14px;
  }
  .hero .cta-row .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    grid-column: auto;
  }
  .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
  }
  .cta-row .btn {
    flex: 1 1 calc(50% - 8px);
    min-height: 48px;
    padding: 12px 14px;
    font-size: 14px;
  }
  .btn { min-height: 44px; }
  .chips { gap: 6px; }
  .chip {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.3;
  }

  section { padding: 40px 0; }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 8px;
  }
  .sec-head h2 { font-size: 26px; }
  .sec-head p { font-size: 14px; }

  .hero .wrap,
  .contact-grid,
  .grid-svc,
  .how-grid,
  .ba-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .svc.wide { grid-column: auto; }
  .svc,
  .svc .body { min-height: 168px; }
  .svc .body { padding: 16px; }
  .svc h3 { font-size: 18px; }
  .svc,
  .svc-hit {
    touch-action: manipulation;
    cursor: pointer;
  }

  .trust-item {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
  }
  .trust-item:nth-child(2n) { border-right: 0; }
  .trust-item b { font-size: 15px; margin-bottom: 4px; }
  .trust-item span { font-size: 12px; }
  .step { min-height: 0; padding: 16px; }
  .step .n { font-size: 24px; }

  .panel { padding: 16px; border-radius: 14px; }
  .panel h2 { font-size: 22px; }
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .contact-grid .form { order: -1; }
  .contact .cta-row {
    display: flex;
    flex-direction: column;
    margin-top: 16px !important;
  }
  .contact .cta-row .btn { flex: 1 1 100%; width: 100%; }
  .form { gap: 10px; }
  .form h2 { font-size: 22px !important; }
  .form input,
  .form select,
  .form textarea {
    font-size: 16px;
    padding: 12px;
    min-height: 48px;
    width: 100%;
  }
  .form textarea { min-height: 88px; }
  .form .btn { width: 100%; min-height: 48px; }
  .form .check { padding: 6px 0; }
  .form .check input {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }
  .contacts-list li {
    gap: 8px;
    flex-wrap: nowrap;
    align-items: baseline;
  }
  .contacts-list span { flex: 0 0 72px; }
  .contacts-list b { text-align: right; }
  .price-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    width: 100%;
  }
  .price-table thead { display: none; }
  .price-table tr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    background: #14161c;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .price-table th,
  .price-table td {
    border: 0;
    padding: 14px 16px;
    white-space: normal;
    vertical-align: top;
  }
  .price-table td:first-child {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #f3f4f6;
    text-align: left;
  }
  .price-table td:last-child,
  .price-table th:last-child {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    white-space: nowrap;
    text-align: right;
    padding-left: 0;
  }
  .faq { padding-top: 8px; }
  .faq summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 4px 0;
  }
  .footer { padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
  body.dock-on .footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    height: 56px;
    padding: 4px;
    background: rgba(14, 15, 18, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.22s ease;
  }
  .dock.is-on {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 12px;
    color: rgba(243, 244, 246, 0.78);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.02em;
    line-height: 1;
  }
  .dock svg {
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 20px;
    stroke: currentColor;
    fill: none;
  }
  .dock .st-max { color: #fff; }
  .dock a:active { color: #fff; background: rgba(255,255,255,0.06); }

  .cookie-bar {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  body.dock-on .cookie-bar {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .toast {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 32px);
  }
  body.dock-on .toast {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  .legal-layer { padding: 12px; }
  .legal-sheet { padding: 16px; max-height: 82vh; }

  .mobile-nav {
    padding: 16px 20px 32px;
    top: calc(var(--header) + env(safe-area-inset-top, 0px));
  }
  .mobile-nav a {
    font-size: 20px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--header) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 7, 8, 0.96);
  z-index: 45;
  padding: 24px;
}

.mobile-nav.open {
  display: grid;
  gap: 18px;
  align-content: start;
}

.mobile-nav a {
  font-size: 22px;
  font-weight: 800;
}

label.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
label.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 18px;
  accent-color: var(--red);
}
label.check a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
}
.legal-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
  white-space: nowrap;
}
.legal-links a:hover { color: #fff; }
.legal-links span { color: rgba(243, 244, 246, 0.22); }
.req { color: var(--red-2); }

.faq {
  background: var(--bg);
  padding-top: 40px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin: 10px 0 4px;
  color: var(--muted);
  max-width: 72ch;
}

.legal-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.legal-sheet {
  width: min(760px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  background: #12141a;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 28px;
}
.legal-sheet h2 { margin: 0 20px 12px 0; font-size: 22px; }
.legal-sheet h3 { margin: 18px 0 8px; font-size: 16px; }
.legal-sheet p, .legal-sheet li { color: var(--muted); font-size: 14px; }
.legal-sheet ul { padding-left: 18px; }
.legal-close {
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
}

.cookie-bar {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 70;
  width: min(420px, calc(100% - 32px));
  background: #16181f;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.cookie-bar p { margin: 0 0 10px; }
.cookie-bar .btn { padding: 8px 14px; font-size: 13px; }

.legal-src { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }



