﻿/* ── HEADER ──────────────────────────────────────── */
.cp-header {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cp-header__inner {
  height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.cp-logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
}

.cp-logo__icon {
  width: 26px;
  height: 26px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-nav);
  font-size: 0.72rem;
  font-weight: 800;
}

.cp-logo__img {
  max-height: 38px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  display: block;
}

.cp-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 26px;
}

.cp-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.88rem;
  transition: 0.2s ease;
}

.cp-nav a:hover,
.cp-nav a.active { color: var(--white); }

.cp-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: 0.22s ease;
  border: none;
  font-family: inherit;
}

.cp-btn-login,
.cp-btn-dark {
  min-height: 36px;
  padding: 0 17px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.86rem;
}

.cp-btn-login {
  color: var(--text-soft);
  border: 1px solid transparent;
  background: transparent;
}

.cp-btn-login:hover { color: var(--white); }

.cp-btn-dark {
  background: var(--green);
  color: var(--bg-nav);
  border: 1px solid var(--green);
}

.cp-btn-dark:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.cp-menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.cp-menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--white);
  margin: 5px auto;
}


/* ── MOBILE NAV ──────────────────────────────────── */
.cp-mobile-nav {
  position: absolute;
  top: 66px;
  left: 0;
  width: 100%;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--line);
  display: none;
}

.cp-mobile-nav.is-open { display: block; }

.cp-mobile-nav ul {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 28px 0;
  list-style: none;
  display: flex;
}

.cp-mobile-nav li a {
  display: block;
  width: 100%;
  padding: 15px 0;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.cp-mobile-nav li:last-child a { border-bottom: none; }

.cp-mobile-nav li a:hover { color: var(--white); }

.cp-mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 28px 28px;
}

.cp-mobile-nav__actions .cp-btn-login,
.cp-mobile-nav__actions .cp-btn-dark {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.92rem;
}

.cp-mobile-nav__actions .cp-btn-login {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
}

.cp-mobile-nav__actions .cp-btn-dark {
  color: var(--bg-nav);
}

@media (max-width: 1100px) {
  .cp-nav { display: none; }
  .cp-header__actions { display: none; }
  .cp-menu-toggle { display: block; }
}
