/* ===============================
   ЛОКАЛЬНЫЕ ШРИФТЫ (Google Fonts .ttf)
   Положи файлы в /fonts/
   =============================== */

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("../fonts/Spectral-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   ПЕРЕМЕННЫЕ ТЕМЫ
   =============================== */

:root {
  --ccj-bg: #14151b;
  --ccj-bg-alt: #1c1e26;
  --ccj-paper: #f3ebde;
  --ccj-paper-muted: #e3d8c7;

  --ccj-ink: #f5f1ea;
  --ccj-ink-soft: #c6b9aa;
  --ccj-ink-dark: #14110f;

  --ccj-accent-main: #f3833f;
  --ccj-accent-soft: #243b4a;
  --ccj-accent-aux: #4bb89a;

  --ccj-border-soft: rgba(250, 244, 233, 0.12);
  --ccj-radius-lg: 22px;
  --ccj-radius-pill: 999px;
  --ccj-shadow-soft: 0 24px 55px rgba(0, 0, 0, 0.55);
}

/* ===============================
   БАЗА
   =============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ccj-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Spectral", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ccj-ink);
  background: radial-gradient(circle at top left, #222532 0, #14151b 60%, #101015 100%);
  overflow-x: hidden;
}

/* Обёртка */
.ccj-wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* Общие секции */
.ccj-section {
  padding: 80px 0;
}

/* ===============================
   HEADER (фиксированная полоса)
   =============================== */

.ccj-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  background: linear-gradient(
      to bottom,
      rgba(12, 13, 19, 0.96),
      rgba(12, 13, 19, 0.86)
    );
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(243, 235, 222, 0.12);
}

.ccj-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 0;
}

/* Логотип */
.ccj-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ccj-ink);
}

.ccj-logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 16% 10%, #ffe7c1 0, #f3bb77 32%, #f3833f 60%, #2b414f 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Urbanist", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #351e10;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.ccj-logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ccj-logo__title {
  font-family: "Urbanist", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ccj-logo__subtitle {
  font-size: 12px;
  color: var(--ccj-ink-soft);
}

/* Навигация */
.ccj-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: 14px;
}

.ccj-nav__link {
  position: relative;
  text-decoration: none;
  color: var(--ccj-ink-soft);
  padding: 6px 0;
}

.ccj-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ccj-accent-main), var(--ccj-accent-aux));
  transition: width 0.18s ease-out;
}

.ccj-nav__link:hover::after {
  width: 100%;
}

.ccj-nav__link--active {
  color: var(--ccj-ink);
  font-weight: 600;
}

.ccj-nav__link--active::after {
  width: 100%;
}

/* Бургер-меню */
.ccj-nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(243, 235, 222, 0.24);
  background: rgba(14, 15, 23, 0.8);
  cursor: pointer;
  padding: 0 9px;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.ccj-nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--ccj-ink);
  transition: transform 0.18s ease-out, opacity 0.18s ease-out, translate 0.18s ease-out;
}

/* Состояние открытого меню */
.ccj-header--nav-open .ccj-nav-toggle__line:nth-child(1) {
  transform: rotate(40deg);
  translate: 0 5px;
}

.ccj-header--nav-open .ccj-nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.ccj-header--nav-open .ccj-nav-toggle__line:nth-child(3) {
  transform: rotate(-40deg);
  translate: 0 -5px;
}

/* Оверлей для мобильного меню */
.ccj-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(5, 7, 11, 0.92), rgba(3, 4, 7, 0.98));
  z-index: 30;
}

.ccj-header--nav-open + .ccj-nav-overlay {
  display: block;
}

.ccj-body--no-scroll {
  overflow: hidden;
}

/* Основное содержимое — отступ под фиксированный хедер */
.ccj-main {
  padding-top: 80px;
}

/* ===============================
   КНОПКИ
   =============================== */

.ccj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--ccj-radius-pill);
  border: 1px solid transparent;
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    background 0.12s ease-out,
    border-color 0.12s ease-out,
    color 0.12s ease-out;
}

.ccj-btn--primary {
  background: linear-gradient(135deg, var(--ccj-accent-main), var(--ccj-accent-aux));
  color: #1e0f07;
  box-shadow: var(--ccj-shadow-soft);
}

.ccj-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7);
}

.ccj-btn--outline {
  background: transparent;
  color: var(--ccj-ink);
  border-color: rgba(243, 235, 222, 0.4);
}

.ccj-btn--outline:hover {
  background: rgba(243, 235, 222, 0.06);
}

/* ===============================
   FOOTER
   =============================== */

.ccj-footer {
  border-top: 1px solid rgba(243, 235, 222, 0.14);
  background: #121218;
  margin-top: 40px;
}

.ccj-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 18px;
  font-size: 12px;
  color: var(--ccj-ink-soft);
}

.ccj-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ccj-footer__link {
  color: var(--ccj-ink-soft);
  text-decoration: none;
}

.ccj-footer__link:hover {
  text-decoration: underline;
}

/* ===============================
   ОБЩАЯ АНИМАЦИЯ ВХОДА БЛОКОВ
   =============================== */

.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.45s ease-out,
    transform 0.45s ease-out,
    filter 0.45s ease-out;
  filter: blur(4px);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ===============================
   АДАПТИВ
   =============================== */

@media (max-width: 960px) {
  .ccj-header__inner {
    gap: 18px;
  }

  .ccj-nav {
    gap: 14px;
    font-size: 13px;
  }
}

@media (max-width: 780px) {
  .ccj-header__inner {
    padding: 10px 0;
  }

  .ccj-nav {
    position: fixed;
    inset-inline: 16px;
    top: 70px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px 18px;
    border-radius: 18px;
    background: rgba(12, 13, 19, 0.96);
    border: 1px solid rgba(243, 235, 222, 0.16);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s ease-out,
      transform 0.2s ease-out;
  }

  .ccj-header--nav-open .ccj-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .ccj-nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .ccj-section {
    padding: 64px 0;
  }

  .ccj-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* убираем горизонтальный скролл по умолчанию */
}
