:root{
  /* BRAND (КПКІТП) */
  --kp-mint: #9FE7DD;
  --kp-mint-2: #6FD9CD;
  --kp-violet: #3B1F5E;
  --kp-violet-2: #2B1248;
  --kp-white: #FFFFFF;

  /* UI */
  --bg: #F6FFFD;
  --text: #1E1B22;
  --muted: rgba(30, 27, 34, .68);
  --border: rgba(59, 31, 94, .14);

  --shadow: 0 12px 30px rgba(16, 24, 40, .10);
  --radius: 18px;
  --tap: 14px;

  /* header */
  --header-bg: linear-gradient(180deg, var(--kp-mint) 0%, #B7F0EA 100%);
  --header-ink: var(--kp-violet);
  --nav-pill-bg: rgba(255,255,255,.62);
  --nav-pill-border: rgba(59,31,94,.18);
  --nav-pill-hover: rgba(255,255,255,.80);
  --nav-active: rgba(59,31,94,.14);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Noto Sans',sans-serif;
  background: var(--bg);
}

/* ===== HEADER (КПКІТП style) ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--header-bg);
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(59, 31, 94, .10);
}

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

/* Логотип перед назвою */
.site-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px;
  border-radius:12px;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(59, 31, 94, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-logo:hover{
  background: rgba(255,255,255,.55);
}
.site-logo img{
  display:block;
  height:49px;
  width:auto;
  object-fit:contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.18));
}

/* Назва */
.site-title{
  text-decoration:none;
  color: var(--header-ink);
  padding:8px var(--tap);
  border-radius:12px;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(59, 31, 94, .12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-title:hover{
  background: rgba(255,255,255,.52);
}
.site-title-text{
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: .2px;
}

/* Бургер */
.nav-toggle{
  display:inline-flex;
  flex-direction:column;
  gap:4px;
  border: 1px solid rgba(59, 31, 94, .16);
  background: rgba(255,255,255,.38);
  cursor:pointer;
  padding:10px;
  margin-left:auto;
  border-radius:12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-toggle:hover{
  background: rgba(255,255,255,.60);
}
.nav-toggle-bar{
  width:22px;
  height:2px;
  background: var(--header-ink);
  border-radius:2px;
}

/* Меню (mobile) */
.main-nav{
  position: fixed;
  inset-inline: 0;
  top: 64px;

  background:
    radial-gradient(900px 420px at 10% 0%, rgba(159,231,221,.55) 0%, rgba(159,231,221,.08) 55%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.86) 100%);

  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;

  border-top: 1px solid rgba(59, 31, 94, .12);
  box-shadow: 0 18px 50px rgba(16, 24, 40, .16);
}
.main-nav.open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.main-nav ul{
  list-style:none;
  margin:0;
  padding:10px;
  display:grid;
  gap:8px;
}
.main-nav a{
  display:block;
  text-decoration:none;
  color: var(--kp-violet-2);

  padding: 14px 16px;
  border-radius: 14px;

  background: var(--nav-pill-bg);
  border: 1px solid var(--nav-pill-border);
}
.main-nav a:hover{
  background: var(--nav-pill-hover);
}
.main-nav a.active{
  background: var(--nav-active);
  color: var(--kp-violet-2);
  font-weight: 800;
  border-color: rgba(59,31,94,.22);
}

/* Desktop */
@media (min-width: 768px){
  .header-inner{
    display:grid;
    grid-template-columns: auto auto 1fr; /* логотип | назва | меню */
    align-items:center;
    gap:16px;
    padding:12px 20px;
  }

  .nav-toggle{display:none}

  .main-nav{
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border-top: 0;
    box-shadow: none;
    background: transparent;
  }

  .main-nav ul{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
    padding:0;
  }

  .main-nav a{
    padding: 10px 12px;
    background: rgba(255,255,255,.45);
    border: 1px solid rgba(59,31,94,.14);
  }
  .main-nav a:hover{
    background: rgba(255,255,255,.70);
  }
}

@media (min-width: 1024px){
  .site-title-text{font-size:20px}
  .site-logo img{height:54px}
  .main-nav a{padding:12px 14px}
}
