/* CloudCrew unified header, mobile menu, and footer system v2. */
:root {
  --ccnf-ink: #f5f7fb;
  --ccnf-muted: rgba(245, 247, 251, .68);
  --ccnf-line: rgba(255, 255, 255, .11);
  --ccnf-dark: #111317;
  --ccnf-dark-2: #171a20;
  --ccnf-accent: #ffb400;
  --ccnf-max: 1680px;
}

.navBarWrap,
body.hancu-page > .hancu-header,
body.hancu-page > .hancu-mobile-menu,
#hancuMobileMenu,
.ccnf-system .navBarWrap,
html.ccnf-system body.hancu-page > .hancu-header,
html.ccnf-system body.hancu-page > .hancu-mobile-menu,
html.ccnf-system #hancuMobileMenu,
body.ccnf-system.hancu-page > .hancu-header,
body.ccnf-system.hancu-page > .hancu-mobile-menu,
body.ccnf-system #hancuMobileMenu {
  display: none !important;
}

.ccnf-header,
.ccnf-header *,
.ccnf-menu,
.ccnf-menu *,
.ccnf-footer,
.ccnf-footer * {
  box-sizing: border-box;
}

.ccnf-header {
  position: sticky;
  top: 0;
  z-index: 250;
  width: 100%;
  background: rgba(17, 19, 23, .94);
  border-bottom: 1px solid var(--ccnf-line);
  color: var(--ccnf-ink);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.ccnf-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(22px, 3vw, 54px);
  width: min(calc(100% - 60px), var(--ccnf-max));
  min-height: 76px;
  margin: 0 auto;
}

.ccnf-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ccnf-ink);
  font-family: Hauora, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.ccnf-brand::after,
.ccnf-header a::after,
.ccnf-footer a::after,
.ccnf-menu a::after {
  display: none !important;
}

.ccnf-brand img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.ccnf-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(24px, 3vw, 54px);
  min-width: 0;
}

.ccnf-nav a {
  color: var(--ccnf-ink);
  font-family: Hauora, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}

.ccnf-nav a:hover,
.ccnf-menu__nav a:hover,
.ccnf-footer a:hover {
  color: var(--ccnf-accent);
}

.ccnf-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ccnf-lang {
  display: inline-grid;
  position: relative;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-width: 84px;
  height: 38px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--ccnf-ink);
  font-family: Hauora, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ccnf-lang__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--ccnf-accent);
  transition: transform .22s ease;
}

.ccnf-lang[data-lang="EN"] .ccnf-lang__thumb {
  transform: translateX(100%);
}

.ccnf-lang__item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: rgba(245, 247, 251, .72);
}

.ccnf-lang[data-lang="UA"] .ccnf-lang__ua,
.ccnf-lang[data-lang="EN"] .ccnf-lang__en {
  color: #111317;
}

.ccnf-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--ccnf-ink);
  cursor: pointer;
  place-items: center;
}

.ccnf-burger span,
.ccnf-burger span::before,
.ccnf-burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.ccnf-burger span {
  position: relative;
}

.ccnf-burger span::before,
.ccnf-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.ccnf-burger span::before {
  top: -6px;
}

.ccnf-burger span::after {
  top: 6px;
}

.ccnf-menu {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  min-height: 100dvh;
  padding: max(22px, env(safe-area-inset-top)) 30px max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #15171c;
  color: var(--ccnf-ink);
}

.ccnf-menu.is-open {
  display: block;
}

html.ccnf-menu-open,
html.ccnf-menu-open body {
  overflow: hidden !important;
}

.ccnf-menu__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 9vw, 72px);
  width: min(100%, 760px);
  min-height: calc(100dvh - 56px);
  margin: 0 auto;
}

.ccnf-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ccnf-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: transparent;
  color: var(--ccnf-ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ccnf-menu__nav {
  display: grid;
  gap: 18px;
}

.ccnf-menu__nav a {
  color: var(--ccnf-ink);
  font-family: "Neutral Face", Hauora, Arial, sans-serif;
  font-size: clamp(34px, 9vw, 62px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: 0;
  text-decoration: none;
}

.ccnf-menu__meta {
  display: grid;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--ccnf-line);
  margin-top: auto;
}

.ccnf-menu__meta a,
.ccnf-menu__meta button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ccnf-ink);
  font-family: Hauora, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.ccnf-footer {
  position: relative;
  z-index: 5;
  background: var(--ccnf-dark);
  color: var(--ccnf-ink);
  border-top: 1px solid var(--ccnf-line);
  padding: clamp(54px, 6vw, 96px) 0 30px;
  overflow: hidden;
}

.ccnf-footer__inner {
  width: min(calc(100% - 60px), var(--ccnf-max));
  margin: 0 auto;
}

.ccnf-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(220px, .8fr) minmax(220px, .75fr);
  gap: clamp(34px, 5vw, 96px);
  align-items: start;
}

.ccnf-footer__brand {
  display: grid;
  gap: 22px;
}

.ccnf-footer__brandline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ccnf-ink);
  font-family: Hauora, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.ccnf-footer__brandline img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.ccnf-footer__tagline {
  max-width: 480px;
  color: var(--ccnf-muted);
  font-family: Hauora, Arial, sans-serif;
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 500;
  line-height: 1.45;
}

.ccnf-footer__title {
  margin: 0 0 18px;
  color: rgba(245, 247, 251, .46);
  font-family: Hauora, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.ccnf-footer__links,
.ccnf-footer__contacts {
  display: grid;
  gap: 13px;
}

.ccnf-footer a,
.ccnf-footer button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ccnf-ink);
  font-family: Hauora, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ccnf-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: clamp(44px, 5vw, 78px);
  padding-top: 22px;
  border-top: 1px solid var(--ccnf-line);
  color: rgba(245, 247, 251, .5);
  font-family: Hauora, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ccnf-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 24px;
}

.ccnf-footer__legal a,
.ccnf-footer__legal button {
  color: rgba(245, 247, 251, .64);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .ccnf-header__inner {
    width: calc(100% - 40px);
    min-height: 68px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .ccnf-nav {
    display: none;
  }

  .ccnf-actions {
    justify-self: end;
    gap: 8px;
  }

  .ccnf-burger {
    display: grid;
  }

  .ccnf-brand img {
    width: 38px;
    height: 38px;
  }

  .ccnf-lang {
    min-width: 78px;
    height: 36px;
    font-size: 11px;
  }

  .ccnf-footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ccnf-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .ccnf-footer__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .ccnf-header__inner {
    width: calc(100% - 32px);
  }

  .ccnf-brand span {
    display: none;
  }

  .ccnf-menu {
    padding-left: 24px;
    padding-right: 24px;
  }

  .ccnf-footer__inner {
    width: calc(100% - 48px);
  }
}

@media (min-width: 1800px) {
  .ccnf-header__inner,
  .ccnf-footer__inner {
    width: min(calc(100% - 96px), var(--ccnf-max));
  }
}
