/* === OVZ Toggle Button (1t.ru style) === */
.ovz-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 2px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #9600ff 0%, #0019ff 100%);
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

.ovz-toggle:hover {
  opacity: 0.7;
}

.ovz-toggle:focus-visible {
  outline: 2px solid #cdbdff;
  outline-offset: 3px;
}

.ovz-toggle__icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.ovz-active .ovz-toggle {
  display: none !important;
}

nav#navbar {
  gap: 16px;
}

nav#navbar .links {
  margin-left: auto;
}

@media (max-width: 365px) {
  .ovz-toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
}

/* === OVZ Top Control Panel === */
.ovz-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  padding: 14px 0;
  border-bottom: 1px solid currentColor;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  user-select: none;
}

.ovz-panel__container {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.ovz-panel__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

.ovz-panel__groups {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 28px;
}

.ovz-panel__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ovz-panel__label {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.ovz-panel__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ovz-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ovz-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid currentColor !important;
  border-radius: 4px !important;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1 !important;
  cursor: pointer;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: transform 0.15s ease;
}

.ovz-panel__btn--square {
  width: 40px;
  padding: 0;
}

.ovz-panel__btn--size-1 {
  font-size: 15px !important;
}

.ovz-panel__btn--size-2 {
  font-size: 21px !important;
}

.ovz-panel__btn--size-3 {
  font-size: 27px !important;
}

.ovz-panel__btn--sans {
  font-family: Arial, Helvetica, sans-serif !important;
}

.ovz-panel__btn--serif {
  font-family: Georgia, 'Times New Roman', serif !important;
}

.ovz-panel__btn--color-1 {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}

.ovz-panel__btn--color-2 {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.ovz-panel__btn--color-5 {
  background: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

.ovz-panel__btn--color-3 {
  background: #9dd1ff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}

.ovz-panel__btn--color-active {
  transform: scale(1.1);
}

.ovz-panel__icon {
  width: 20px !important;
  height: 20px !important;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* === OVZ Dropdown === */
.ovz-panel__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 24px;
  z-index: 10;
  padding: 20px;
  border: 1px solid currentColor !important;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  flex-direction: column;
  gap: 18px;
  min-width: 300px;
  max-width: calc(100vw - 32px);
}

.ovz-panel__dropdown--open {
  display: flex;
}

.ovz-panel__dropdown-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* === Color Schemes for Panel & Page === */
html.ovz-active {
  --ovz-bg: #ffffff;
  --ovz-fg: #000000;
  --ovz-shadow: rgba(0, 0, 0, 0.25);
}

html.ovz-active.ovz-color-1 {
  --ovz-bg: #ffffff;
  --ovz-fg: #000000;
  --ovz-shadow: rgba(0, 0, 0, 0.25);
  color-scheme: light;
}

html.ovz-active.ovz-color-2 {
  --ovz-bg: #000000;
  --ovz-fg: #ffffff;
  --ovz-shadow: rgba(255, 255, 255, 0.25);
  color-scheme: dark;
}

html.ovz-active.ovz-color-5 {
  --ovz-bg: #000000;
  --ovz-fg: #ffff00;
  --ovz-shadow: rgba(255, 255, 0, 0.25);
  color-scheme: dark;
}

html.ovz-active.ovz-color-3 {
  --ovz-bg: #9dd1ff;
  --ovz-fg: #000000;
  --ovz-shadow: rgba(0, 0, 0, 0.25);
  color-scheme: light;
}

html.ovz-active .ovz-panel,
html.ovz-active .ovz-panel__dropdown {
  background: var(--ovz-bg) !important;
  color: var(--ovz-fg) !important;
  border-color: var(--ovz-fg) !important;
}

html.ovz-active .ovz-panel__dropdown {
  box-shadow: 0 4px 20px var(--ovz-shadow) !important;
}

html.ovz-active .ovz-panel__btn--active {
  background: var(--ovz-fg) !important;
  color: var(--ovz-bg) !important;
  border-color: var(--ovz-fg) !important;
}

html.ovz-active .ovz-panel__btn:focus-visible {
  outline: 2px solid var(--ovz-fg) !important;
  outline-offset: 2px !important;
}

/* === Page Offset & Sticky Header Compensation === */
html.ovz-active {
  scroll-padding-top: calc(var(--ovz-offset, 100px) + 84px) !important;
}

html.ovz-active body {
  margin-top: var(--ovz-offset, 100px) !important;
  background: var(--ovz-bg) !important;
  color: var(--ovz-fg) !important;
}

html.ovz-active .header {
  top: var(--ovz-offset, 100px) !important;
}

/* === Global Page Overrides When OVZ Active === */
html.ovz-active :where(*:not(.ovz-panel):not(.ovz-panel *)) {
  background-color: var(--ovz-bg) !important;
  background-image: none !important;
  color: var(--ovz-fg) !important;
  border-color: var(--ovz-fg) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-text-fill-color: currentColor !important;
}

html.ovz-active a:where(:not(.ovz-panel *)) {
  text-decoration: underline !important;
}

html.ovz-active button:not(.ovz-panel *),
html.ovz-active .btn,
html.ovz-active .button,
html.ovz-active input,
html.ovz-active select,
html.ovz-active textarea,
html.ovz-active .card,
html.ovz-active .qual-card,
html.ovz-active .faq-item,
html.ovz-active .faq-rev,
html.ovz-active .direction-card,
html.ovz-active .location-card,
html.ovz-active .skill-card,
html.ovz-active .benefit,
html.ovz-active .outcome,
html.ovz-active .league-card,
html.ovz-active .project,
html.ovz-active .review-item,
html.ovz-active .course-highlight,
html.ovz-active .full-form,
html.ovz-active .school-panel,
html.ovz-active .results__pill,
html.ovz-active dialog,
html.ovz-active .modal,
html.ovz-active .rev-modal__inner {
  border: 1px solid var(--ovz-fg) !important;
}

html.ovz-active .results__pill,
html.ovz-active .age-pill,
html.ovz-active .eyebrow,
html.ovz-active .badge,
html.ovz-active .tags span {
  border: 1px solid var(--ovz-fg) !important;
}

html.ovz-active dialog::backdrop,
html.ovz-active .overlay {
  background: rgba(0, 0, 0, 0.72) !important;
}

/* Preserve transparency on overlays/icons/pseudo-decorations */
html.ovz-active svg,
html.ovz-active svg *,
html.ovz-active .hero-halo,
html.ovz-active .hero-orbit,
html.ovz-active .platform-glow,
html.ovz-active .video-grid-pattern,
html.ovz-active .art-caption,
html.ovz-active .game-play,
html.ovz-active .league-card-number {
  background-color: transparent !important;
}

html.ovz-active .hero-halo,
html.ovz-active .hero-orbit,
html.ovz-active .platform-glow,
html.ovz-active .video-grid-pattern,
html.ovz-active .art-bottom-line,
html.ovz-active .results__center::before,
html.ovz-active .results__center::after {
  display: none !important;
}

html.ovz-active .game-play,
html.ovz-active .art-caption,
html.ovz-active .badge,
html.ovz-active .tag,
html.ovz-active .tags span {
  background-color: var(--ovz-bg) !important;
}

/* Checkboxes & radios remain visible */
html.ovz-active input[type="checkbox"],
html.ovz-active input[type="radio"] {
  accent-color: var(--ovz-fg) !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  background-color: transparent !important;
}

/* === Font Family === */
html.ovz-active.ovz-font-sans :where(*:not(.ovz-panel):not(.ovz-panel *)) {
  font-family: Arial, Helvetica, sans-serif !important;
}

html.ovz-active.ovz-font-serif :where(*:not(.ovz-panel):not(.ovz-panel *)) {
  font-family: Georgia, 'Times New Roman', serif !important;
}

/* === Font Size (3 levels) === */
html.ovz-active.ovz-size-1 body {
  font-size: 16px !important;
}

html.ovz-active.ovz-size-2 body,
html.ovz-active.ovz-size-2 p:not(.ovz-panel *),
html.ovz-active.ovz-size-2 li:not(.ovz-panel *),
html.ovz-active.ovz-size-2 a:not(.ovz-panel *),
html.ovz-active.ovz-size-2 span:not(.ovz-panel *):not(.game-play):not(.faq-icon),
html.ovz-active.ovz-size-2 div.item,
html.ovz-active.ovz-size-2 div.mt-cell,
html.ovz-active.ovz-size-2 div.dir-item,
html.ovz-active.ovz-size-2 div.faq-rev,
html.ovz-active.ovz-size-2 label,
html.ovz-active.ovz-size-2 input,
html.ovz-active.ovz-size-2 select,
html.ovz-active.ovz-size-2 summary,
html.ovz-active.ovz-size-2 figcaption,
html.ovz-active.ovz-size-2 button:not(.ovz-panel *) {
  font-size: 20px !important;
}

html.ovz-active.ovz-size-2 h1 {
  font-size: clamp(36px, 5vw, 56px) !important;
}

html.ovz-active.ovz-size-2 h2 {
  font-size: clamp(28px, 3.6vw, 42px) !important;
}

html.ovz-active.ovz-size-2 h3,
html.ovz-active.ovz-size-2 h4 {
  font-size: 23px !important;
}

html.ovz-active.ovz-size-3 body,
html.ovz-active.ovz-size-3 p:not(.ovz-panel *),
html.ovz-active.ovz-size-3 li:not(.ovz-panel *),
html.ovz-active.ovz-size-3 a:not(.ovz-panel *),
html.ovz-active.ovz-size-3 span:not(.ovz-panel *):not(.game-play):not(.faq-icon),
html.ovz-active.ovz-size-3 div.item,
html.ovz-active.ovz-size-3 div.mt-cell,
html.ovz-active.ovz-size-3 div.dir-item,
html.ovz-active.ovz-size-3 div.faq-rev,
html.ovz-active.ovz-size-3 label,
html.ovz-active.ovz-size-3 input,
html.ovz-active.ovz-size-3 select,
html.ovz-active.ovz-size-3 summary,
html.ovz-active.ovz-size-3 figcaption,
html.ovz-active.ovz-size-3 button:not(.ovz-panel *) {
  font-size: 24px !important;
}

html.ovz-active.ovz-size-3 h1 {
  font-size: clamp(40px, 5.5vw, 64px) !important;
}

html.ovz-active.ovz-size-3 h2 {
  font-size: clamp(32px, 4vw, 48px) !important;
}

html.ovz-active.ovz-size-3 h3,
html.ovz-active.ovz-size-3 h4 {
  font-size: 27px !important;
}

/* === Letter Spacing === */
html.ovz-active.ovz-ls-1 :where(*:not(.ovz-panel):not(.ovz-panel *)) {
  letter-spacing: normal !important;
}

html.ovz-active.ovz-ls-2 :where(*:not(.ovz-panel):not(.ovz-panel *)) {
  letter-spacing: 2px !important;
}

html.ovz-active.ovz-ls-3 :where(*:not(.ovz-panel):not(.ovz-panel *)) {
  letter-spacing: 4px !important;
}

/* === Line Height === */
html.ovz-active.ovz-lh-1 :where(*:not(.ovz-panel):not(.ovz-panel *)) {
  line-height: 1.5 !important;
}

html.ovz-active.ovz-lh-2 :where(*:not(.ovz-panel):not(.ovz-panel *)) {
  line-height: 1.75 !important;
}

html.ovz-active.ovz-lh-3 :where(*:not(.ovz-panel):not(.ovz-panel *)) {
  line-height: 2.1 !important;
}

/* === Images Mode === */
html.ovz-active.ovz-images-1 img:not(.ovz-panel *),
html.ovz-active.ovz-images-1 video {
  filter: grayscale(1) !important;
}

html.ovz-active.ovz-images-0 img:not(.ovz-panel *),
html.ovz-active.ovz-images-0 .visual,
html.ovz-active.ovz-images-0 .hero-art,
html.ovz-active.ovz-images-0 .course-highlight-art,
html.ovz-active.ovz-images-0 .direction-photo,
html.ovz-active.ovz-images-0 .skill-art,
html.ovz-active.ovz-images-0 .benefit-media,
html.ovz-active.ovz-images-0 .league-card-cover,
html.ovz-active.ovz-images-0 .outcomes-character,
html.ovz-active.ovz-images-0 .location-photo,
html.ovz-active.ovz-images-0 .location-symbol,
html.ovz-active.ovz-images-0 .faq-art,
html.ovz-active.ovz-images-0 .enroll-decoration {
  display: none !important;
}

/* === Disable animations/blur in OVZ === */
html.ovz-active .benefit-slide {
  filter: none !important;
}

/* === Responsive OVZ Panel === */
@media (max-width: 960px) {
  .ovz-panel {
    padding: 10px 0;
  }

  .ovz-panel__container {
    padding: 0 14px;
  }

  .ovz-panel__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ovz-panel__groups {
    gap: 10px 16px;
  }

  .ovz-panel__label {
    font-size: 13px !important;
  }

  .ovz-panel__btn {
    min-width: 34px;
    height: 34px;
    font-size: 14px !important;
  }

  .ovz-panel__btn--square {
    width: 34px;
  }

  .ovz-panel__btn--size-2 {
    font-size: 18px !important;
  }

  .ovz-panel__btn--size-3 {
    font-size: 22px !important;
  }

  .ovz-panel__dropdown {
    right: 14px;
    left: 14px;
    min-width: 0;
    padding: 14px;
  }
}

@media (max-width: 540px) {
  .ovz-panel__label {
    display: none;
  }

  .ovz-panel__groups {
    gap: 8px 12px;
  }

  .ovz-panel__controls {
    gap: 6px;
  }

  .ovz-panel__btn {
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    font-size: 13px !important;
  }

  .ovz-panel__btn--square {
    width: 30px;
  }
}
