/*
Theme Name: Camels
Theme URI: https://camels.expert
Author: Camels Team
Author URI: https://camels.expert
Description: Лаконичная кастомная тема для проекта Camels.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: camels
*/

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Typography scale ── */
  --fs-heading: clamp(1.375rem, 2.5vw, 3rem);
  --fs-description: clamp(1rem, 1.5vw, 1.5rem);
  --fs-description-alt: clamp(0.9rem, 1.1vw, 1.2rem);
  --fs-card-title: clamp(0.813rem, 0.7rem + 0.4vw, 1rem);
  --fs-card-desc: clamp(0.688rem, 0.6rem + 0.3vw, 0.75rem);
  --fs-button: 1rem;

  /* ── Surfaces ── */
  --camels-bg: #f6f6f6;
  --camels-surface: #ffffff;
  --camels-surface-95: rgba(255, 255, 255, 0.95);
  --camels-surface-70: rgba(255, 255, 255, 0.7);
  --camels-surface-light: #f9f9f9;
  --camels-surface-input: #f5f5f5;
  --camels-surface-tab: #f7f8fa;
  --camels-surface-warm: #fff9f5;
  --camels-surface-green: #ebfae7;
  --camels-surface-blue: #e6f6ff;

  /* ── Text ── */
  --camels-text: #212e44;
  --camels-text-strong: #374357;
  --camels-muted: #69707d;
  --camels-muted-alt: #6b7280;
  --camels-muted-light: #8a919c;
  --camels-black: #000000;

  /* ── Brand ── */
  --camels-primary: #736ffb;
  --camels-accent: #f65a03;
  --camels-accent-hover: #e04f00;
  --camels-accent-warm: #f67803;
  --camels-accent-shadow: rgba(246, 90, 3, 0.38);

  /* ── Semantic ── */
  --camels-green: #43bb5a;
  --camels-green-bright: #41d31c;
  --camels-green-profit: #2ba810;
  --camels-blue-info: #03a5f6;
  --camels-yellow: #ffd821;

  /* ── Gray palette ── */
  --camels-primary-5: #f4f5f6;
  --camels-primary-20: #d3d5da;
  --camels-primary-80: #4d5869;

  /* ── Borders ── */
  --camels-border: rgba(0, 0, 0, 0.1);
  --camels-border-light: #eaebef;
  --camels-border-soft: #edeef1;
  --camels-border-medium: #dadada;
  --camels-border-gray: #e1e1e1;
  --camels-border-track: #e9eaec;
  --camels-border-tab: #e0e3e8;
  --camels-border-cell: #f0f1f3;
  --camels-border-hover: #c5cad3;
  --camels-border-thumb: #d9d9d9;
  --camels-divider: #d0d0d0;

  /* ── Dark palette ── */
  --camels-dark-card: #25293a;
  --camels-dark-blue: #43597e;
  --camels-dark-blue-deep: #223455;
  --camels-dark-grad-start: #3f5478;
  --camels-dark-grad-end: #2c3e5c;

  /* ── Shadows ── */
  --camels-shadow: rgba(0, 0, 0, 0.08);
  --camels-shadow-light: rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  font-family: Onest, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--camels-bg);
  color: var(--camels-text);
  line-height: 1.6;
}

a {
  color: var(--camels-primary);
}

html.has-cb-cookie-banner {
  scroll-padding-bottom: 240px;
}

html.has-cb-cookie-banner body {
  padding-bottom: clamp(184px, 21vw, 248px);
}

.cb-cookie-banner {
  position: fixed;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 120;
  padding: 0 18px;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.cb-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cb-cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(38px);
}

.cb-cookie-banner__shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid rgba(122, 85, 34, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(246, 120, 3, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(33, 46, 68, 0.08), transparent 38%),
    linear-gradient(135deg, rgba(255, 249, 245, 0.98), rgba(255, 244, 222, 0.96));
  box-shadow: 0 26px 80px rgba(33, 46, 68, 0.18);
  overflow: hidden;
  pointer-events: auto;
  isolation: isolate;
}

.cb-cookie-banner__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.55), transparent 18%),
    radial-gradient(circle at 78% 24%, rgba(246, 90, 3, 0.08), transparent 16%),
    radial-gradient(circle at 35% 88%, rgba(67, 187, 90, 0.08), transparent 18%);
  pointer-events: none;
}

.cb-cookie-banner__visual,
.cb-cookie-banner__content,
.cb-cookie-banner__actions {
  position: relative;
  z-index: 1;
}

.cb-cookie-banner__visual {
  position: relative;
  min-height: 178px;
  border-radius: 24px;
  background: linear-gradient(180deg, #18324d 0%, #2b5371 46%, #f0be6a 100%);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 34px rgba(20, 35, 58, 0.16);
}

.cb-cookie-banner__visual::before,
.cb-cookie-banner__visual::after,
.cb-cookie-banner__desert {
  position: absolute;
}

.cb-cookie-banner__visual::before {
  content: "";
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 33, 54, 0.34) 0%, rgba(18, 33, 54, 0.08) 36%, rgba(18, 33, 54, 0) 66%),
    linear-gradient(180deg, rgba(255, 232, 183, 0.18) 0%, rgba(255, 232, 183, 0) 28%, rgba(28, 22, 12, 0.16) 100%);
  z-index: 1;
  pointer-events: none;
}

.cb-cookie-banner__visual::after {
  content: "";
  inset: auto 14px 12px 14px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 202, 112, 0.46) 0%, rgba(255, 202, 112, 0.08) 58%, transparent 74%);
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
}

.cb-cookie-banner__desert {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: 0.98;
  transform: scale(1.04);
  transform-origin: center center;
  filter: saturate(1.04) contrast(1.02);
  animation: cb-cookie-banner-image 16s ease-in-out infinite;
}

.cb-cookie-banner__content {
  min-width: 0;
}

.cb-cookie-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(246, 90, 3, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--camels-text-strong);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.cb-cookie-banner__eyebrow-text {
  display: inline-block;
  line-height: 1;
}

.cb-cookie-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--camels-accent), var(--camels-accent-warm));
  color: #fff;
  box-shadow: 0 12px 24px rgba(246, 90, 3, 0.24);
}

.cb-cookie-banner__title {
  margin: 14px 0 10px;
  font-size: var(--fs-card-title);
  line-height: 1.08;
  color: var(--camels-black);
}

.cb-cookie-banner__text {
  max-width: 700px;
  margin: 0;
  color: var(--camels-black);
  font-size: var(--fs-card-title);
  line-height: 1.52;
}

.cb-cookie-banner__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--camels-text);
  font-size: 1rem;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cb-cookie-banner__more::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.cb-cookie-banner__more:hover {
  color: var(--camels-accent);
  transform: translateX(2px);
}

.cb-cookie-banner__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cb-cookie-banner__accept {
  min-width: 170px;
  min-height: 58px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--camels-accent), var(--camels-accent-warm));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(246, 90, 3, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cb-cookie-banner__accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(246, 90, 3, 0.34);
  color: var(--camels-accent);
  border-color: var(--camels-accent);
  background: var(--camels-surface);
  filter: saturate(1.05);
}

.cb-cookie-banner__accept:focus-visible,
.cb-cookie-banner__more:focus-visible {
  outline: 3px solid rgba(115, 111, 251, 0.24);
  outline-offset: 4px;
}

@keyframes cb-cookie-banner-image {
  0%,
  100% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.08) translate3d(-8px, -3px, 0);
  }
}

@media (max-width: 991px) {
  html.has-cb-cookie-banner body {
    padding-bottom: 310px;
  }

  .cb-cookie-banner {
    bottom: 16px;
    padding: 0 12px;
  }

  .cb-cookie-banner__shell {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .cb-cookie-banner__visual {
    min-height: 152px;
  }

  .cb-cookie-banner__desert {
    object-position: center 42%;
  }

  .cb-cookie-banner__actions {
    justify-content: stretch;
  }

  .cb-cookie-banner__accept {
    width: 100%;
  }
}

@media (max-width: 640px) {
  html.has-cb-cookie-banner body {
    padding-bottom: 350px;
  }

  .cb-cookie-banner {
    bottom: 10px;
    padding: 0 10px;
  }

  .cb-cookie-banner__shell {
    border-radius: 24px;
  }

  .cb-cookie-banner__visual {
    min-height: 132px;
  }

  .cb-cookie-banner__desert {
    object-position: center 40%;
  }

  .cb-cookie-banner__eyebrow {
    width: 100%;
    justify-content: center;
    font-size: 0.78rem;
  }

  .cb-cookie-banner__title {
    font-size: var(--fs-card-title);
  }

  .cb-cookie-banner__text,
  .cb-cookie-banner__more,
  .cb-cookie-banner__accept {
    font-size: var(--fs-card-title);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cb-cookie-banner,
  .cb-cookie-banner__desert,
  .cb-cookie-banner__more,
  .cb-cookie-banner__accept {
    animation: none !important;
    transition: none !important;
  }
}

.camels-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--camels-bg);
  border-bottom: 1px solid var(--camels-border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.camels-header-inner {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 102.8rem;
  margin: 0 auto;
}

.camels-header-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.camels-header-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 20px;
  min-height: 52px;
  text-decoration: none;
}

.camels-header-logo img {
  display: block;
}

.camels-logo-mark {
  width: 30%;
  height: auto;
}

.camels-logo-text {
  width: 40%;
  height: auto;
}

/* Light variant hidden by default */
.camels-logo-text--light {
  display: none !important;
}

.camels-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 6px;
  border-radius: 12px;
  white-space: nowrap;
}

.camels-header-icon-btn,
.camels-header-nav-link,
.camels-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-card-title);
  line-height: normal;
  border-radius: 12px;
}

.camels-header-icon-btn {
  width: 40px;
  height: 40px;
  padding: 14px;
  background: var(--camels-primary-5);
}

.camels-header-icon-btn i {
  font-size: 24px;
  line-height: 1;
  color: var(--camels-text);
}

.camels-header-icon-btn.is-active {
  background: #ebecf0;
}

.camels-header-icon-btn.is-active i {
  color: var(--camels-accent);
}

.camels-header-nav-link {
  height: 52px;
  padding: 10px 5px;
  color: var(--camels-text);
  background: var(--camels-primary-5);
  border: 1px solid transparent;
  border-bottom-width: 3px;
  transition: color .2s, border-color .2s;
  position: relative;
  gap: 6px;
}

.camels-header-nav-link:hover,
.camels-header-nav-link.is-open,
.camels-header-nav-link.is-open.has-chevron .camels-nav-chevron {
  color: var(--camels-accent);
  border-radius: 8px;
}

.camels-header-nav-link.is-active,
.camels-dropdown-wrap:has(.camels-nav-dropdown__item.is-active) > .camels-header-nav-link, 
.camels-dropdown-wrap:has(.camels-nav-dropdown__item.is-active) > .camels-header-nav-link.has-chevron {
  color: var(--camels-accent);
  /* border-color: var(--camels-accent); */
  border-radius: 8px;
}

.camels-header-nav-link.has-chevron {
  gap: 10px;
  cursor: pointer;
}

.camels-header-nav-link.has-chevron .camels-nav-chevron {
  font-size: 13px;
  line-height: 1;
  transition: transform .2s;
}

.camels-header-nav-link.is-open.has-chevron .camels-nav-chevron {
  transform: rotate(180deg);
}

.camels-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}


.camels-lang-current i,
.camels-lang-switch > i {
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  color: currentColor;
}

.camels-header-cta {
  height: 52px;
  padding: 10px 30px;
  border-radius: 8px;
}

.camels-header-cta-login {
  background: var(--camels-text);
  color: #fff;
}

.camels-header-cta-register {
  background: var(--camels-accent);
  color: #fff;
}

.camels-header-cta:hover,
.camels-header-cta:focus-visible,
.camels-header-logo:focus-visible,
.camels-lang-switch:focus-visible {
  opacity: 0.95;
}

.camels-header-nav-link:focus-visible,
.camels-header-icon-btn:focus-visible,
.camels-header-cta:focus-visible,
.camels-header-logo:focus-visible,
.camels-lang-switch:focus-visible {
  outline: 2px solid var(--camels-primary);
  outline-offset: 2px;
}

/* ---- Language switch active state ---- */

.camels-lang-switch.is-open .camels-lang-current {
  background: var(--camels-surface-95);
  color: var(--camels-accent);
}

.camels-lang-switch.is-open .camels-lang-chevron {
  transform: rotate(180deg);
}

.camels-lang-chevron {
  transition: transform .2s;
}

/* ---- Dropdown panels ---- */

.camels-dropdown-wrap {
  position: relative;
}

.camels-dropdown-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 18px;
}

.camels-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  z-index: 50;
  border: 2px solid var(--camels-accent);
  border-radius: 16px;
  background: var(--camels-surface);
  padding: 32px;
  box-shadow: none;
  min-width: 200px;
}

.camels-dropdown::before {
  content: "\f077";
  position: absolute;
  top: -7px;
  z-index: 1;
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: var(--camels-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 8px;
  background: var(--camels-surface);
  /* border: 2px solid var(--camels-accent); */
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.camels-dropdown.is-open {
  display: block;
}

/* "О нас" dropdown */
.camels-nav-dropdown {
  left: 50%;
  transform: translateX(-50%);
}

.camels-nav-dropdown::before {
  left: 50%;
  transform: translateX(-50%);
}

.camels-nav-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.camels-nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--camels-text-strong);
  transition: color .15s;
  white-space: nowrap;
  padding: .4375rem .75rem;
  border: 1px solid transparent;
}

.camels-nav-dropdown__item:hover {
  border-radius: 12px;
  border: 1px solid var(--camels-accent);
  color: #f65a03;
}

.camels-nav-dropdown__bullet {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--camels-primary-5);
  border-radius: 8px;
}

.camels-nav-dropdown__bullet i {
  font-size: 14px;
  line-height: 1;
  color: var(--camels-primary-80);
  transition: color .15s;
}

.camels-nav-dropdown__item:hover .camels-nav-dropdown__bullet i {
  color: var(--camels-accent);
}

.camels-nav-dropdown__item.is-active {
  color: var(--camels-accent);
}

.camels-nav-dropdown__item.is-active .camels-nav-dropdown__bullet {
  background: rgba(246, 90, 3, 0.1);
}

.camels-nav-dropdown__item.is-active .camels-nav-dropdown__bullet i {
  color: var(--camels-accent);
}

.camels-nav-dropdown__list li:has(> .camels-nav-dropdown__item.is-active) {
  /* background: var(--camels-surface); */
  border-radius: 8px;
  border-radius: 12px;
  /* background: #fff; */
  color: #f65a03;
}

/* Language dropdown */
.camels-lang-dropdown {
  right: -48px;
  top: calc(100% + 10px);
}

.camels-lang-dropdown::before {
  right: 60px;
}

.camels-lang-dropdown__title {
  font-size: 14px;
  font-weight: 400;
  color: var(--camels-text);
  margin: 0 0 16px;
}

.camels-lang-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.camels-lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: normal;
  color: var(--camels-text);
  cursor: pointer;
  transition: color .15s;
  border: 1px solid transparent;
  padding: 5px 10px;
}

.camels-lang-dropdown__item:hover,
.camels-lang-dropdown__item.is-active {
  background: var(--camels-surface);
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--camels-accent);
  color: #f65a03;
}

.camels-lang-dropdown__flag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* ---- User account dropdown ---- */

.camels-header-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--camels-primary-5);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  color: var(--camels-text);
}

.camels-header-user-btn i {
  font-size: 22px;
  line-height: 1;
  color: currentColor;
}

.camels-header-user-btn:hover {
  background: var(--camels-primary-20);
}

.camels-header-user-btn.is-open {
  border-color: var(--camels-accent);
  background: var(--camels-primary-20);
  color: var(--camels-accent);
}

.camels-header-user-btn:focus-visible {
  outline: 2px solid var(--camels-primary);
  outline-offset: 2px;
}

.camels-user-dropdown {
  top: calc(100% + 10px);
  right: -4px;
  min-width: 220px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.camels-user-dropdown.is-open {
  display: flex;
}

.camels-user-dropdown::before {
  right: 18px;
}

.camels-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: normal;
  color: var(--camels-text);
  transition: background .15s, color .15s;
  border: 1px solid transparent;
}

.camels-user-dropdown__item i {
  font-size: 18px;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: var(--camels-muted);
  transition: color .15s;
}

.camels-user-dropdown__item:hover {
  border: 1px solid var(--camels-accent);
  color: #f65a03;
}

.camels-user-dropdown__item:hover i {
  color: var(--camels-accent);
}

.camels-user-dropdown__item--accent {
  color: var(--camels-accent);
}

.camels-user-dropdown__item--accent i {
  color: var(--camels-accent);
}

/* ==========================================================================
   STICKY HEADER — dark theme on scroll
   ========================================================================== */

.site-header {
  transition: background .35s ease, border-color .35s ease;
}

.site-header.is-scrolled {
  background: var(--camels-text);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Logo — swap text to white variant on dark bg */
.site-header.is-scrolled .camels-logo-text--dark {
  display: none !important;
}

.site-header.is-scrolled .camels-logo-text--light {
  display: block !important;
}

/* Nav bar background */
.site-header.is-scrolled .camels-header-nav {
}

/* Nav links — white text */
.site-header.is-scrolled .camels-header-nav-link {
  color: #fff;
  background: transparent;
  border-color: transparent;
}

.site-header.is-scrolled .camels-header-nav-link:hover,
.site-header.is-scrolled .camels-header-nav-link.is-open {
  color: var(--camels-accent);
}

.site-header.is-scrolled .camels-header-nav-link.is-active,
.site-header.is-scrolled .camels-dropdown-wrap:has(.camels-nav-dropdown__item.is-active) > .camels-header-nav-link,
.site-header.is-scrolled .camels-dropdown-wrap:has(.camels-nav-dropdown__item.is-active) > .camels-header-nav-link.has-chevron .camels-nav-chevron  {
  color: var(--camels-accent);
  /* border-color: var(--camels-accent); */
}

/* Chevron icons in dark header */
.site-header.is-scrolled .camels-nav-chevron,
.site-header.is-scrolled .camels-lang-chevron {
  color: rgba(255, 255, 255, 0.7);
}

/* Home icon */
.site-header.is-scrolled .camels-header-icon-btn {
  background: rgba(255, 255, 255, 0.2);
}

.site-header.is-scrolled .camels-header-icon-btn.is-active {
  background: rgba(255, 255, 255, 0.2);
}

.site-header.is-scrolled .camels-header-icon-btn i {
  color: #fff;
}

.site-header.is-scrolled .camels-header-icon-btn.is-active i {
  color: var(--camels-accent);
}

/* Lang switch */
.site-header.is-scrolled .camels-lang-switch {
  background: rgb(255 255 255 / 0%);
}


.site-header.is-scrolled .camels-lang-current {
  /* background: rgba(255, 255, 255, 0.05); */
  color: rgba(255, 255, 255, 0.95);
}

.site-header .camels-lang-current i {
  color: var(--camels-black);
  background: var(--camels-border-gray);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 22px;
}

.camels-lang-current i:hover {
  color: var(--camels-accent)!important;
  cursor: pointer;
}


.camels-lang-switch.is-open >  .camels-lang-current i {
  color: var(--camels-accent);
  cursor: pointer;
}

.site-header .camels-lang-current__text {
  position: absolute;
  top: -3px;
  right: -5px;
  text-transform: uppercase;
  font-size: var(--fs-card-desc);
  color: var(--camels-black);
  width: 22px;
  height: 22px;
  background: var(--camels-border-gray);
  border-radius: 50%;
  display:
  -webkit-box;
  display:
  -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-weight: 600;
  line-height: normal;
  text-align: center;
}

/* User button */
.site-header.is-scrolled .camels-header-user-btn {
  background: var(--camels-border-gray);
  color: var(--camels-black);
}

.site-header.is-scrolled .camels-header-user-btn i:hover {
  color: var(--camels-accent);
}

.site-header.is-scrolled .camels-header-user-btn.is-open {
  border-color: var(--camels-accent);
  /* background: var(--camels-black); */
  color: var(--camels-accent);
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.article-card {
  background: var(--camels-surface);
  border: 1px solid var(--camels-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.article-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.article-title a {
  color: inherit;
  text-decoration: none;
}

.article-meta {
  margin: 0 0 10px;
  color: var(--camels-muted);
  font-size: 0.92rem;
}

/* Legacy .site-footer removed — now using .cb-footer block */

.wp-block-image,
img {
  max-width: 100%;
  height: auto;
}
img.camels-role-card__icon {
  
  filter: brightness(61%);
}

@media (max-width: 1360px) {
  
  .camels-logo-mark {
      display: none;
  }
  
  .camels-logo-text {
      min-width: 90px;
      width: 90px;
      height: auto;
  }

  .camels-header-nav-link {
    padding: 10px 5px;
    font-size: var(--fs-card-title);
    text-wrap: wrap;
  }

  .camels-header-nav {
    overflow-x: auto;
    flex-shrink: 1;
    min-width: 0;
  }

  .camels-header-inner {
    min-width: 0;
  }
}

/* ---- Tablet/Desktop transition: hide desktop nav, show condensed layout ---- */
@media (max-width: 1500px) {
  .camels-logo-text {
    width: 65%;
    height: auto;
  }
  .camels-logo-mark {
    width: 48%;
    height: auto;
  }
}

@media (max-width: 1360px) {

  
  .camels-logo-text {
    width: 53%;
    height: auto;
  }
  .camels-logo-mark {
    width: 27%;
    height: auto;
  }

/* Nav hidden → no need for horizontal scroll, allow dropdowns to overflow */
.site-header {
  overflow: visible;
}

/* Logo — swap text to white variant on dark bg */
.camels-logo-mark {
  display: block;
}

.camels-header-logo img {
    display: block;
}

  .camels-header-nav {
    display: none;
  }

  .camels-header-right {
    gap: 8px;
  }

  .camels-header-user-btn {
    width: 44px;
    height: 44px;
  }

  .camels-header-user-btn i {
    font-size: 22px;
  }

  .camels-header-logo .camels-logo-text {
    display: block;
  }
}

/* ---- Mobile: minimal header ---- */
@media (max-width: 767px) {
  .camels-header-inner {
    padding: 6px 10px;
  }

  .camels-header-user-btn {
    width: 40px;
    height: 40px;
  }

  .camels-header-user-btn i {
    font-size: 20px;
  }

  .site-header.is-scrolled .camels-lang-current i {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .camels-lang-current__text {
    position: absolute;
    top: -1px;
    right: -6px;
  }
  .camels-lang-switch {
    padding: 4px;
  }

  .camels-lang-current {
    height: 36px;
    padding: 8px;
    font-size: 14px;
    display: contents;
  }

  .camels-user-dropdown {
    min-width: 180px;
    padding: 8px;
  }

  .camels-user-dropdown__item {
    padding: 12px 14px;
    font-size: 14px;
  }

  /* Ensure dropdowns don't overflow off-screen on mobile */
  .camels-lang-dropdown {
    right: auto;
    left: -9%;
    transform: translateX(-50%);
  }

  .camels-lang-dropdown::before {
    right: auto;
    left: 63%;
    transform: translateX(-50%);
  }

  .camels-user-dropdown {
    right: 0;
  }
}

/* ---- Extra-small mobile: ≤480px ---- */
@media (max-width: 480px) {
  .camels-lang-dropdown {
    left: -40%;
  }
  
  .camels-lang-dropdown::before {
    right: auto;
    left: 70%;
    transform: translateX(-50%);
  }
  
  .site-header .camels-lang-current__text {
    position: absolute;
    top: -4px;
    right: -6px;
  }
  .camels-header-inner {
    padding: 4px 8px;
    gap: 6px;
  }

  .camels-header-logo {
    padding: 0 4px;
    min-height: 40px;
    width: 80%;
  }

  .camels-header-logo .camels-logo-mark {
    width: 100%;
    height: 40px;
  }

  .camels-header-user-btn {
    width: 36px;
    height: 36px;
  }

  .camels-header-user-btn i {
    font-size: 18px;
  }

  .site-header.is-scrolled .camels-lang-current i {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .camels-lang-current__text {
    position: absolute;
    top: -2px;
    right: -3px;
  }
  
  .camels-lang-current {
    height: 32px;
    padding: 6px;
    font-size: 13px;
    display: contents;
  }

  .camels-lang-current .camels-flag-img {
    display: none;
  }

  .camels-header-right {
    gap: 4px;
  }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================================== */

/* Hidden on desktop */
.mobile-nav {
  display: none;
}

.mobile-panel {
  display: none;
}

@media (max-width: 1360px) {
  /* Add padding at bottom so content isn't hidden behind fixed nav */
  .cb-footer {
    padding-bottom: 72px;
  }

  /* ---- Bottom Navigation Bar (matches camel.expert header__inline) ---- */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #f6f6f6;
    border-top: none;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 0;
    height: 65px;
    box-shadow: none;
  }

  .mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    padding: 8px 4px;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--camels-text);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
  }

  .mobile-nav__item i {
    font-size: 1.25rem;
    line-height: 1;
    color: #a6abb4;
  }

  .mobile-nav__item.is-active {
    color: var(--camels-accent);
  }

  .mobile-nav__item.is-active i {
    color: var(--camels-accent);
  }

  .mobile-nav__item--accent.is-active::before {
    background: var(--camels-accent);
  }

  .mobile-nav__item--accent.is-active i {
    color: #fff;
  }

  .mobile-nav__item--accent {
    position: relative;
  }

  .mobile-nav__item--accent::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 50px;
    background: #222f45;
    border-radius: 10px;
    z-index: -1;
  }

  .mobile-nav__item--accent i,
  .mobile-nav__item--accent span {
    color: #fff;
  }

  .mobile-nav__item--accent i {
    color: var(--camels-accent);
  }

  /* ---- Bottom Sheet Panels (dark theme, matches camel.expert) ---- */
  .mobile-panel {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-panel.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-panel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-panel.is-open .mobile-panel__overlay {
    opacity: 1;
  }

  .mobile-panel__sheet {
    position: absolute;
    bottom: 65px;
    left: 0;
    right: 0;
    background: #4e5869;
    border-radius: 14px 14px 0 0;
    padding: 10px 18px 80px;
    max-height: calc(100% - 45px);
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  .mobile-panel.is-open .mobile-panel__sheet {
    transform: translateY(0);
  }

  .mobile-panel__handle {
    width: 48px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto 12px;
  }

  .mobile-panel__close {
    position: absolute;
    top: 12px;
    right: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 47, 72, 0.8);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
  }

  .mobile-panel__header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
  }

  .mobile-panel__header i {
    font-size: 1.25rem;
    color: var(--camels-accent);
  }

  .mobile-panel__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* ---- Accordion inside panels (dark theme) ---- */
  .mobile-accordion {
    background: rgba(33, 47, 72, 0.7);
    border-radius: 12px;
    overflow: hidden;
    border: none;
  }

  .mobile-accordion__trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 15px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-accordion__trigger i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
    color: rgba(255, 255, 255, 0.5);
  }

  .mobile-accordion__trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
  }

  .mobile-accordion__trigger--link {
    text-decoration: none;
    color: #fff;
  }

  .mobile-accordion__trigger--link.is-active {
    color: var(--camels-accent);
  }

  .mobile-accordion__trigger--link.is-active i {
    color: var(--camels-accent);
  }

  .mobile-accordion__content {
    display: none;
    padding: 0 12px 12px;
    flex-direction: column;
    gap: 0;
  }

  .mobile-accordion__content.is-open {
    display: flex;
  }

  .mobile-accordion__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    background: transparent;
    border-radius: 0;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.15s;
  }

  .mobile-accordion__link:hover {
    color: #fff;
    background: transparent;
  }

  .mobile-accordion__link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
  }

  /* ---- Service Catalog button at bottom of panel ---- */
  .mobile-panel__catalog {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 0 15px;
    height: 40px;
    background: #222f45;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.15s;
  }

  .mobile-panel__catalog:hover {
    background: #2a3a54;
    color: #fff;
  }

  .mobile-panel__catalog i {
    font-size: 1rem;
    color: var(--camels-accent);
  }
}

.w-fit {
  width: fit-content;
}

.w-100 {
  width: 100%;
}

.w-max {
  width: max-content;
}

.strong {
  font-weight: 700!important;
}

.black {
  color: var(--camels-black)!important;
}
.white {
  color: var(--camels-surface)!important;
}

.fw-500 {
  font-weight: 500!important;
}

.orange {
  color: var(--camels-accent)!important;
}

.blue {
  color: #3b82f6!important;
}

.center-flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-margin {
  margin: 0 auto;
  text-align: center;
}

.center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.p-relative {
  position: relative;
}

.dflex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================================================================
   ROLE SELECTION MODAL
================================================================ */

.camels-role-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.camels-role-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.camels-role-modal__container {
  position: relative;
  width: 90%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--camels-surface);
  border-radius: 20px;
  padding: 40px 36px 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.camels-role-modal.is-open .camels-role-modal__container {
  transform: translateY(0) scale(1);
}

.camels-role-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--camels-primary-5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--camels-muted);
  font-size: 18px;
  transition: background 0.2s ease, color 0.2s ease;
}

.camels-role-modal__close:hover {
  background: var(--camels-accent);
  color: #fff;
}

.camels-role-modal__header {
  text-align: center;
  margin-bottom: 32px;
}

.camels-role-modal__title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  color: var(--camels-text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.camels-role-modal__subtitle {
  font-size: 0.9375rem;
  color: var(--camels-muted);
  margin: 0;
  font-weight: 400;
}

.camels-role-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ---- Role Card ---- */

.camels-role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 270px;
  /* padding: 28px 16px 24px; */
  background: var(--camels-surface-light);
  border: 2px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.camels-role-card:hover {
  border-color: var(--camels-accent);
  background: var(--camels-surface-warm);
  box-shadow: 0 4px 20px var(--camels-accent-shadow);
  transform: translateY(-2px);
}

.camels-role-card:focus-visible {
  outline: 2px solid var(--camels-primary);
  outline-offset: 2px;
}

.camels-role-card__icon {
  width: 270px;
  height: 240px;
  flex-shrink: 0;
  border-radius: 16px;
}

.camels-role-card__name {
  font-size: var(--fs-card-title);
  font-weight: 600;
  color: var(--camels-surface);
  text-align: center;
  line-height: 1.3;
  position: absolute;
  bottom: 5px;
  padding: 5px;
  background: var(--camels-accent);
  border-radius: 10px;
  width: max-content;
  z-index: 1;
}

.camels-role-card:hover .camels-role-card__name {
  color: var(--camels-accent);
  background: var(--camels-surface);
  border: 1px solid var(--camels-accent);
}

/* ---- Locked badge ---- */

.camels-role-card__badge {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--camels-green-bright);
  color: var(--camels-black);
  border: 1px solid rgba(246, 120, 3, 0.2);
  border-radius: 100px;
  padding: 2px 10px;
  line-height: 1.5;
  pointer-events: none;
  z-index: 9;
}

.camels-role-card--locked {
}

/* ---- Referral badge variant ---- */
.camels-role-card__badge--info {
  background: var(--camels-blue-info);
  color: #fff;
  border-color: var(--camels-blue-info);
  font-size: 11px;
}

/* ---- Referral info (inside role modal) ---- */
.camels-referral-info {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 16px;
  min-height: 200px;
}
.camels-referral-info__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(3, 165, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--camels-blue-info);
}
.camels-referral-info__text {
  font-family: 'Onest', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--camels-text);
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}
.camels-referral-info__back {
  background: none;
  border: 1px solid var(--camels-border-light);
  border-radius: 10px;
  padding: 8px 20px;
  font-family: 'Onest', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--camels-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s;
  margin-top: 4px;
}
.camels-referral-info__back:hover {
  border-color: var(--camels-accent);
  color: var(--camels-accent);
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .camels-role-modal__container {
    width: 95%;
    padding: 32px 20px 24px;
    border-radius: 16px;
  }

  .camels-role-modal__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .camels-role-card {
    padding: 5px;
    margin: 5px;
    width: fit-content;
  }

  .camels-role-card--locked {
  }

  .camels-role-card__badge {
    font-size: 0.5625rem;
    padding: 2px 7px;
  }

  .camels-role-card__icon {
    width: 200px;
    height: 200px;
  }

  .camels-role-card__name {
    bottom: 10px;
    font-size: var(--fs-card-desc);
  }
}

@media (max-width: 480px) {
  .camels-role-card__icon {
        width: 140px;
        height: 130px;
        filter: brightness(80%); /* Значение < 100% затемняет */
        transition: filter 0.3s ease; /* Плавный эффект */
    }
      .camels-logo-text {
        min-width: auto;
        width: 55%;
        height: 100%;
    }
  .camels-role-card__badge{
    top: -2px;
    font-size: 0.6rem;
    z-index: 9;
  }

    .camels-role-card__name {
        bottom: -6px;
        font-size: var(--fs-card-desc);
        font-size: 0.65rem;
    }
}

@media (max-width: 380px) {
  .camels-role-modal__grid {
    grid-template-columns: 1fr;
  }

  .camels-role-card {
    flex-direction: row;
    padding: 16px;
    gap: 16px;
  }

  .camels-role-card--locked {
    padding-top: 28px;
  }

  .camels-role-card__badge {
    left: 16px;
    transform: none;
    top: 4px;
  }

  .camels-role-card__icon {
    width: 44px;
    height: 44px;
  }

  .camels-role-card__name {
    text-align: left;
  }
}