.it-test-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  box-sizing: border-box;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #e7dfd0;
  border-radius: 0 30px 0 30px;
  background: #fff;
  color: var(--title-color-22);
  box-shadow: 0 16px 60px rgba(34, 34, 34, 0.16);
  animation: it-notice-enter 0.24s ease-out;
}

.it-test-notice[hidden] {
  display: none;
}

body.modal-open .it-test-notice,
body.is-menu-open .it-test-notice,
html.with-fancybox .it-test-notice {
  visibility: hidden;
  pointer-events: none;
}

.it-test-notice__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-card-ac-FA);
  color: var(--title-color-22);
  cursor: pointer;
}

.it-test-notice__close svg {
  width: 18px;
  height: 18px;
}

.it-test-notice__brand {
  padding-right: 30px;
  color: var(--btn-bg-9D);
  font-family: var(--font-famely-Tenor), serif;
  font-size: 21px;
  line-height: 1.3;
}

.it-test-notice__brand span {
  margin-left: 6px;
  color: #8d8474;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.it-test-notice__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #7b6537;
  font-size: 12px;
  line-height: 1.4;
}

.it-test-notice__badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--btn-bg-9D);
}

.it-test-notice__title {
  margin: 10px 0 12px;
  font-family: var(--font-famely-Tenor), serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  text-align: left;
}

.it-test-notice__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #666057;
}

.it-test-notice__text strong {
  color: var(--title-color-22);
  font-weight: 600;
}

.it-test-notice__continue {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid var(--btn-bg-9D);
  border-radius: 100px;
  background: var(--btn-bg-9D);
  color: #fff;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.it-test-notice__continue:hover {
  background: var(--color-B5);
  border-color: var(--color-B5);
}

.it-test-notice button:focus-visible {
  outline: 2px solid var(--title-color-22);
  outline-offset: 3px;
}

@keyframes it-notice-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .it-test-notice {
    right: 16px;
    bottom: 16px;
    padding: 20px;
    border-radius: 0 24px 0 24px;
  }

  .it-test-notice__title { font-size: 24px; }
  .it-test-notice__badge { margin-top: 10px; }
  .it-test-notice__continue { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .it-test-notice { animation: none; }
  .it-test-notice__continue { transition: none; }
}
