html {
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Дополнения к Tailwind: виды воронки и модалки */
.view:not(.view--active) {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 28, 30, 0.45);
  backdrop-filter: blur(8px);
}

.modal__box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
  max-height: min(90vh, 100dvh);
  overflow-y: auto;
}

.modal__box--feedback {
  max-width: 480px;
}

.modal__box--feedback .modal__title {
  line-height: 1.25;
}

#form-feedback input[type="checkbox"] {
  accent-color: #003fb1;
}

.modal__title {
  margin: 0 0 8px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #191c1e;
}

.modal__sum {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #003fb1;
}

.modal__demo {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: #434654;
}

.modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-modal-ghost {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  color: #737686;
  cursor: pointer;
  border-radius: 8px;
}

.btn-modal-ghost:hover {
  background: #f3f4f6;
  color: #191c1e;
}

.btn-modal-primary {
  background: linear-gradient(135deg, #003fb1, #1a56db);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font: inherit;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

.btn-modal-primary:hover {
  opacity: 0.95;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.material-symbols-outlined.fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.hero-gradient {
  background: radial-gradient(circle at 100% 0%, #dbe1ff 0%, #f8f9fb 40%);
}

.compliance-gradient,
.step-gradient {
  background: linear-gradient(135deg, #003fb1 0%, #1a56db 100%);
}

.gradient-primary {
  background: linear-gradient(135deg, #003fb1 0%, #1a56db 100%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.blurred-text {
  filter: blur(8px);
  user-select: none;
  opacity: 0.5;
}

.glass-overlay {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.premium-gradient {
  background: linear-gradient(135deg, #003fb1 0%, #1a56db 100%);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-effect {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

details.faq-details summary {
  list-style: none;
}
details.faq-details summary::-webkit-details-marker {
  display: none;
}

.scan-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--on-surface-variant, #434654);
  border-bottom: 1px solid #edeef0;
}
.scan-steps li.done {
  color: #191c1e;
}
.scan-steps li .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e1e2e4;
  flex-shrink: 0;
}
.scan-steps li.done .dot {
  background: #006c4b;
}

.hidden {
  display: none !important;
}

#paywall-teasers-slot:empty {
  display: none;
}

.locked-teasers {
  margin-bottom: 0;
  text-align: left;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.locked-teasers__row {
  font-size: 0.8125rem;
  color: #9aa3ad;
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f3f4f6;
  border-radius: 8px;
  filter: blur(3px);
  user-select: none;
}

/* Мобильная нижняя CTA на лендинге (скрыта на экранах воронки и при модалке) */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
}

.mobile-sticky-cta__inner {
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767px) {
  body:not(.funnel-overlay-active) .mobile-sticky-cta {
    display: block;
  }

  body:not(.funnel-overlay-active):not(.modal-open) main {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
}

body.modal-open .mobile-sticky-cta {
  display: none !important;
}

/* Cookie-уведомление */
.cookie-banner {
  position: fixed;
  z-index: 55;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 1rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  font-family: Inter, system-ui, sans-serif;
  pointer-events: none;
}

.cookie-banner__panel {
  pointer-events: auto;
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(25, 28, 30, 0.12), 0 2px 8px rgba(25, 28, 30, 0.06);
  border: 1px solid rgba(195, 197, 215, 0.5);
  padding: 1.25rem 1.25rem 1.125rem;
}

@media (min-width: 640px) {
  .cookie-banner__panel {
    border-radius: 1.25rem;
    padding: 1.5rem 1.5rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .cookie-banner {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 42rem;
  }
}

@media (max-width: 767px) {
  body:not(.funnel-overlay-active) .cookie-banner {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}

body.modal-open .cookie-banner {
  display: none;
}

.cookie-banner__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #737686;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.cookie-banner__close:hover {
  background: #f3f4f6;
  color: #191c1e;
}

.cookie-banner__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 1.75rem;
}

@media (min-width: 768px) {
  .cookie-banner__main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-right: 0.5rem;
  }
}

.cookie-banner__lead {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.cookie-banner__copy {
  min-width: 0;
  flex: 1;
}

.cookie-banner__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-top: 0.5rem;
}

.cookie-banner__inline-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #003fb1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__inline-link:hover {
  color: #1a56db;
}

.cookie-banner__links-dot {
  color: #737686;
  font-weight: 700;
  user-select: none;
}

@media (min-width: 640px) {
  .cookie-banner__inline-link {
    font-size: 0.875rem;
  }
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #003fb1 0%, #1a56db 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner__icon svg {
  display: block;
  opacity: 0.95;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #191c1e;
}

@media (min-width: 640px) {
  .cookie-banner__text {
    font-size: 0.9375rem;
  }
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 480px) {
  .cookie-banner__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
  }
}

@media (min-width: 768px) {
  .cookie-banner__actions {
    width: auto;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }
}

.cookie-banner__btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  min-height: 2.5rem;
  transition: opacity 0.15s, transform 0.1s, background 0.15s;
  text-align: center;
  border: none;
}

@media (max-width: 479px) {
  .cookie-banner__btn {
    width: 100%;
  }
}

.cookie-banner__btn:active {
  transform: scale(0.98);
}

.cookie-banner__btn--ghost {
  background: #ffffff;
  color: #191c1e;
  border: 1px solid #c3c5d7;
}

.cookie-banner__btn--ghost:hover {
  background: #f3f4f6;
}

.cookie-banner__btn--primary {
  background: linear-gradient(135deg, #003fb1 0%, #1a56db 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 63, 177, 0.25);
}

.cookie-banner__btn--primary:hover {
  opacity: 0.95;
}

.cookie-banner__btn--text {
  background: transparent;
  color: #003fb1;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: auto;
}

.cookie-banner__btn--text:hover {
  color: #1a56db;
}

.cookie-banner__details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e7e8ea;
}

.cookie-banner__details-text {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #434654;
}

.cookie-banner__details-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

@media (min-width: 480px) {
  .cookie-banner__details-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

.cookie-banner__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #003fb1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover {
  color: #1a56db;
}
