.catalog {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  box-shadow: 2px 2px 7px rgba(0,0,0,0.3);
  overflow: visible;
}

.catalog h3 {
  padding: 10px 20px;
  background: #4385f3;
  color: #fff;
  font-size: 19px;
  margin: 0;
  font-weight: 500;
}

.catalog h2 {
  padding: 10px 20px;
  background: #ff5400;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  margin: 0;
}
.catalog h2 a {
 color: #fff;
}
	
.catalog nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog nav li {
  border-bottom: 1px solid #eee;
}

.catalog nav a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
}

.catalog nav li:hover > a {
  background: #f9f9f9;
  border-left: 3px solid #ff5400;
}

.cat-icon {
  margin-right: 8px;
  color: #4385f3;
  width: 18px;
  display: inline-flex;
  justify-content: center;
}

.cat-name {
  font-size: 15px;
  font-weight: 400;
}

/* === ОБЩИЙ мегаменю === */
.mega-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  bottom: 0;              /* тянется от верха до низа */
  width: 700px;

  background: #fff;
  border: 1px solid #ccc;
  border-left: none;
  box-shadow: 2px 2px 15px rgba(0,0,0,0.25);

  padding: 20px;
  display: none;
  z-index: 4;

  box-sizing: border-box;
}

.mega-panel {
  display: none;
  height: 100%;
}

.mega-header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ff5400;
}

.mega-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 20px;
}

.mega-columns a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.mega-columns a:hover {
  color: #ff5400;
}
