:root {
  --cf-background: linear-gradient(180deg, #1b007d, #0a002d);
  --cf-text: #fff;
  --cf-card: rgb(0 0 0 / 30%);
  --cf-menu: rgb(0 0 0 / 80%);
  --cf-shadow: 0 4px 10px rgb(0 0 0 / 25%);
  --cf-separator: rgb(255 255 255 / 10%);
  --cf-check: url('/wp-content/uploads/2025/09/check-dark.svg');
}
body.light-mode {
  --cf-background: linear-gradient(#e9ebf5, #e9ebf5);
  --cf-text: #0f1542;
  --cf-card: #fff;
  --cf-menu: rgb(255 255 255 / 96%);
  --cf-shadow: 2.3px 2.3px 34.3px -13px rgb(0 0 0 / 5%);
  --cf-separator: rgb(0 0 0 / 30%);
  --cf-check: url('/wp-content/uploads/2025/09/check-light.svg');
}
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { margin: 0; scroll-behavior: smooth; }
body.cf-site { margin: 0; min-height: 100svh; display: flex; flex-direction: column; color: var(--cf-text); font: 400 16px/1.5 Montserrat, sans-serif; background: #0a002d; transition: color .4s ease; }
body.cf-site > #cf-main { flex: 1 0 auto; }
body.cf-site > .cf-footer { flex-shrink: 0; }
body.cf-site::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--cf-background); pointer-events: none; transition: background .4s ease; }
.cf-site h1, .cf-site h2, .cf-site h3, .cf-site p { margin: 0; }
.cf-site a { color: inherit; text-decoration: none; }
.cf-site button, .cf-site input, .cf-site select { font: inherit; }
.cf-site button { cursor: pointer; }
.cf-site img { max-width: 100%; }
.cf-site button:disabled { cursor: default; }
.cf-site :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.cf-container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.cf-skip-link { position: fixed; top: 8px; left: 8px; padding: 12px; z-index: 10000; background: #fff; color: #0f1542 !important; transform: translateY(-150%); }
.cf-skip-link:focus { transform: none; }
.cf-sr-only { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cf-header { position: relative; z-index: 100; height: 104px; flex-shrink: 0; }
.cf-header__inner { display: flex; align-items: center; height: 104px; gap: 24px; }
.cf-logo { display: flex; flex-shrink: 0; width: 93px; margin-right: auto; }
.cf-logo__mark { display: block; width: 100%; height: auto; }
.light-mode .cf-logo__mark { filter: brightness(0) saturate(100%) invert(8%) sepia(33%) saturate(4219%) hue-rotate(224deg) brightness(95%); }
.cf-desktop-nav { display: flex; align-items: center; gap: 36px; font-size: 18px; font-weight: 500; white-space: nowrap; }
.cf-desktop-nav > a, .cf-nav-button { opacity: .72; transition: opacity .15s; }
.cf-desktop-nav > a:hover, .cf-nav-button:hover { opacity: 1; }
.cf-nav-button { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; padding: 0; white-space: nowrap; }
.cf-chevron { width: 6px; height: 6px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); margin-top: -3px; transition: transform .2s ease; }
.cf-dropdown.is-open .cf-chevron { transform: rotate(225deg); }
.cf-header__actions { display: flex; align-items: center; gap: 8px; }
.cf-theme-toggle { position: relative; display: flex; align-items: center; flex-shrink: 0; width: 70px; height: 40px; padding: 5px; border: 0; border-radius: 999px; background: rgb(0 0 0 / 30%); overflow: hidden; isolation: isolate; margin-right: -16px; }
.cf-theme-toggle__knob { position: relative; z-index: 1; width: 30px; height: 30px; flex-shrink: 0; transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
.light-mode .cf-theme-toggle__knob { transform: translateX(30px); }
.cf-theme-toggle__icon { position: absolute; inset: 0; background-size: 70%; background-position: center; background-repeat: no-repeat; transition: opacity .35s ease, transform .45s cubic-bezier(.65, 0, .35, 1); }
.cf-theme-toggle__icon--moon { background-image: url('/wp-content/uploads/2025/07/moon.svg'); opacity: 1; transform: rotate(0deg) scale(1); }
.cf-theme-toggle__icon--sun { background-image: url('/wp-content/uploads/2025/09/sun_o.svg'); opacity: 0; transform: rotate(90deg) scale(.4); }
.light-mode .cf-theme-toggle__icon--moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
.light-mode .cf-theme-toggle__icon--sun { opacity: 1; transform: rotate(0deg) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .cf-theme-toggle__knob, .cf-theme-toggle__icon { transition: none; }
  body.cf-site, body.cf-site::before { transition: none; }
}
.cf-scanner-button, .cf-login-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border: 1px solid transparent; border-radius: 50px; font-weight: 600 !important; font-size: 18px !important; color: inherit; white-space: nowrap; }
.cf-scanner-button { height: 46px; background: rgb(0 0 0 / 70%); }
.light-mode .cf-scanner-button { color: #fff; background: #0f1542; }
.cf-header .cf-login-button { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 10px 30px; background: transparent; border: 1px solid currentColor; }
.cf-avatar-button { display: flex; align-items: center; padding: 0; background: none; color: inherit; border: 0; width: 56px; height: 56px; }
.cf-avatar-button img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cf-dropdown { position: relative; }
.cf-dropdown__panel { display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; margin: 0; padding: 8px; list-style: none; border-radius: 12px; background: var(--cf-menu); color: var(--cf-text); box-shadow: 0 10px 20px rgb(0 0 0 / 15%); backdrop-filter: blur(15px); white-space: normal; }
#cf-arbitrage-menu { min-width: 380px; }
#cf-scanner-menu { min-width: 140px; }
#cf-account-menu { min-width: 260px; }
#cf-account-menu a { padding: 8px 12px; }
.cf-dropdown__panel::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.cf-dropdown__panel a { display: block; padding: 12px; font-size: 16px; font-weight: 500; line-height: 1.3; border-radius: 8px; }
.cf-dropdown__panel a:hover { background: rgb(127 127 127 / 15%); }
.cf-dropdown.is-open .cf-dropdown__panel { display: block; }
.cf-header__account .cf-dropdown__panel, .cf-header__scanner .cf-dropdown__panel { left: auto; right: 0; }
.cf-menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 44px; color: inherit; background: none; border: 0; padding: 4px; }
.cf-mobile-menu { position: fixed; inset: 0 0 0 auto; width: min(300px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 30px; border: 0; color: var(--cf-text); background: var(--cf-menu); backdrop-filter: blur(15px); overscroll-behavior: contain; transform: translateX(100%); transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
.cf-mobile-menu.is-open { transform: translateX(0); }
.cf-mobile-menu::backdrop { background: rgb(0 0 0 / 60%); opacity: 0; transition: opacity .35s ease; }
.cf-mobile-menu.is-open::backdrop { opacity: 1; }
.cf-mobile-menu nav { display: flex; flex-direction: column; }
.cf-mobile-menu nav > a, .cf-mobile-menu__account > a { display: block; padding: 15px; font-size: 16px; font-weight: 600; line-height: 1.1; }
.cf-mobile-menu nav > .cf-button { align-self: flex-start; min-width: 0; margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; font: 600 16px/1 Montserrat, sans-serif; }
.cf-mobile-menu__account, .cf-mobile-menu nav > .cf-dropdown { display: contents; }
.cf-mobile-menu .cf-nav-button { width: 100%; justify-content: space-between; padding: 15px; font-size: 16px; font-weight: 600; line-height: 1.1; opacity: 1; }
.cf-mobile-menu .cf-dropdown__panel { position: static; margin: 0; padding: 0 0 10px 15px; background: none; box-shadow: none; backdrop-filter: none; }
.cf-mobile-menu .cf-dropdown__panel a { padding: 12px 15px; font-size: 15px; opacity: .8; }
@media (max-width: 1024px) {
  .cf-mobile-menu__account { display: none; }
  body { transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
  body.cf-menu-open { transform: translateX(-240px); }
}
.cf-menu-close { position: absolute; top: 3px; right: 4px; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 30px !important; line-height: 1; }
.cf-menu-open { overflow: hidden; }
.cf-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; min-width: 232px; padding: 12px 28px; border: 2px solid #fff; border-radius: 50px; background: #fff; color: #000dff !important; font: 600 16px/1 Raleway, sans-serif; transition: background-color .3s, color .3s, border-color .3s; }
.cf-button:hover { background: #000dff; border-color: #000dff; color: #fff !important; }
.cf-button--outline { background: transparent; color: #fff !important; }
.cf-button--outline:hover { background: transparent; border-color: #0e00fa; color: #0e00fa !important; }
.light-mode .cf-button { background: #0f1542; border-color: #0f1542; color: #fff !important; }
.light-mode .cf-button--outline { background: transparent; color: #0f1542 !important; }
.cf-footer { padding: 80px 0 30px; background: rgb(0 0 0 / 75%); color: #fff; }
.light-mode .cf-footer { background: #151353; }
.cf-footer__columns { display: grid; grid-template-columns: 44.5% 28.5% 27%; }
.cf-footer__brand { max-width: 450px; padding-right: 20px; }
.cf-footer__logo { display: block; font-size: 42px; font-weight: 700; line-height: 1; margin-bottom: 20px; }
.cf-footer__brand p { font-size: 16px; line-height: 1.2; font-weight: 500; }
.cf-footer__brand .cf-footer__legal { margin-top: 20px; color: #54595f; line-height: 1.2; }
.cf-footer h2 { font-size: 24px; font-weight: 600; line-height: 1.3; margin-bottom: 20px; }
.cf-footer__nav, .cf-footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cf-footer__nav h2, .cf-footer__contacts h2 { margin-bottom: 0; }
.cf-footer__nav a, .cf-footer__contacts a { font-size: 16px; font-weight: 500; line-height: 1; }
.cf-footer__contacts a { display: inline-flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.cf-footer a:hover { opacity: .8; }
.cf-footer__copyright { padding-top: 100px; text-align: center; font-size: 12px; color: #a3a3a3; }
@media (max-width: 1320px) and (min-width: 1025px) {
  .cf-header__inner { gap: 18px; }
  .cf-desktop-nav { gap: 20px; font-size: 15px; }
  .cf-scanner-button, .cf-login-button { font-size: 16px !important; padding-inline: 18px; }
}
@media (max-width: 1024px) {
  .cf-header, .cf-header__inner { height: 80px; }
  .cf-logo { width: 62px; margin-right: 12px; }
  .cf-desktop-nav, .cf-header__scanner, .cf-login-button { display: none; }
  .cf-header .cf-login-button { display: none !important; }
  .cf-theme-toggle { width: 68px; height: 38px; padding: 5px; margin-right: auto; }
  .cf-theme-toggle__knob { width: 28px; height: 28px; }
  .light-mode .cf-theme-toggle__knob { transform: translateX(30px); }
  .cf-menu-toggle { display: flex; width: 44px; padding: 4px 0 4px 12px; }
  .cf-header__inner { gap: 0; }
  .cf-header__actions { flex: 0 0 auto; margin-right: 0; margin-left: auto; }
  .cf-header__account { display: block; }
  .cf-avatar-button, .cf-avatar-button img { width: 50px; height: 50px; }
  .cf-footer { padding: 60px 0 36px; }
  .cf-footer__columns { grid-template-columns: 1fr; gap: 40px; }
  .cf-footer__brand { max-width: none; padding: 0; }
  .cf-footer__logo { font-size: 34px; }
  .cf-footer__copyright { padding-top: 40px; }
}
@media (max-width: 767px) {
  .cf-footer__brand p { font-size: 14px; line-height: 1.2; }
  .cf-footer__logo { font-size: 32px; }
  .cf-footer h2 { font-size: 24px; line-height: 27px; }
  .cf-footer__nav, .cf-footer__contacts { gap: 20px; }
  .cf-footer__nav { gap: 10px; }
  .cf-footer__nav a, .cf-footer__contacts a { font-size: 14px; }
  .cf-footer__copyright { padding-top: 40px; font-size: 10px; }
}
/* Decorative hero videos: hide Safari's native play overlay/controls when autoplay is blocked. */
.cf-hero__image, .cf-cex-hero__video, .cf-course-hero__video { pointer-events: none; -webkit-user-select: none; user-select: none; }
video.cf-hero__image::-webkit-media-controls, video.cf-cex-hero__video::-webkit-media-controls, video.cf-course-hero__video::-webkit-media-controls { display: none !important; -webkit-appearance: none; }
video.cf-hero__image::-webkit-media-controls-panel, video.cf-cex-hero__video::-webkit-media-controls-panel, video.cf-course-hero__video::-webkit-media-controls-panel { display: none !important; -webkit-appearance: none; }
video.cf-hero__image::-webkit-media-controls-overlay-play-button, video.cf-cex-hero__video::-webkit-media-controls-overlay-play-button, video.cf-course-hero__video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
video.cf-hero__image::-webkit-media-controls-start-playback-button, video.cf-cex-hero__video::-webkit-media-controls-start-playback-button, video.cf-course-hero__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cf-site, .cf-site *, .cf-site *::before, .cf-site *::after { animation: none !important; transition-duration: .01ms !important; }
}
