/* ===========================
   GLOBAL RESET & BASE
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body.ctc-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0, #101916 0, #070b09 42%, #040605 100%),
    linear-gradient(135deg, #0a100d, #141b18 55%, #0a0806 100%);
  color: #f9f5eb;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Ограничиваем ширину ВСЕХ изображений до 350px */
img {
  display: block;
  max-width: 350px;
  width: 100%;
  height: auto;
  border: 0;
}

/* Ссылки, списки, базовое оформление */

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

/* ===========================
   TYPOGRAPHY & FONTS
   =========================== */

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

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

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

/* ===========================
   COLOR SYSTEM (НОВАЯ ПАЛИТРА)
   =========================== */

:root {
  --ctc-bg-main: #070c09;
  --ctc-bg-alt: #101712;
  --ctc-bg-chip: rgba(21, 31, 27, 0.92);

  --ctc-accent-primary: #f4b422;   /* янтарный свет фонаря */
  --ctc-accent-secondary: #b66b37; /* медь / жар углей */
  --ctc-accent-soft: #9ac7a8;      /* выцветшая хаки-зелень */
  --ctc-accent-ink: #375343;       /* мокрая зелёная кожа подсака */

  --ctc-text-main: #f9f5eb;
  --ctc-text-muted: #c0c7bf;
  --ctc-border-subtle: rgba(120, 141, 121, 0.45);

  --ctc-elevation-soft: 0 20px 50px rgba(0, 0, 0, 0.85);

  --ctc-radius-lg: 1.9rem;
  --ctc-radius-pill: 999px;

  --ctc-header-height: 76px;
}

/* ===========================
   LAYOUT WRAPPER
   =========================== */

.ctc-wrap {
  width: 100%;
  max-width: 1180px;
  padding-inline: 1.5rem;
  margin-inline: auto;
}

/* ===========================
   HEADER (НОВЫЙ ВИД)
   =========================== */

.ctc-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--ctc-header-height);
  z-index: 50;
  display: flex;
  align-items: center;
  background: linear-gradient(
      to bottom,
      rgba(9, 15, 11, 0.98),
      rgba(8, 14, 11, 0.98)
    );
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(107, 127, 111, 0.6);
}

.ctc-header::after {
  /* волнистый край, как линия берега */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 16px;
  background:
    radial-gradient(circle at 0 0, transparent 10px, #070c09 11px) repeat-x;
  background-size: 24px 16px;
  opacity: 0.95;
}

.ctc-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 1;
}

.ctc-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.ctc-logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 30% 70% 52% 48%;
  background:
    radial-gradient(circle at 25% 20%, #f9f5eb 0, #f4b422 25%, transparent 40%),
    radial-gradient(circle at 80% 90%, #b66b37 0, #2b1910 45%, #050605 80%);
  box-shadow:
    0 0 0 1px rgba(245, 213, 133, 0.7),
    0 0 18px rgba(244, 180, 34, 0.7);
  position: relative;
}

.ctc-logo__mark::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: inherit;
  border: 2px solid rgba(0, 0, 0, 0.55);
  border-bottom-color: transparent;
  border-right-color: transparent;
  transform: rotate(-32deg);
}

.ctc-logo__text {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.12em;
}

/* подсветка костра под шапкой */

.ctc-header__glow {
  position: absolute;
  inset-inline: 12%;
  bottom: -18px;
  height: 40px;
  background:
    radial-gradient(circle, rgba(244, 180, 34, 0.45), transparent 70%);
  filter: blur(4px);
  opacity: 0.85;
  pointer-events: none;
}

/* state при скролле: более плотная полоса */

.ctc-header--scrolled {
  background: linear-gradient(
      to bottom,
      rgba(9, 12, 10, 0.98),
      rgba(7, 10, 9, 0.98)
    );
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.8),
    0 -1px 0 rgba(50, 61, 54, 0.9) inset;
}

/* NAVIGATION */

.ctc-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.ctc-nav__list {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.ctc-nav__link {
  position: relative;
  font-size: 0.85rem;
  color: var(--ctc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding-block: 0.25rem;
}

.ctc-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--ctc-accent-soft),
    var(--ctc-accent-primary),
    var(--ctc-accent-secondary)
  );
  transition: width 0.22s ease-out;
}

.ctc-nav__link:hover::after,
.ctc-nav__link:focus-visible::after {
  width: 100%;
}

.ctc-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(164, 181, 166, 0.7);
  background:
    radial-gradient(circle at 0 0, #202920 0, #070c09 68%);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.ctc-nav__line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #f9f5eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* STATE: nav open on mobile */

.ctc-header--nav-open .ctc-nav__line:nth-child(1) {
  transform: translateY(4px) rotate(38deg);
}

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

.ctc-header--nav-open .ctc-nav__line:nth-child(3) {
  transform: translateY(-4px) rotate(-38deg);
}

/* ===========================
   MAIN & SECTIONS
   =========================== */

.ctc-main {
  padding-top: calc(var(--ctc-header-height) + 1.8rem);
  padding-bottom: 3.2rem;
}

.ctc-main__title {
  position: relative;
  margin: 0 auto 2.6rem;
  max-width: 920px;
  padding-inline: 1.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ctc-text-muted);
  text-align: center;
}

.ctc-main__title::before {
  content: "";
  position: absolute;
  inset-inline: 40%;
  bottom: -0.8rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(244, 180, 34, 0.9),
    transparent
  );
  opacity: 0.85;
}

.ctc-section {
  position: relative;
  padding-block: 3.4rem;
}

/* ===========================
   BUTTONS
   =========================== */

.ctc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--ctc-radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ctc-text-main);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
}

.ctc-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.ctc-btn:hover::before,
.ctc-btn:focus-visible::before {
  opacity: 1;
}

.ctc-btn--primary {
  background: linear-gradient(120deg, var(--ctc-accent-primary), var(--ctc-accent-secondary));
  border-color: rgba(46, 27, 10, 0.9);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.9);
}

.ctc-btn--ghost {
  border-color: rgba(164, 181, 166, 0.7);
  background: radial-gradient(circle at 0 0, rgba(154, 199, 168, 0.12), transparent 55%);
  color: var(--ctc-text-muted);
}

/* ===========================
   FOOTER (НОВЫЙ ВИД)
   =========================== */

.ctc-footer {
  border-top: 1px solid var(--ctc-border-subtle);
  background:
    radial-gradient(circle at top, #161f19 0, #080c09 40%, #050605 100%);
  padding-block: 2rem 2.6rem;
}

.ctc-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: flex-start;
}

.ctc-footer__brand p {
  color: var(--ctc-text-muted);
}

.ctc-footer__list li + li {
  margin-top: 0.4rem;
}

.ctc-footer__list a {
  font-size: 0.9rem;
  color: var(--ctc-text-muted);
}

.ctc-footer__list a:hover {
  color: var(--ctc-accent-soft);
}

.ctc-footer__meta {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--ctc-text-muted);
  border-top: 1px dashed rgba(108, 128, 117, 0.6);
  padding-top: 0.7rem;
}

/* ===========================
   SCROLL REVEAL ANIMATION
   =========================== */

.ctc-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

.ctc-reveal--delay {
  transition-delay: 0.18s;
}

.ctc-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .ctc-footer__grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 768px) {
  .ctc-wrap {
    padding-inline: 1.25rem;
  }

  .ctc-main__title {
    font-size: 1.32rem;
  }

  .ctc-nav__toggle {
    display: inline-flex;
  }

  .ctc-nav__list {
    position: fixed;
    inset-inline: 1.5rem;
    top: calc(var(--ctc-header-height) + 0.9rem);
    border-radius: var(--ctc-radius-lg);
    background:
      radial-gradient(circle at 0 0, #19241d 0, #070c09 55%, #040605 100%);
    box-shadow: var(--ctc-elevation-soft);
    padding: 1rem 1.25rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 0.25s ease-out,
      transform 0.25s ease-out;
  }

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

  .ctc-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .ctc-main__title {
    padding-inline: 1rem;
    font-size: 1.18rem;
  }

  .ctc-footer {
    padding-block: 1.8rem 2.3rem;
  }
}
.ctc-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.ctc-footer__legal li {
  opacity: 0.9;
}

.ctc-footer__legal a {
  font-size: 0.8rem;
  color: var(--ctc-text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.ctc-footer__legal a:hover,
.ctc-footer__legal a:focus-visible {
  color: var(--ctc-accent-soft);
  border-bottom-color: rgba(154, 199, 168, 0.9);
}
