/* Баннер согласия на cookie (KVKK / Google Consent Mode v2) */
.consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--paper, #ffffff);
  color: var(--ink, #1e2d38);
  border-top: 1px solid var(--line, #bcccdc);
  box-shadow: 0 -8px 28px rgba(30, 45, 56, 0.12);
  padding: 14px var(--pad, 20px) calc(14px + env(safe-area-inset-bottom, 0px));
  font-family: var(--sans, 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif);
}
.consent-bar[hidden] {
  display: none !important;
}
.consent-in {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.consent-txt {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink, #1e2d38);
  font-weight: 400;
}
.consent-link {
  color: var(--ink, #1e2d38);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
  white-space: nowrap;
}
.consent-link:hover {
  color: var(--mid, #3d5260);
}
.consent-link:focus-visible {
  outline: 2px solid var(--gold, #b39a74);
  outline-offset: 2px;
}
.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 260px;
}
.consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink, #1e2d38);
  background: var(--ink, #1e2d38);
  color: #ffffff;
  font-family: var(--sans, 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.consent-btn:hover {
  background: var(--mid, #3d5260);
  border-color: var(--mid, #3d5260);
  color: #ffffff;
}
.consent-btn:focus-visible {
  outline: 2px solid var(--gold, #b39a74);
  outline-offset: 3px;
}
html.consent-open .whatsapp-btn {
  bottom: calc(var(--consent-h, 110px) + 20px) !important;
}
@media (max-width: 760px) {
  .consent-bar {
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .consent-in {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .consent-txt {
    display: grid;
    gap: 1px;
    font-size: 11px;
    line-height: 1.2;
  }
  .consent-msg {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .consent-txt .consent-link {
    margin-left: 0;
    justify-self: start;
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .consent-actions {
    width: 100%;
    min-width: 0;
    gap: 8px;
  }
  .consent-actions .consent-btn {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
  }
}
@media (max-width: 767px) {
  .mbar--laser ~ .consent-bar {
    bottom: calc(65px + env(safe-area-inset-bottom, 0px));
    padding-bottom: 6px;
  }
}
@media (max-width: 640px) {
  .mbar ~ .consent-bar {
    bottom: calc(65px + env(safe-area-inset-bottom, 0px));
    padding-bottom: 6px;
  }
}

/* Плашка режима ?notrack=1 (только для своих браузеров) */
.notrack-bar {
  position: fixed;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  max-width: calc(100vw - 24px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36, 33, 30, 0.9);
  color: #f4f0eb;
  font-family: var(--sans, 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
.notrack-bar[hidden] {
  display: none !important;
}
html.consent-open .notrack-bar {
  bottom: calc(var(--consent-h, 80px) + 12px);
}
@media (max-width: 767px) {
  .mbar--laser ~ .notrack-bar {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
  html.consent-open .mbar--laser ~ .notrack-bar {
    bottom: calc(var(--consent-h, 80px) + 74px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 640px) {
  .mbar ~ .notrack-bar {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
  html.consent-open .mbar ~ .notrack-bar {
    bottom: calc(var(--consent-h, 80px) + 74px + env(safe-area-inset-bottom, 0px));
  }
}
